11 changed files with 392 additions and 0 deletions
@ -0,0 +1,21 @@ |
|||||
|
Event PDF Report v9 |
||||
|
=================== |
||||
|
|
||||
|
This module helps to get each event details including its attendees details. |
||||
|
|
||||
|
Installation |
||||
|
============ |
||||
|
Just select it from modules list to install, there is no need to extra installations. |
||||
|
(It Depends On Events Module) |
||||
|
|
||||
|
Usage |
||||
|
===== |
||||
|
#.Take print either from the tree view or from the form view of the event from events module. |
||||
|
Credits |
||||
|
======= |
||||
|
Developer: Anusha @ cybrosys |
||||
|
Guidance: Nilmar Shereef @ cybrosys, shereef@cybrosys.in |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
@ -0,0 +1,25 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
|
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# Copyright (C) 2016-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Anusha(<https://www.cybrosys.com>) |
||||
|
# you can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# It is forbidden to publish, distribute, sublicense, or sell copies |
||||
|
# of the Software or modified copies of the Software. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. |
||||
|
# If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
|
||||
|
from . import report |
@ -0,0 +1,44 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
|
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# Copyright (C) 2016-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Anusha(<https://www.cybrosys.com>) |
||||
|
# you can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# It is forbidden to publish, distribute, sublicense, or sell copies |
||||
|
# of the Software or modified copies of the Software. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. |
||||
|
# If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
|
||||
|
{ |
||||
|
'name': "Event PDF Report", |
||||
|
'version': '9.0.1.0.0', |
||||
|
"category": "Marketing", |
||||
|
'summary': """Event PDF Report""", |
||||
|
'description': """Event PDF Report With States & Attendees Details""", |
||||
|
'author': "Cybrosys Techno Solutions", |
||||
|
'company': "Cybrosys Techno Solutions", |
||||
|
'website': "https://www.cybrosys.com", |
||||
|
'depends': ['base', 'event', 'sale'], |
||||
|
'data': [ |
||||
|
'report/event_report.xml', |
||||
|
'report/report.xml', |
||||
|
], |
||||
|
'images': ['static/description/banner.jpg'], |
||||
|
'license': 'LGPL-3', |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
'application': False, |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
|
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# Copyright (C) 2016-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Anusha(<https://www.cybrosys.com>) |
||||
|
# you can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# It is forbidden to publish, distribute, sublicense, or sell copies |
||||
|
# of the Software or modified copies of the Software. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. |
||||
|
# If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
|
||||
|
from . import event_report_parser |
||||
|
|
@ -0,0 +1,116 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<openerp> |
||||
|
<data> |
||||
|
<template id="event_report_template"> |
||||
|
<t t-call="report.html_container"> |
||||
|
<t t-foreach="docs" t-as="doc"> |
||||
|
<t t-set="doc" t-value="doc.with_context({'lang':doc.organizer_id.lang})" /> |
||||
|
<t t-set="doc2" t-value="event_attendee_details(doc.id)"/> |
||||
|
<div class="page" > |
||||
|
<t t-call="report.external_layout"> |
||||
|
<div class="header" style="text-align:left;"><strong><h1><a>Event:</a><a t-field="doc.name"/></h1></strong></div> |
||||
|
|
||||
|
<table width="100%" style="margin-left:50px;margin-top:5px;border: None solid black;"> |
||||
|
<tr> |
||||
|
<td style="width:50px;height:25px;" ><span>Location: </span><span t-att-style="style" t-esc="doc.address_id.name"/></td> |
||||
|
<td style="width:50px;height:25px;" ><span>Responsible : </span><span t-att-style="style" t-esc="doc.user_id.name"/></td> |
||||
|
<td style="width:50px;height:25px;" ><span>Organizer : </span><span t-att-style="style" t-esc="doc.organizer_id.name"/></td> |
||||
|
</tr> |
||||
|
<tr> |
||||
|
<td style="width:50px;height:25px;" ><span>Category : </span><span t-att-style="style" t-esc="doc.event_type_id.name"/></td> |
||||
|
<td style="width:50px;height:25px;" ><span>Start Date: </span><span t-att-style="style" t-esc="doc.date_begin"/></td> |
||||
|
<td style="width:50px;height:25px;" ><span>End Date: </span><span t-att-style="style" t-esc="doc.date_end"/></td> |
||||
|
</tr> |
||||
|
<tr> |
||||
|
<td style="width:50px;height:25px;" ><span>Event Status: </span><t t-if ="doc.state =='draft'">Unconfirmed</t> |
||||
|
<t t-if ="doc.state =='cancel'">Cancelled</t><t t-if ="doc.state =='done'">Done</t> |
||||
|
<t t-if ="doc.state =='confirm'">Confirmed</t></td> |
||||
|
</tr> |
||||
|
</table> |
||||
|
|
||||
|
<div style="text-align:left;"><strong><h2>Tickets</h2></strong></div> |
||||
|
<div style="text-align:left;"><strong><p><a>Minimum Attendees:</a><a t-field="doc.seats_min"/></p></strong></div> |
||||
|
<div style="text-align:left;"><strong><p><a>Maximum Attendees:</a><t t-if ="doc.seats_availability =='limited'">Limited</t> |
||||
|
<t t-if ="doc.seats_availability =='unlimited'">Unlimited</t></p></strong></div> |
||||
|
<t t-if ="doc.seats_availability =='limited'"><div style="text-align:left;"><strong><p><a>Maximum Attendees Number:</a><a t-field="doc.seats_max"/></p></strong></div></t> |
||||
|
<table class="table table-condensed"> |
||||
|
<thead> |
||||
|
<tr > |
||||
|
<th style="background-color:#9b9da0 !important;">Name </th> |
||||
|
<th style="background-color:#9b9da0 !important;">Product </th> |
||||
|
<th style="background-color:#9b9da0 !important;">Sales End </th> |
||||
|
<th style="background-color:#9b9da0 !important;">Price </th> |
||||
|
<th style="background-color:#9b9da0 !important;">Max Available Seats </th> |
||||
|
<th style="background-color:#9b9da0 !important;">Reserved Seats </th> |
||||
|
<th style="background-color:#9b9da0 !important;">Unconfirmed Reservations</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
<t t-foreach="doc.event_ticket_ids" t-as="b"> |
||||
|
<tr> |
||||
|
<td> |
||||
|
<span t-att-style="style" t-esc="b.name"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<span t-att-style="style" t-esc="b.product_id.name"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<span t-att-style="style" t-esc="b.deadline"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<span t-att-style="style" t-esc="b.price"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<span t-att-style="style" t-esc="b.seats_max"/> |
||||
|
</td> |
||||
|
|
||||
|
<td> |
||||
|
<span t-att-style="style" t-esc="b.seats_reserved"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<span t-att-style="style" t-esc="b.seats_unconfirmed"/> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</t> |
||||
|
</tbody> |
||||
|
</table> |
||||
|
<div t-if="doc2" class="header" style="text-align:left;"><strong><h2>Attendees</h2></strong> |
||||
|
<table class="table table-condensed"> |
||||
|
<thead> |
||||
|
<tr > |
||||
|
<th style="background-color:#9b9da0 !important;">Contact</th> |
||||
|
<th style="background-color:#9b9da0 !important;">Registration Date</th> |
||||
|
<th style="background-color:#9b9da0 !important;">Attended Date</th> |
||||
|
<th style="background-color:#9b9da0 !important;">Status</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
<t t-foreach="doc2" t-as="d"> |
||||
|
<tr> |
||||
|
<td> |
||||
|
<span t-att-style="style" t-esc="d['partner_id']"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<span t-att-style="style" t-esc="d['date_open']"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<span t-att-style="style" t-esc="d['date_closed']"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<t t-if ="doc.state =='draft'">Unconfirmed</t> |
||||
|
<t t-if ="doc.state =='cancel'">Cancelled</t><t t-if ="doc.state =='done'">Done</t> |
||||
|
<t t-if ="doc.state =='confirm'">Confirmed</t> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</t> |
||||
|
</tbody> |
||||
|
</table> |
||||
|
</div> |
||||
|
</t> |
||||
|
</div> |
||||
|
<p style="page-break-after:always"></p> |
||||
|
</t> |
||||
|
</t> |
||||
|
</template> |
||||
|
</data> |
||||
|
</openerp> |
@ -0,0 +1,61 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
|
||||
|
############################################################################## |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# Copyright (C) 2016-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Anusha(<https://www.cybrosys.com>) |
||||
|
# you can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# It is forbidden to publish, distribute, sublicense, or sell copies |
||||
|
# of the Software or modified copies of the Software. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. |
||||
|
# If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################## |
||||
|
|
||||
|
from openerp.report import report_sxw |
||||
|
from openerp.osv import osv |
||||
|
|
||||
|
|
||||
|
class EventParser(report_sxw.rml_parse): |
||||
|
|
||||
|
def __init__(self, cr, uid, name, context=None): |
||||
|
super(EventParser, self).__init__(cr, uid, name, context=context) |
||||
|
self.localcontext.update({ |
||||
|
'event_attendee_details': self.event_attendee_details, |
||||
|
}) |
||||
|
self.context = context |
||||
|
|
||||
|
def event_attendee_details(self, d): |
||||
|
event = [] |
||||
|
|
||||
|
obj_attendee = self.pool.get('event.registration').search(self.cr, self.uid, [('event_id', '=', d)]) |
||||
|
if obj_attendee: |
||||
|
for obj in obj_attendee: |
||||
|
obj_event = self.pool.get('event.registration').browse(self.cr, self.uid, obj, context=None) |
||||
|
vals = { |
||||
|
'partner_id': obj_event.partner_id.name, |
||||
|
'date_open': obj_event.date_open, |
||||
|
'date_closed': obj_event.date_closed, |
||||
|
'state': obj_event.state, |
||||
|
|
||||
|
} |
||||
|
event.append(vals) |
||||
|
|
||||
|
return event |
||||
|
|
||||
|
|
||||
|
class PrintReport(osv.AbstractModel): |
||||
|
_name = 'report.event_pdf_report.report_event' |
||||
|
_inherit = 'report.abstract_report' |
||||
|
_template = 'event_pdf_report.report_event' |
||||
|
_wrapped_report_class = EventParser |
@ -0,0 +1,21 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<openerp> |
||||
|
<data> |
||||
|
<!-- QWeb Reports --> |
||||
|
<report |
||||
|
id="action_report_event" |
||||
|
model="event.event" |
||||
|
string="Event Report" |
||||
|
report_type="qweb-pdf" |
||||
|
name="event_pdf_report.report_event" |
||||
|
file="event_pdf_report.report_event" |
||||
|
/> |
||||
|
<template id="report_event"> |
||||
|
<t t-call="report.html_container"> |
||||
|
<t t-foreach="docs" t-as="doc"> |
||||
|
<t t-call="event_pdf_report.event_report_template" t-lang="doc.organizer_id.lang"/> |
||||
|
</t> |
||||
|
</t> |
||||
|
</template> |
||||
|
</data> |
||||
|
</openerp> |
After Width: | Height: | Size: 50 KiB |
@ -0,0 +1,78 @@ |
|||||
|
<section class="oe_container"> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<h2 class="oe_slogan">Event PDF Report</h2> |
||||
|
<h3 class="oe_slogan">Event Report With States & Attendees Details</h3> |
||||
|
<h4 class="oe_slogan">Cybrosys Technologies , www.cybrosys.com</h4> |
||||
|
</div> |
||||
|
</section> |
||||
|
|
||||
|
<section class="oe_container oe_dark"> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<h3 class="oe_slogan">Select The Events</h3> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<div class="oe_span12"> |
||||
|
<div class="oe_row_img oe_centered"> |
||||
|
<img class="oe_picture oe_screenshot" src="tree_view.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="oe_span12"> |
||||
|
<center> |
||||
|
<p class="oe_mt32"> |
||||
|
Select the events From the form view or tree view of the events. |
||||
|
</p> |
||||
|
</center> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
|
||||
|
<section class="oe_container"> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<h3 class="oe_slogan">Event PDF Report</h3> |
||||
|
<div class="oe_row oe_spaced"> |
||||
|
<div class="oe_span12"> |
||||
|
<center> |
||||
|
<div class="oe_row_img oe_centered"> |
||||
|
<img class="oe_picture oe_screenshot" src="report.png"> |
||||
|
</div> |
||||
|
</center> |
||||
|
|
||||
|
</div> |
||||
|
<div class="oe_span12"> |
||||
|
<center> |
||||
|
<p class="oe_mt32"> |
||||
|
PDF report with event Details including Attendees status. |
||||
|
</p> |
||||
|
</center> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
|
||||
|
<section class="oe_container oe_dark"> |
||||
|
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2> |
||||
|
<div class="oe_slogan" style="margin-top:10px !important;"> |
||||
|
<div> |
||||
|
<a class="btn btn-primary btn-lg mt8" |
||||
|
style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com"><i |
||||
|
class="fa fa-envelope"></i> Email </a> <a |
||||
|
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" |
||||
|
href="https://www.cybrosys.com/contact/"><i |
||||
|
class="fa fa-phone"></i> Contact Us </a> <a |
||||
|
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" |
||||
|
href="https://www.cybrosys.com/odoo-customization-and-installation/"><i |
||||
|
class="fa fa-check-square"></i> Request Customization </a> |
||||
|
</div> |
||||
|
<br> |
||||
|
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block"> |
||||
|
<div> |
||||
|
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td> |
||||
|
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td> |
||||
|
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td> |
||||
|
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td> |
||||
|
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
After Width: | Height: | Size: 65 KiB |
After Width: | Height: | Size: 74 KiB |
Loading…
Reference in new issue