diff --git a/event_pdf_report/README.rst b/event_pdf_report/README.rst new file mode 100644 index 000000000..ad9779df7 --- /dev/null +++ b/event_pdf_report/README.rst @@ -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 + + + + diff --git a/event_pdf_report/__init__.py b/event_pdf_report/__init__.py new file mode 100644 index 000000000..44b0bd175 --- /dev/null +++ b/event_pdf_report/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2016-TODAY Cybrosys Technologies(). +# Author: Anusha() +# 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 . +# +############################################################################## + +from . import report diff --git a/event_pdf_report/__openerp__.py b/event_pdf_report/__openerp__.py new file mode 100644 index 000000000..a9e87c202 --- /dev/null +++ b/event_pdf_report/__openerp__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- + +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2016-TODAY Cybrosys Technologies(). +# Author: Anusha() +# 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 . +# +############################################################################## + +{ + '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, +} diff --git a/event_pdf_report/report/__init__.py b/event_pdf_report/report/__init__.py new file mode 100644 index 000000000..b6c61ca68 --- /dev/null +++ b/event_pdf_report/report/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2016-TODAY Cybrosys Technologies(). +# Author: Anusha() +# 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 . +# +############################################################################## + +from . import event_report_parser + diff --git a/event_pdf_report/report/event_report.xml b/event_pdf_report/report/event_report.xml new file mode 100644 index 000000000..e2516a4a0 --- /dev/null +++ b/event_pdf_report/report/event_report.xml @@ -0,0 +1,116 @@ + + + + + + \ No newline at end of file diff --git a/event_pdf_report/report/event_report_parser.py b/event_pdf_report/report/event_report_parser.py new file mode 100644 index 000000000..833dd232c --- /dev/null +++ b/event_pdf_report/report/event_report_parser.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- + +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2016-TODAY Cybrosys Technologies(). +# Author: Anusha() +# 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 . +# +############################################################################## + +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 diff --git a/event_pdf_report/report/report.xml b/event_pdf_report/report/report.xml new file mode 100644 index 000000000..ed8a05123 --- /dev/null +++ b/event_pdf_report/report/report.xml @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/event_pdf_report/static/description/cybro_logo.png b/event_pdf_report/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/event_pdf_report/static/description/cybro_logo.png differ diff --git a/event_pdf_report/static/description/index.html b/event_pdf_report/static/description/index.html new file mode 100644 index 000000000..acb2c120e --- /dev/null +++ b/event_pdf_report/static/description/index.html @@ -0,0 +1,78 @@ +
+
+

Event PDF Report

+

Event Report With States & Attendees Details

+

Cybrosys Technologies , www.cybrosys.com

+
+
+ +
+
+

Select The Events

+
+
+
+ +
+
+
+
+

+ Select the events From the form view or tree view of the events. +

+
+ +
+ +
+
+
+ +
+
+

Event PDF Report

+
+
+
+
+ +
+
+ +
+
+
+

+ PDF report with event Details including Attendees status. +

+
+
+
+
+
+ +
+

Need Any Help?

+ +
diff --git a/event_pdf_report/static/description/report.png b/event_pdf_report/static/description/report.png new file mode 100644 index 000000000..cc750c03d Binary files /dev/null and b/event_pdf_report/static/description/report.png differ diff --git a/event_pdf_report/static/description/tree_view.png b/event_pdf_report/static/description/tree_view.png new file mode 100644 index 000000000..7d93e05ca Binary files /dev/null and b/event_pdf_report/static/description/tree_view.png differ