@ -0,0 +1,46 @@ | 
				
			|||||
 | 
					.. image:: https://img.shields.io/badge/licence-LGPL--3-green.svg | 
				
			||||
 | 
					    :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html | 
				
			||||
 | 
					    :alt: License: LGPL-3 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					Customer/ Supplier Payment Statement Report | 
				
			||||
 | 
					=========================================== | 
				
			||||
 | 
					This module allow to view and send  payment statement report in pdf and xlsx format, for both invoices and bills. | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					Configuration | 
				
			||||
 | 
					============ | 
				
			||||
 | 
					- No additional configuration needed | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					Company | 
				
			||||
 | 
					------- | 
				
			||||
 | 
					* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					License | 
				
			||||
 | 
					------- | 
				
			||||
 | 
					General Public License, Version 3 (LGPL v3). | 
				
			||||
 | 
					(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					Credits | 
				
			||||
 | 
					------- | 
				
			||||
 | 
					Developer: Mohamed Muzammil VP, Contact: odoo@cybrosys.com | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					Contacts | 
				
			||||
 | 
					-------- | 
				
			||||
 | 
					* Mail Contact : odoo@cybrosys.com | 
				
			||||
 | 
					* Website : https://cybrosys.com | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					Bug Tracker | 
				
			||||
 | 
					----------- | 
				
			||||
 | 
					Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					Maintainer | 
				
			||||
 | 
					========== | 
				
			||||
 | 
					.. image:: https://cybrosys.com/images/logo.png | 
				
			||||
 | 
					   :target: https://cybrosys.com | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					This module is maintained by Cybrosys Technologies. | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					For support and more information, please visit `Our Website <https://cybrosys.com/>`__ | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					Further information | 
				
			||||
 | 
					=================== | 
				
			||||
 | 
					HTML Description: `<static/description/index.html>`__ | 
				
			||||
@ -0,0 +1,24 @@ | 
				
			|||||
 | 
					""" init file for statement report module """ | 
				
			||||
 | 
					# -*- coding: utf-8 -*- | 
				
			||||
 | 
					############################################################################# | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Cybrosys Technologies Pvt. Ltd. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | 
				
			||||
 | 
					#    Author: Mohamed Muzammil VP (odoo@cybrosys.com) | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    You can modify it under the terms of the GNU LESSER | 
				
			||||
 | 
					#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    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 | 
				
			||||
 | 
					#    (LGPL v3) along with this program. | 
				
			||||
 | 
					#    If not, see <http://www.gnu.org/licenses/>. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					############################################################################# | 
				
			||||
 | 
					from . import controllers | 
				
			||||
 | 
					from . import models | 
				
			||||
@ -0,0 +1,53 @@ | 
				
			|||||
 | 
					# -*- coding: utf-8 -*- | 
				
			||||
 | 
					############################################################################# | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Cybrosys Technologies Pvt. Ltd. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | 
				
			||||
 | 
					#    Author: Mohamed Muzammil VP (odoo@cybrosys.com) | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    You can modify it under the terms of the GNU LESSER | 
				
			||||
 | 
					#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    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 | 
				
			||||
 | 
					#    (LGPL v3) along with this program. | 
				
			||||
 | 
					#    If not, see <http://www.gnu.org/licenses/>. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					############################################################################# | 
				
			||||
 | 
					{ | 
				
			||||
 | 
					    'name': 'Customer/ Supplier Payment Statement Report', | 
				
			||||
 | 
					    'version': '15.0.1.0.0', | 
				
			||||
 | 
					    'category': 'Productivity', | 
				
			||||
 | 
					    'summary': 'The module offers a comprehensive summary of all payment ' | 
				
			||||
 | 
					               'transactions', | 
				
			||||
 | 
					    'description': 'This module help you to get Customer/ Supplier Payment ' | 
				
			||||
 | 
					                   'Statement Report. Users can download PDF, XLSX reports, ' | 
				
			||||
 | 
					                   'can mail the statements, and also can set scheduled ' | 
				
			||||
 | 
					                   'actions for monthly and weekly', | 
				
			||||
 | 
					    'author': 'Cybrosys Techno Solutions', | 
				
			||||
 | 
					    'company': 'Cybrosys Techno Solutions', | 
				
			||||
 | 
					    'maintainer': 'Cybrosys Techno Solutions', | 
				
			||||
 | 
					    'website': "https://www.cybrosys.com", | 
				
			||||
 | 
					    'depends': ['account', 'contacts'], | 
				
			||||
 | 
					    'data': [ | 
				
			||||
 | 
					        'data/ir_cron_data.xml', | 
				
			||||
 | 
					        'views/res_partner_views.xml', | 
				
			||||
 | 
					        'report/res_partner_templates.xml', | 
				
			||||
 | 
					        'report/res_partner_reports.xml', | 
				
			||||
 | 
					    ], | 
				
			||||
 | 
					    'assets': { | 
				
			||||
 | 
					        'web.assets_backend': [ | 
				
			||||
 | 
					            'statement_report/static/src/js/action_manager.js', | 
				
			||||
 | 
					        ] | 
				
			||||
 | 
					    }, | 
				
			||||
 | 
					    'images': ['static/description/banner.png'], | 
				
			||||
 | 
					    'license': 'LGPL-3', | 
				
			||||
 | 
					    'auto_install': False, | 
				
			||||
 | 
					    'installable': True, | 
				
			||||
 | 
					    'application': False | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,22 @@ | 
				
			|||||
 | 
					# -*- coding: utf-8 -*- | 
				
			||||
 | 
					############################################################################# | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Cybrosys Technologies Pvt. Ltd. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | 
				
			||||
 | 
					#    Author: Mohamed Muzammil VP (odoo@cybrosys.com) | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    You can modify it under the terms of the GNU LESSER | 
				
			||||
 | 
					#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    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 | 
				
			||||
 | 
					#    (LGPL v3) along with this program. | 
				
			||||
 | 
					#    If not, see <http://www.gnu.org/licenses/>. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					############################################################################# | 
				
			||||
 | 
					from . import statement_report | 
				
			||||
@ -0,0 +1,53 @@ | 
				
			|||||
 | 
					# -*- coding: utf-8 -*- | 
				
			||||
 | 
					############################################################################# | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Cybrosys Technologies Pvt. Ltd. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | 
				
			||||
 | 
					#    Author: Mohamed Muzammil VP (odoo@cybrosys.com) | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    You can modify it under the terms of the GNU LESSER | 
				
			||||
 | 
					#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    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 | 
				
			||||
 | 
					#    (LGPL v3) along with this program. | 
				
			||||
 | 
					#    If not, see <http://www.gnu.org/licenses/>. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					############################################################################# | 
				
			||||
 | 
					import json | 
				
			||||
 | 
					from odoo import http | 
				
			||||
 | 
					from odoo.http import content_disposition, request | 
				
			||||
 | 
					from odoo.tools import html_escape | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					class XLSXReportController(http.Controller): | 
				
			||||
 | 
					    """ Controller for xlsx report """ | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    @http.route('/xlsx_report', type='http', auth='user', methods=['POST'], | 
				
			||||
 | 
					                csrf=False) | 
				
			||||
 | 
					    def get_report_xlsx(self, model, options, output_format, report_name): | 
				
			||||
 | 
					        """ Get xlsx report data """ | 
				
			||||
 | 
					        try: | 
				
			||||
 | 
					            if output_format == 'xlsx': | 
				
			||||
 | 
					                response = request.make_response( | 
				
			||||
 | 
					                    None, headers=[ | 
				
			||||
 | 
					                        ('Content-Type', 'application/vnd.ms-excel'), | 
				
			||||
 | 
					                        ('Content-Disposition', content_disposition( | 
				
			||||
 | 
					                            report_name + '.xlsx'))]) | 
				
			||||
 | 
					                request.env[model].sudo().get_xlsx_report( | 
				
			||||
 | 
					                    json.loads(options), response) | 
				
			||||
 | 
					                response.set_cookie('fileToken', 'dummy token') | 
				
			||||
 | 
					                return response | 
				
			||||
 | 
					        except Exception as event: | 
				
			||||
 | 
					            serialize = http.serialize_exception(event) | 
				
			||||
 | 
					            error = { | 
				
			||||
 | 
					                'code': 200, | 
				
			||||
 | 
					                'message': 'Odoo Server Error', | 
				
			||||
 | 
					                'data': serialize | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					            return request.make_response(html_escape(json.dumps(error))) | 
				
			||||
@ -0,0 +1,31 @@ | 
				
			|||||
 | 
					<?xml version="1.0" encoding="utf-8"?> | 
				
			||||
 | 
					<odoo> | 
				
			||||
 | 
					    <data noupdate="1"> | 
				
			||||
 | 
					        <!--Send Weekly Statement Report to Partners--> | 
				
			||||
 | 
					        <record id="ir_cron_weekly_statement_report" model="ir.cron"> | 
				
			||||
 | 
					            <field name="name">Weekly Statement Report</field> | 
				
			||||
 | 
					            <field name="model_id" ref="model_res_partner"/> | 
				
			||||
 | 
					            <field name="state">code</field> | 
				
			||||
 | 
					            <field name="code">model.auto_week_statement_report()</field> | 
				
			||||
 | 
					            <field name="user_id" ref="base.user_root"/> | 
				
			||||
 | 
					            <field name="interval_number">1</field> | 
				
			||||
 | 
					            <field name="interval_type">weeks</field> | 
				
			||||
 | 
					            <field name="nextcall" eval="(DateTime.now() + timedelta(days=7)).strftime('%Y-%m-%d %H:00:00')"/> | 
				
			||||
 | 
					            <field name="numbercall">-1</field> | 
				
			||||
 | 
					            <field name="doall" eval="False"/> | 
				
			||||
 | 
					        </record> | 
				
			||||
 | 
					        <!--Send Monthly Statement Report to Partners--> | 
				
			||||
 | 
					        <record id="ir_cron_monthly_statement_report" model="ir.cron"> | 
				
			||||
 | 
					            <field name="name">Monthly Statement Report</field> | 
				
			||||
 | 
					            <field name="model_id" ref="model_res_partner"/> | 
				
			||||
 | 
					            <field name="state">code</field> | 
				
			||||
 | 
					            <field name="code">model.auto_month_statement_report()</field> | 
				
			||||
 | 
					            <field name="user_id" ref="base.user_root"/> | 
				
			||||
 | 
					            <field name="interval_number">1</field> | 
				
			||||
 | 
					            <field name="interval_type">months</field> | 
				
			||||
 | 
					            <field name="nextcall" eval="(DateTime.now() + relativedelta(day=1, months=1)).strftime('%Y-%m-%d 04:30:00')" /> | 
				
			||||
 | 
					            <field name="numbercall">-1</field> | 
				
			||||
 | 
					            <field name="doall" eval="False"/> | 
				
			||||
 | 
					        </record> | 
				
			||||
 | 
					    </data> | 
				
			||||
 | 
					</odoo> | 
				
			||||
@ -0,0 +1,6 @@ | 
				
			|||||
 | 
					## Module <statement_report> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					#### 26.09.2023 | 
				
			||||
 | 
					#### Version 15.0.1.0.0 | 
				
			||||
 | 
					#### ADD | 
				
			||||
 | 
					- Initial commit for Customer/ Supplier Payment Statement Report | 
				
			||||
@ -0,0 +1,22 @@ | 
				
			|||||
 | 
					# -*- coding: utf-8 -*- | 
				
			||||
 | 
					############################################################################# | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Cybrosys Technologies Pvt. Ltd. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | 
				
			||||
 | 
					#    Author: Mohamed Muzammil VP (odoo@cybrosys.com) | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    You can modify it under the terms of the GNU LESSER | 
				
			||||
 | 
					#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    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 | 
				
			||||
 | 
					#    (LGPL v3) along with this program. | 
				
			||||
 | 
					#    If not, see <http://www.gnu.org/licenses/>. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					############################################################################# | 
				
			||||
 | 
					from . import res_partner | 
				
			||||
@ -0,0 +1,849 @@ | 
				
			|||||
 | 
					# -*- coding: utf-8 -*- | 
				
			||||
 | 
					############################################################################# | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Cybrosys Technologies Pvt. Ltd. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | 
				
			||||
 | 
					#    Author: Mohamed Muzammil VP (odoo@cybrosys.com) | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    You can modify it under the terms of the GNU LESSER | 
				
			||||
 | 
					#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					#    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 | 
				
			||||
 | 
					#    (LGPL v3) along with this program. | 
				
			||||
 | 
					#    If not, see <http://www.gnu.org/licenses/>. | 
				
			||||
 | 
					# | 
				
			||||
 | 
					############################################################################# | 
				
			||||
 | 
					import base64 | 
				
			||||
 | 
					import io | 
				
			||||
 | 
					import json | 
				
			||||
 | 
					import xlsxwriter | 
				
			||||
 | 
					from odoo import fields, models, _ | 
				
			||||
 | 
					from odoo.exceptions import ValidationError | 
				
			||||
 | 
					from odoo.tools import date_utils | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					class ResPartner(models.Model): | 
				
			||||
 | 
					    """ Class for adding report options in 'res.partner' """ | 
				
			||||
 | 
					    _inherit = 'res.partner' | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    customer_report_ids = fields.Many2many( | 
				
			||||
 | 
					        'account.move', compute='_compute_customer_report_ids', | 
				
			||||
 | 
					        string="Customer Reports", help='Partner invoices') | 
				
			||||
 | 
					    vendor_statement_ids = fields.Many2many( | 
				
			||||
 | 
					        'account.move', compute='_compute_vendor_statement_ids', | 
				
			||||
 | 
					        string="Vendor Reports", help='Partner bills') | 
				
			||||
 | 
					    currency_id = fields.Many2one( | 
				
			||||
 | 
					        'res.currency', default=lambda self: self.env.company.currency_id.id, | 
				
			||||
 | 
					        string="Amount", help="Currency" | 
				
			||||
 | 
					    ) | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def _compute_customer_report_ids(self): | 
				
			||||
 | 
					        """ For computing 'invoices' of partner""" | 
				
			||||
 | 
					        self.customer_report_ids = self.env['account.move'].search( | 
				
			||||
 | 
					            [('partner_id', '=', self.id), | 
				
			||||
 | 
					             ('move_type', '=', 'out_invoice'), | 
				
			||||
 | 
					             ('payment_state', '!=', 'paid'), | 
				
			||||
 | 
					             ('state', '=', 'posted')]).ids | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def _compute_vendor_statement_ids(self): | 
				
			||||
 | 
					        """ For computing 'bills' of partner """ | 
				
			||||
 | 
					        self.vendor_statement_ids = self.env['account.move'].search( | 
				
			||||
 | 
					            [('partner_id', '=', self.id), | 
				
			||||
 | 
					             ('move_type', '=', 'in_invoice'), | 
				
			||||
 | 
					             ('payment_state', '!=', 'paid'), | 
				
			||||
 | 
					             ('state', '=', 'posted')]).ids | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def main_query(self): | 
				
			||||
 | 
					        """Return select query""" | 
				
			||||
 | 
					        return """SELECT name , invoice_date, invoice_date_due, | 
				
			||||
 | 
					                    amount_total_signed AS sub_total, | 
				
			||||
 | 
					                    amount_residual_signed AS amount_due , | 
				
			||||
 | 
					                    amount_residual AS balance | 
				
			||||
 | 
					            FROM account_move WHERE payment_state != 'paid' | 
				
			||||
 | 
					            AND state ='posted' AND partner_id= '%s' | 
				
			||||
 | 
					            AND company_id = '%s' """ % (self.id, self.env.company.id) | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def amount_query(self): | 
				
			||||
 | 
					        """Return query for calculating total amount""" | 
				
			||||
 | 
					        return """ | 
				
			||||
 | 
					                 SELECT SUM(amount_total_signed) AS total, | 
				
			||||
 | 
					                 SUM(amount_residual) AS balance | 
				
			||||
 | 
					                 FROM account_move WHERE payment_state != 'paid' | 
				
			||||
 | 
					                 AND state ='posted' AND partner_id= '%s' | 
				
			||||
 | 
					                 AND company_id = '%s' """ % (self.id, self.env.company.id) | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def action_share_pdf(self): | 
				
			||||
 | 
					        """ Action for sharing the customer pdf report""" | 
				
			||||
 | 
					        if self.customer_report_ids: | 
				
			||||
 | 
					            self.env.cr.execute( | 
				
			||||
 | 
					                self.main_query() + """ AND move_type IN ('out_invoice')""") | 
				
			||||
 | 
					            main = self.env.cr.dictfetchall() | 
				
			||||
 | 
					            self.env.cr.execute( | 
				
			||||
 | 
					                self.amount_query() + """ AND move_type IN ('out_invoice')""") | 
				
			||||
 | 
					            amount = self.env.cr.dictfetchall() | 
				
			||||
 | 
					            data = { | 
				
			||||
 | 
					                'customer': self.display_name, | 
				
			||||
 | 
					                'street': self.street, | 
				
			||||
 | 
					                'street2': self.street2, | 
				
			||||
 | 
					                'city': self.city, | 
				
			||||
 | 
					                'state': self.state_id.name, | 
				
			||||
 | 
					                'zip': self.zip, | 
				
			||||
 | 
					                'my_data': main, | 
				
			||||
 | 
					                'total': amount[0]['total'], | 
				
			||||
 | 
					                'balance': amount[0]['balance'], | 
				
			||||
 | 
					                'currency': self.currency_id.symbol, | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					            report = self.env.ref( | 
				
			||||
 | 
					                'statement_report.res_partner_action').sudo().\ | 
				
			||||
 | 
					                _render_qweb_pdf(self, data=data) | 
				
			||||
 | 
					            data_record = base64.b64encode(report[0]) | 
				
			||||
 | 
					            ir_values = { | 
				
			||||
 | 
					                'name': 'Statement Report', | 
				
			||||
 | 
					                'type': 'binary', | 
				
			||||
 | 
					                'datas': data_record, | 
				
			||||
 | 
					                'mimetype': 'application/pdf', | 
				
			||||
 | 
					                'res_model': 'res.partner' | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					            attachment = self.env['ir.attachment'].sudo().create(ir_values) | 
				
			||||
 | 
					            email_values = { | 
				
			||||
 | 
					                'email_to': self.email, | 
				
			||||
 | 
					                'subject': 'Payment Statement Report', | 
				
			||||
 | 
					                'body_html': f"<p>Dear <strong> Mr/Miss. {self.name}</strong> " | 
				
			||||
 | 
					                             f"</p>" | 
				
			||||
 | 
					                             f"<p> We have attached your payment statement. " | 
				
			||||
 | 
					                             f"Please check </p>" | 
				
			||||
 | 
					                             f"<p>Best regards, </p> <p> {self.env.user.name}", | 
				
			||||
 | 
					                'attachment_ids': [attachment.id] | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					            self.env['mail.mail'].sudo().create(email_values).send() | 
				
			||||
 | 
					            return { | 
				
			||||
 | 
					                'type': 'ir.actions.client', | 
				
			||||
 | 
					                'tag': 'display_notification', | 
				
			||||
 | 
					                'params': { | 
				
			||||
 | 
					                    'message': 'Email Sent Successfully', | 
				
			||||
 | 
					                    'type': 'success', | 
				
			||||
 | 
					                    'sticky': False | 
				
			||||
 | 
					                } | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					        else: | 
				
			||||
 | 
					            raise ValidationError(_('There is no statement to send')) | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def _generate_report(self, report_format): | 
				
			||||
 | 
					        """ Generate report data in the specified format (PDF or XLSX) """ | 
				
			||||
 | 
					        if self.customer_report_ids: | 
				
			||||
 | 
					            self.env.cr.execute( | 
				
			||||
 | 
					                self.main_query() + """ AND move_type IN ('out_invoice')""") | 
				
			||||
 | 
					            main = self.env.cr.dictfetchall() | 
				
			||||
 | 
					            self.env.cr.execute( | 
				
			||||
 | 
					                self.amount_query() + """ AND move_type IN ('out_invoice')""") | 
				
			||||
 | 
					            amount = self.env.cr.dictfetchall() | 
				
			||||
 | 
					            data = { | 
				
			||||
 | 
					                'customer': self.display_name, | 
				
			||||
 | 
					                'street': self.street, | 
				
			||||
 | 
					                'street2': self.street2, | 
				
			||||
 | 
					                'city': self.city, | 
				
			||||
 | 
					                'state': self.state_id.name, | 
				
			||||
 | 
					                'zip': self.zip, | 
				
			||||
 | 
					                'my_data': main, | 
				
			||||
 | 
					                'total': amount[0]['total'], | 
				
			||||
 | 
					                'balance': amount[0]['balance'], | 
				
			||||
 | 
					                'currency': self.currency_id.symbol, | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					            if report_format == 'pdf': | 
				
			||||
 | 
					                return self.env.ref('statement_report.res_partner_action' | 
				
			||||
 | 
					                                    ).report_action(self, data=data) | 
				
			||||
 | 
					            elif report_format == 'xlsx': | 
				
			||||
 | 
					                return { | 
				
			||||
 | 
					                    'type': 'ir.actions.report', | 
				
			||||
 | 
					                    'data': { | 
				
			||||
 | 
					                        'model': 'res.partner', | 
				
			||||
 | 
					                        'options': json.dumps(data, | 
				
			||||
 | 
					                                              default=date_utils.json_default), | 
				
			||||
 | 
					                        'output_format': 'xlsx', | 
				
			||||
 | 
					                        'report_name': 'Payment Statement Report' | 
				
			||||
 | 
					                    }, | 
				
			||||
 | 
					                    'report_type': 'xlsx', | 
				
			||||
 | 
					                } | 
				
			||||
 | 
					            else: | 
				
			||||
 | 
					                raise ValidationError(_('Invalid report format')) | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        else: | 
				
			||||
 | 
					            raise ValidationError(_('There is no statement to print')) | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def action_print_pdf(self): | 
				
			||||
 | 
					        """ Action for printing pdf report""" | 
				
			||||
 | 
					        return self._generate_report('pdf') | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def action_print_xlsx(self): | 
				
			||||
 | 
					        """ Action for printing xlsx report of customer """ | 
				
			||||
 | 
					        return self._generate_report('xlsx') | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def get_xlsx_report(self, data, response): | 
				
			||||
 | 
					        """ Get xlsx report data """ | 
				
			||||
 | 
					        output = io.BytesIO() | 
				
			||||
 | 
					        workbook = xlsxwriter.Workbook(output, {'in_memory': True}) | 
				
			||||
 | 
					        sheet = workbook.add_worksheet() | 
				
			||||
 | 
					        cell_format_with_color = workbook.add_format({ | 
				
			||||
 | 
					            'font_size': '14px', 'bold': True, | 
				
			||||
 | 
					            'bg_color': 'yellow', 'border': 1}) | 
				
			||||
 | 
					        cell_format = workbook.add_format({'font_size': '14px', 'bold': True}) | 
				
			||||
 | 
					        txt = workbook.add_format({'font_size': '13px'}) | 
				
			||||
 | 
					        txt_border = workbook.add_format({'font_size': '13px', 'border': 1}) | 
				
			||||
 | 
					        head = workbook.add_format({'align': 'center', 'bold': True, | 
				
			||||
 | 
					                                    'font_size': '22px'}) | 
				
			||||
 | 
					        sheet.merge_range('B2:Q4', 'Payment Statement Report', head) | 
				
			||||
 | 
					        if data['customer']: | 
				
			||||
 | 
					            sheet.merge_range('B7:D7', 'Customer/Supplier : ', cell_format) | 
				
			||||
 | 
					            sheet.merge_range('E7:H7', data['customer'], txt) | 
				
			||||
 | 
					        sheet.merge_range('B9:C9', 'Address : ', cell_format) | 
				
			||||
 | 
					        if data['street']: | 
				
			||||
 | 
					            sheet.merge_range('D9:F9', data['street'], txt) | 
				
			||||
 | 
					        if data['street2']: | 
				
			||||
 | 
					            sheet.merge_range('D10:F10', data['street2'], txt) | 
				
			||||
 | 
					        if data['city']: | 
				
			||||
 | 
					            sheet.merge_range('D11:F11', data['city'], txt) | 
				
			||||
 | 
					        if data['state']: | 
				
			||||
 | 
					            sheet.merge_range('D12:F12', data['state'], ) | 
				
			||||
 | 
					        if data['zip']: | 
				
			||||
 | 
					            sheet.merge_range('D13:F13', data['zip'], txt) | 
				
			||||
 | 
					        sheet.merge_range('B15:C15', 'Date', cell_format_with_color) | 
				
			||||
 | 
					        sheet.merge_range('D15:G15', 'Invoice/Bill Number', | 
				
			||||
 | 
					                          cell_format_with_color) | 
				
			||||
 | 
					        sheet.merge_range('H15:I15', 'Due Date', cell_format_with_color) | 
				
			||||
 | 
					        sheet.merge_range('J15:L15', 'Invoices/Debit', cell_format_with_color) | 
				
			||||
 | 
					        sheet.merge_range('M15:O15', 'Amount Due', cell_format_with_color) | 
				
			||||
 | 
					        sheet.merge_range('P15:R15', 'Balance Due', cell_format_with_color) | 
				
			||||
 | 
					        row = 15 | 
				
			||||
 | 
					        column = 0 | 
				
			||||
 | 
					        for record in data['my_data']: | 
				
			||||
 | 
					            sheet.merge_range(row, column + 1, row, column + 2, | 
				
			||||
 | 
					                              record['invoice_date'], txt_border) | 
				
			||||
 | 
					            sheet.merge_range(row, column + 3, row, column + 6, | 
				
			||||
 | 
					                              record['name'], txt_border) | 
				
			||||
 | 
					            sheet.merge_range(row, column + 7, row, column + 8, | 
				
			||||
 | 
					                              record['invoice_date_due'], txt_border) | 
				
			||||
 | 
					            sheet.merge_range(row, column + 9, row, column + 11, | 
				
			||||
 | 
					                              data['currency'] + str(record['sub_total']), | 
				
			||||
 | 
					                              txt_border) | 
				
			||||
 | 
					            sheet.merge_range(row, column + 12, row, column + 14, | 
				
			||||
 | 
					                              data['currency'] + str(record['amount_due']), | 
				
			||||
 | 
					                              txt_border) | 
				
			||||
 | 
					            sheet.merge_range(row, column + 15, row, column + 17, | 
				
			||||
 | 
					                              data['currency'] + str(record['balance']), | 
				
			||||
 | 
					                              txt_border) | 
				
			||||
 | 
					            row = row + 1 | 
				
			||||
 | 
					            sheet.write(row + 2, column + 1, 'Total Amount: ', cell_format) | 
				
			||||
 | 
					            sheet.merge_range(row + 2, column + 3, row + 2, column + 4, | 
				
			||||
 | 
					                              data['currency'] + str(data['total']), txt) | 
				
			||||
 | 
					            sheet.write(row + 4, column + 1, 'Balance Due: ', cell_format) | 
				
			||||
 | 
					            sheet.merge_range(row + 4, column + 3, row + 4, column + 4, | 
				
			||||
 | 
					                              data['currency'] + str(data['balance']), txt) | 
				
			||||
 | 
					        workbook.close() | 
				
			||||
 | 
					        output.seek(0) | 
				
			||||
 | 
					        response.stream.write(output.read()) | 
				
			||||
 | 
					        output.close() | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def action_share_xlsx(self): | 
				
			||||
 | 
					        """ Action for sharing xlsx report via email""" | 
				
			||||
 | 
					        if self.customer_report_ids: | 
				
			||||
 | 
					            self.env.cr.execute( | 
				
			||||
 | 
					                self.main_query() + """ AND move_type IN ('out_invoice')""") | 
				
			||||
 | 
					            main = self.env.cr.dictfetchall() | 
				
			||||
 | 
					            self.env.cr.execute( | 
				
			||||
 | 
					                self.amount_query() + """ AND move_type IN ('out_invoice')""") | 
				
			||||
 | 
					            amount = self.env.cr.dictfetchall() | 
				
			||||
 | 
					            data = { | 
				
			||||
 | 
					                'customer': self.display_name, | 
				
			||||
 | 
					                'street': self.street, | 
				
			||||
 | 
					                'street2': self.street2, | 
				
			||||
 | 
					                'city': self.city, | 
				
			||||
 | 
					                'state': self.state_id.name, | 
				
			||||
 | 
					                'zip': self.zip, | 
				
			||||
 | 
					                'my_data': main, | 
				
			||||
 | 
					                'total': amount[0]['total'], | 
				
			||||
 | 
					                'balance': amount[0]['balance'], | 
				
			||||
 | 
					                'currency': self.currency_id.symbol, | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					            output = io.BytesIO() | 
				
			||||
 | 
					            workbook = xlsxwriter.Workbook(output, {'in_memory': True}) | 
				
			||||
 | 
					            sheet = workbook.add_worksheet() | 
				
			||||
 | 
					            cell_format = workbook.add_format({ | 
				
			||||
 | 
					                'font_size': '14px', 'bold': True}) | 
				
			||||
 | 
					            txt = workbook.add_format({'font_size': '13px'}) | 
				
			||||
 | 
					            head = workbook.add_format( | 
				
			||||
 | 
					                {'align': 'center', 'bold': True, 'font_size': '22px'}) | 
				
			||||
 | 
					            sheet.merge_range('B2:P4', 'Payment Statement Report', head) | 
				
			||||
 | 
					            date_style = workbook.add_format( | 
				
			||||
 | 
					                {'text_wrap': True, 'align': 'center', | 
				
			||||
 | 
					                 'num_format': 'yyyy-mm-dd'}) | 
				
			||||
 | 
					            if data['customer']: | 
				
			||||
 | 
					                sheet.write('B7:C7', 'Customer : ', cell_format) | 
				
			||||
 | 
					                sheet.merge_range('D7:G7', data['customer'], txt) | 
				
			||||
 | 
					            sheet.write('B9:C7', 'Address : ', cell_format) | 
				
			||||
 | 
					            if data['street']: | 
				
			||||
 | 
					                sheet.merge_range('D9:F9', data['street'], txt) | 
				
			||||
 | 
					            if data['street2']: | 
				
			||||
 | 
					                sheet.merge_range('D10:F10', data['street2'], txt) | 
				
			||||
 | 
					            if data['city']: | 
				
			||||
 | 
					                sheet.merge_range('D11:F11', data['city'], txt) | 
				
			||||
 | 
					            if data['state']: | 
				
			||||
 | 
					                sheet.merge_range('D12:F12', data['state'], txt) | 
				
			||||
 | 
					            if data['zip']: | 
				
			||||
 | 
					                sheet.merge_range('D13:F13', data['zip'], txt) | 
				
			||||
 | 
					            sheet.write('B15', 'Date', cell_format) | 
				
			||||
 | 
					            sheet.write('D15', 'Invoice/Bill Number', cell_format) | 
				
			||||
 | 
					            sheet.write('H15', 'Due Date', cell_format) | 
				
			||||
 | 
					            sheet.write('J15', 'Invoices/Debit', cell_format) | 
				
			||||
 | 
					            sheet.write('M15', 'Amount Due', cell_format) | 
				
			||||
 | 
					            sheet.write('P15', 'Balance Due', cell_format) | 
				
			||||
 | 
					            row = 16 | 
				
			||||
 | 
					            column = 0 | 
				
			||||
 | 
					            for record in data['my_data']: | 
				
			||||
 | 
					                sheet.merge_range(row, column + 1, row, column + 2, | 
				
			||||
 | 
					                                  record['invoice_date'], date_style) | 
				
			||||
 | 
					                sheet.merge_range(row, column + 3, row, column + 5, | 
				
			||||
 | 
					                                  record['name'], txt) | 
				
			||||
 | 
					                sheet.merge_range(row, column + 7, row, column + 8, | 
				
			||||
 | 
					                                  record['invoice_date_due'], date_style) | 
				
			||||
 | 
					                sheet.merge_range(row, column + 9, row, column + 10, | 
				
			||||
 | 
					                                  data['currency'] + str(record['sub_total']), | 
				
			||||
 | 
					                                  txt) | 
				
			||||
 | 
					                sheet.merge_range(row, column + 12, row, column + 13, | 
				
			||||
 | 
					                                  data['currency'] + str(record['amount_due']), | 
				
			||||
 | 
					                                  txt) | 
				
			||||
 | 
					                sheet.merge_range(row, column + 15, row, column + 16, | 
				
			||||
 | 
					                                  data['currency'] + str(record['balance']), | 
				
			||||
 | 
					                                  txt) | 
				
			||||
 | 
					                row = row + 1 | 
				
			||||
 | 
					                sheet.write(row + 2, column + 1, 'Total Amount : ', | 
				
			||||
 | 
					                            cell_format) | 
				
			||||
 | 
					                sheet.merge_range(row + 2, column + 4, row + 2, column + 5, | 
				
			||||
 | 
					                                  data['currency'] + str(data['total']), txt) | 
				
			||||
 | 
					                sheet.write(row + 4, column + 1, 'Balance Due : ', cell_format) | 
				
			||||
 | 
					                sheet.merge_range(row + 4, column + 4, row + 4, column + 5, | 
				
			||||
 | 
					                                  data['currency'] + str(data['balance']), txt) | 
				
			||||
 | 
					            workbook.close() | 
				
			||||
 | 
					            output.seek(0) | 
				
			||||
 | 
					            xlsx = base64.b64encode(output.read()) | 
				
			||||
 | 
					            output.close() | 
				
			||||
 | 
					            ir_values = { | 
				
			||||
 | 
					                'name': "Statement Report", | 
				
			||||
 | 
					                'type': 'binary', | 
				
			||||
 | 
					                'datas': xlsx, | 
				
			||||
 | 
					                'store_fname': xlsx, | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					            attachment = self.env['ir.attachment'].sudo().create(ir_values) | 
				
			||||
 | 
					            email_values = { | 
				
			||||
 | 
					                'email_to': self.email, | 
				
			||||
 | 
					                'subject': 'Payment Statement Report', | 
				
			||||
 | 
					                'body_html': f"<p>Dear <strong> Mr/Miss. {self.name}</strong> " | 
				
			||||
 | 
					                             f"</p>" | 
				
			||||
 | 
					                             f"<p> We have attached your payment statement. " | 
				
			||||
 | 
					                             f"Please check </p>" | 
				
			||||
 | 
					                             f"<p>Best regards, </p> <p> {self.env.user.name}", | 
				
			||||
 | 
					                'attachment_ids': [attachment.id] | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					            self.env['mail.mail'].sudo().create(email_values).send() | 
				
			||||
 | 
					            return { | 
				
			||||
 | 
					                'type': 'ir.actions.client', | 
				
			||||
 | 
					                'tag': 'display_notification', | 
				
			||||
 | 
					                'params': { | 
				
			||||
 | 
					                    'message': 'Email Sent Successfully', | 
				
			||||
 | 
					                    'type': 'success', | 
				
			||||
 | 
					                    'sticky': False | 
				
			||||
 | 
					                } | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					        else: | 
				
			||||
 | 
					            raise ValidationError(_('There is no statement to send')) | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def auto_week_statement_report(self): | 
				
			||||
 | 
					        """ Action for sending the automatic weekly statement | 
				
			||||
 | 
					            of both pdf and xlsx report """ | 
				
			||||
 | 
					        partner = [] | 
				
			||||
 | 
					        invoice = self.env['account.move'].search( | 
				
			||||
 | 
					            [('move_type', 'in', ['out_invoice', 'in_invoice']), | 
				
			||||
 | 
					             ('payment_state', '!=', 'paid'), | 
				
			||||
 | 
					             ('state', '=', 'posted')]) | 
				
			||||
 | 
					        for inv in invoice: | 
				
			||||
 | 
					            if inv.partner_id not in partner: | 
				
			||||
 | 
					                partner.append(inv.partner_id) | 
				
			||||
 | 
					        for rec in partner: | 
				
			||||
 | 
					            if rec.id: | 
				
			||||
 | 
					                main_query =\ | 
				
			||||
 | 
					                    """ | 
				
			||||
 | 
					                        SELECT name , invoice_date, invoice_date_due, | 
				
			||||
 | 
					                        amount_total_signed AS sub_total, | 
				
			||||
 | 
					                        amount_residual_signed AS amount_due, | 
				
			||||
 | 
					                        amount_residual AS balance | 
				
			||||
 | 
					                        FROM account_move WHERE move_type | 
				
			||||
 | 
					                        IN ('out_invoice', 'in_invoice') | 
				
			||||
 | 
					                        AND state ='posted' AND payment_state != 'paid' | 
				
			||||
 | 
					                        AND company_id = '%s' AND partner_id = '%s' | 
				
			||||
 | 
					                        GROUP BY name, invoice_date, invoice_date_due, | 
				
			||||
 | 
					                        amount_total_signed, amount_residual_signed, | 
				
			||||
 | 
					                        amount_residual | 
				
			||||
 | 
					                        ORDER by name DESC""" % (self.env.company.id, rec.id) | 
				
			||||
 | 
					                self.env.cr.execute(main_query) | 
				
			||||
 | 
					                main = self.env.cr.dictfetchall() | 
				
			||||
 | 
					                data = { | 
				
			||||
 | 
					                    'customer': rec.display_name, | 
				
			||||
 | 
					                    'street': rec.street, | 
				
			||||
 | 
					                    'street2': rec.street2, | 
				
			||||
 | 
					                    'city': rec.city, | 
				
			||||
 | 
					                    'state': rec.state_id.name, | 
				
			||||
 | 
					                    'zip': rec.zip, | 
				
			||||
 | 
					                    'my_data': main, | 
				
			||||
 | 
					                } | 
				
			||||
 | 
					                report = self.env.ref('statement_report.res_partner_action')\ | 
				
			||||
 | 
					                    .sudo()._render_qweb_pdf(self, data=data) | 
				
			||||
 | 
					                data_record = base64.b64encode(report[0]) | 
				
			||||
 | 
					                ir_values = { | 
				
			||||
 | 
					                    'name': 'Statement Report', | 
				
			||||
 | 
					                    'type': 'binary', | 
				
			||||
 | 
					                    'datas': data_record, | 
				
			||||
 | 
					                    'mimetype': 'application/pdf', | 
				
			||||
 | 
					                    'res_model': 'res.partner', | 
				
			||||
 | 
					                } | 
				
			||||
 | 
					                attachment_pdf = self.env[ | 
				
			||||
 | 
					                    'ir.attachment'].sudo().create(ir_values) | 
				
			||||
 | 
					                output = io.BytesIO() | 
				
			||||
 | 
					                workbook = xlsxwriter.Workbook(output, {'in_memory': True}) | 
				
			||||
 | 
					                sheet = workbook.add_worksheet() | 
				
			||||
 | 
					                cell_format = workbook.add_format( | 
				
			||||
 | 
					                    {'font_size': '14px', 'bold': True}) | 
				
			||||
 | 
					                txt = workbook.add_format({'font_size': '13px'}) | 
				
			||||
 | 
					                head = workbook.add_format( | 
				
			||||
 | 
					                    {'align': 'center', 'bold': True, 'font_size': '22px'}) | 
				
			||||
 | 
					                sheet.merge_range('B2:P4', 'Payment Statement Report', head) | 
				
			||||
 | 
					                date_style = workbook.add_format( | 
				
			||||
 | 
					                    {'text_wrap': True, 'align': 'center', | 
				
			||||
 | 
					                     'num_format': 'yyyy-mm-dd'}) | 
				
			||||
 | 
					                if data['customer']: | 
				
			||||
 | 
					                    sheet.write('B7:D7', 'Customer/Supplier : ', cell_format) | 
				
			||||
 | 
					                    sheet.merge_range('E7:H7', data['customer'], txt) | 
				
			||||
 | 
					                sheet.write('B9:C7', 'Address : ', cell_format) | 
				
			||||
 | 
					                if data['street']: | 
				
			||||
 | 
					                    sheet.merge_range('D9:F9', data['street'], txt) | 
				
			||||
 | 
					                if data['street2']: | 
				
			||||
 | 
					                    sheet.merge_range('D10:F10', data['street2'], txt) | 
				
			||||
 | 
					                if data['city']: | 
				
			||||
 | 
					                    sheet.merge_range('D11:F11', data['city'], txt) | 
				
			||||
 | 
					                if data['state']: | 
				
			||||
 | 
					                    sheet.merge_range('D12:F12', data['state'], txt) | 
				
			||||
 | 
					                if data['zip']: | 
				
			||||
 | 
					                    sheet.merge_range('D13:F13', data['zip'], txt) | 
				
			||||
 | 
					                sheet.write('B15', 'Date', cell_format) | 
				
			||||
 | 
					                sheet.write('D15', 'Invoice/Bill Number', cell_format) | 
				
			||||
 | 
					                sheet.write('H15', 'Due Date', cell_format) | 
				
			||||
 | 
					                sheet.write('J15', 'Invoices/Debit', cell_format) | 
				
			||||
 | 
					                sheet.write('M15', 'Amount Due', cell_format) | 
				
			||||
 | 
					                sheet.write('P15', 'Balance Due', cell_format) | 
				
			||||
 | 
					                row = 16 | 
				
			||||
 | 
					                column = 0 | 
				
			||||
 | 
					                for record in data['my_data']: | 
				
			||||
 | 
					                    sheet.merge_range(row, column + 1, row, column + 2, | 
				
			||||
 | 
					                                      record['invoice_date'], date_style) | 
				
			||||
 | 
					                    sheet.merge_range(row, column + 3, row, column + 5, | 
				
			||||
 | 
					                                      record['name'], txt) | 
				
			||||
 | 
					                    sheet.merge_range(row, column + 7, row, column + 8, | 
				
			||||
 | 
					                                      record['invoice_date_due'], date_style) | 
				
			||||
 | 
					                    sheet.merge_range(row, column + 9, row, column + 10, | 
				
			||||
 | 
					                                      record['sub_total'], txt) | 
				
			||||
 | 
					                    sheet.merge_range(row, column + 12, row, column + 13, | 
				
			||||
 | 
					                                      record['amount_due'], txt) | 
				
			||||
 | 
					                    sheet.merge_range(row, column + 15, row, column + 16, | 
				
			||||
 | 
					                                      record['balance'], txt) | 
				
			||||
 | 
					                    row = row + 1 | 
				
			||||
 | 
					                workbook.close() | 
				
			||||
 | 
					                output.seek(0) | 
				
			||||
 | 
					                xlsx = base64.b64encode(output.read()) | 
				
			||||
 | 
					                output.close() | 
				
			||||
 | 
					                ir_values = { | 
				
			||||
 | 
					                    'name': "Statement Report", | 
				
			||||
 | 
					                    'type': 'binary', | 
				
			||||
 | 
					                    'datas': xlsx, | 
				
			||||
 | 
					                    'store_fname': xlsx, | 
				
			||||
 | 
					                } | 
				
			||||
 | 
					                attachment_xl = self.env['ir.attachment'].sudo().create( | 
				
			||||
 | 
					                    ir_values) | 
				
			||||
 | 
					                email_values = { | 
				
			||||
 | 
					                    'email_to': self.email, | 
				
			||||
 | 
					                    'subject': 'Payment Statement Report', | 
				
			||||
 | 
					                    'body_html': f"<p>Dear <strong> Mr/Miss. {self.name}" | 
				
			||||
 | 
					                                 f"</strong> " | 
				
			||||
 | 
					                                 f"</p>" | 
				
			||||
 | 
					                                 f"<p> We have attached your payment " | 
				
			||||
 | 
					                                 f"statement. " | 
				
			||||
 | 
					                                 f"Please check </p>" | 
				
			||||
 | 
					                                 f"<p>Best regards, </p> <p>" | 
				
			||||
 | 
					                                 f" {self.env.user.name}", | 
				
			||||
 | 
					                    'attachment_ids': [attachment_pdf.id, attachment_xl.id] | 
				
			||||
 | 
					                } | 
				
			||||
 | 
					                self.env['mail.mail'].sudo().create(email_values).send() | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def auto_month_statement_report(self): | 
				
			||||
 | 
					        """ Action for sending the automatic monthly statement report | 
				
			||||
 | 
					            of both pdf and xlsx report""" | 
				
			||||
 | 
					        partner = [] | 
				
			||||
 | 
					        invoice = self.env['account.move'].search( | 
				
			||||
 | 
					            [('move_type', 'in', ['out_invoice', 'in_invoice']), | 
				
			||||
 | 
					             ('payment_state', '!=', 'paid'), | 
				
			||||
 | 
					             ('state', '=', 'posted')]) | 
				
			||||
 | 
					        for inv in invoice: | 
				
			||||
 | 
					            if inv.partner_id not in partner: | 
				
			||||
 | 
					                partner.append(inv.partner_id) | 
				
			||||
 | 
					        for rec in partner: | 
				
			||||
 | 
					            if rec.id: | 
				
			||||
 | 
					                main_query = """ | 
				
			||||
 | 
					                SELECT name , invoice_date, invoice_date_due, | 
				
			||||
 | 
					                amount_total_signed AS sub_total, | 
				
			||||
 | 
					                amount_residual_signed AS amount_due , | 
				
			||||
 | 
					                amount_residual AS balance | 
				
			||||
 | 
					                FROM account_move WHERE move_type | 
				
			||||
 | 
					                IN ('out_invoice', 'in_invoice') | 
				
			||||
 | 
					                AND state ='posted' | 
				
			||||
 | 
					                AND payment_state != 'paid' | 
				
			||||
 | 
					                AND company_id = '%s' AND partner_id = '%s' | 
				
			||||
 | 
					                GROUP BY name, invoice_date, invoice_date_due, | 
				
			||||
 | 
					                amount_total_signed, amount_residual_signed, | 
				
			||||
 | 
					                amount_residual ORDER by name DESC""" % (self.env.company.id, | 
				
			||||
 | 
					                                                         rec.id) | 
				
			||||
 | 
					                self.env.cr.execute(main_query) | 
				
			||||
 | 
					                main = self.env.cr.dictfetchall() | 
				
			||||
 | 
					                data = { | 
				
			||||
 | 
					                    'customer': rec.display_name, | 
				
			||||
 | 
					                    'street': rec.street, | 
				
			||||
 | 
					                    'street2': rec.street2, | 
				
			||||
 | 
					                    'city': rec.city, | 
				
			||||
 | 
					                    'state': rec.state_id.name, | 
				
			||||
 | 
					                    'zip': rec.zip, | 
				
			||||
 | 
					                    'my_data': main, | 
				
			||||
 | 
					                } | 
				
			||||
 | 
					                report = self.env.ref( | 
				
			||||
 | 
					                    'statement_report.res_partner_action').sudo().\ | 
				
			||||
 | 
					                    _render_qweb_pdf(self, data=data) | 
				
			||||
 | 
					                data_record = base64.b64encode(report[0]) | 
				
			||||
 | 
					                ir_values = { | 
				
			||||
 | 
					                    'name': 'Statement Report', | 
				
			||||
 | 
					                    'type': 'binary', | 
				
			||||
 | 
					                    'datas': data_record, | 
				
			||||
 | 
					                    'mimetype': 'application/pdf', | 
				
			||||
 | 
					                    'res_model': 'res.partner', | 
				
			||||
 | 
					                } | 
				
			||||
 | 
					                attachment_pdf = self.env['ir.attachment'].sudo().create( | 
				
			||||
 | 
					                    ir_values) | 
				
			||||
 | 
					                # FOR XLSX | 
				
			||||
 | 
					                output = io.BytesIO() | 
				
			||||
 | 
					                workbook = xlsxwriter.Workbook(output, {'in_memory': True}) | 
				
			||||
 | 
					                sheet = workbook.add_worksheet() | 
				
			||||
 | 
					                cell_format = workbook.add_format( | 
				
			||||
 | 
					                    {'font_size': '14px', 'bold': True}) | 
				
			||||
 | 
					                txt = workbook.add_format({'font_size': '13px'}) | 
				
			||||
 | 
					                head = workbook.add_format( | 
				
			||||
 | 
					                    {'align': 'center', 'bold': True, 'font_size': '22px'}) | 
				
			||||
 | 
					                sheet.merge_range('B2:P4', 'Payment Statement Report', head) | 
				
			||||
 | 
					                date_style = workbook.add_format( | 
				
			||||
 | 
					                    {'text_wrap': True, 'align': 'center', | 
				
			||||
 | 
					                     'num_format': 'yyyy-mm-dd'}) | 
				
			||||
 | 
					                if data['customer']: | 
				
			||||
 | 
					                    sheet.write('B7:D7', 'Customer/Supplier : ', cell_format) | 
				
			||||
 | 
					                    sheet.merge_range('E7:H7', data['customer'], txt) | 
				
			||||
 | 
					                sheet.write('B9:C7', 'Address : ', cell_format) | 
				
			||||
 | 
					                if data['street']: | 
				
			||||
 | 
					                    sheet.merge_range('D9:F9', data['street'], txt) | 
				
			||||
 | 
					                if data['street2']: | 
				
			||||
 | 
					                    sheet.merge_range('D10:F10', data['street2'], txt) | 
				
			||||
 | 
					                if data['city']: | 
				
			||||
 | 
					                    sheet.merge_range('D11:F11', data['city'], txt) | 
				
			||||
 | 
					                if data['state']: | 
				
			||||
 | 
					                    sheet.merge_range('D12:F12', data['state'], txt) | 
				
			||||
 | 
					                if data['zip']: | 
				
			||||
 | 
					                    sheet.merge_range('D13:F13', data['zip'], txt) | 
				
			||||
 | 
					                sheet.write('B15', 'Date', cell_format) | 
				
			||||
 | 
					                sheet.write('D15', 'Invoice/Bill Number', cell_format) | 
				
			||||
 | 
					                sheet.write('H15', 'Due Date', cell_format) | 
				
			||||
 | 
					                sheet.write('J15', 'Invoices/Debit', cell_format) | 
				
			||||
 | 
					                sheet.write('M15', 'Amount Due', cell_format) | 
				
			||||
 | 
					                sheet.write('P15', 'Balance Due', cell_format) | 
				
			||||
 | 
					                row = 16 | 
				
			||||
 | 
					                column = 0 | 
				
			||||
 | 
					                for record in data['my_data']: | 
				
			||||
 | 
					                    sheet.merge_range(row, column + 1, row, column + 2, | 
				
			||||
 | 
					                                      record['invoice_date'], date_style) | 
				
			||||
 | 
					                    sheet.merge_range(row, column + 3, row, column + 5, | 
				
			||||
 | 
					                                      record['name'], txt) | 
				
			||||
 | 
					                    sheet.merge_range(row, column + 7, row, column + 8, | 
				
			||||
 | 
					                                      record['invoice_date_due'], date_style) | 
				
			||||
 | 
					                    sheet.merge_range(row, column + 9, row, column + 10, | 
				
			||||
 | 
					                                      record['sub_total'], txt) | 
				
			||||
 | 
					                    sheet.merge_range(row, column + 12, row, column + 13, | 
				
			||||
 | 
					                                      record['amount_due'], txt) | 
				
			||||
 | 
					                    sheet.merge_range(row, column + 15, row, column + 16, | 
				
			||||
 | 
					                                      record['balance'], txt) | 
				
			||||
 | 
					                    row = row + 1 | 
				
			||||
 | 
					                workbook.close() | 
				
			||||
 | 
					                output.seek(0) | 
				
			||||
 | 
					                xlsx = base64.b64encode(output.read()) | 
				
			||||
 | 
					                output.close() | 
				
			||||
 | 
					                ir_values = { | 
				
			||||
 | 
					                    'name': "Statement Report", | 
				
			||||
 | 
					                    'type': 'binary', | 
				
			||||
 | 
					                    'datas': xlsx, | 
				
			||||
 | 
					                    'store_fname': xlsx, | 
				
			||||
 | 
					                } | 
				
			||||
 | 
					                attachment_xl = self.env['ir.attachment'].sudo().create( | 
				
			||||
 | 
					                    ir_values) | 
				
			||||
 | 
					                email_values = { | 
				
			||||
 | 
					                    'email_to': self.email, | 
				
			||||
 | 
					                    'subject': 'Payment Statement Report', | 
				
			||||
 | 
					                    'body_html': f"<p>Dear <strong> Mr/Miss. " | 
				
			||||
 | 
					                                 f"{self.name}</strong> " | 
				
			||||
 | 
					                                 f"</p>" | 
				
			||||
 | 
					                                 f"<p> We have attached your payment " | 
				
			||||
 | 
					                                 f"statement. " | 
				
			||||
 | 
					                                 f"Please check </p>" | 
				
			||||
 | 
					                                 f"<p>Best regards, </p> <p>" | 
				
			||||
 | 
					                                 f" {self.env.user.name}", | 
				
			||||
 | 
					                    'attachment_ids': [attachment_pdf.id, attachment_xl.id] | 
				
			||||
 | 
					                } | 
				
			||||
 | 
					                self.env['mail.mail'].sudo().create(email_values).send() | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def action_vendor_print_pdf(self): | 
				
			||||
 | 
					        """ Action for printing vendor pdf report """ | 
				
			||||
 | 
					        if self.vendor_statement_ids: | 
				
			||||
 | 
					            self.env.cr.execute( | 
				
			||||
 | 
					                self.main_query() + """ AND move_type IN ('in_invoice')""") | 
				
			||||
 | 
					            main = self.env.cr.dictfetchall() | 
				
			||||
 | 
					            self.env.cr.execute( | 
				
			||||
 | 
					                self.amount_query() + """ AND move_type IN ('in_invoice')""") | 
				
			||||
 | 
					            amount = self.env.cr.dictfetchall() | 
				
			||||
 | 
					            data = { | 
				
			||||
 | 
					                'customer': self.display_name, | 
				
			||||
 | 
					                'street': self.street, | 
				
			||||
 | 
					                'street2': self.street2, | 
				
			||||
 | 
					                'city': self.city, | 
				
			||||
 | 
					                'state': self.state_id.name, | 
				
			||||
 | 
					                'zip': self.zip, | 
				
			||||
 | 
					                'my_data': main, | 
				
			||||
 | 
					                'total': amount[0]['total'], | 
				
			||||
 | 
					                'balance': amount[0]['balance'], | 
				
			||||
 | 
					                'currency': self.currency_id.symbol, | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					            return self.env.ref( | 
				
			||||
 | 
					                'statement_report.res_partner_action')\ | 
				
			||||
 | 
					                .report_action(self, data=data) | 
				
			||||
 | 
					        else: | 
				
			||||
 | 
					            raise ValidationError(_('There is no statement to print')) | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def action_vendor_share_pdf(self): | 
				
			||||
 | 
					        """ Action for sharing pdf report of vendor via email """ | 
				
			||||
 | 
					        if self.vendor_statement_ids: | 
				
			||||
 | 
					            main_query = self.main_query() | 
				
			||||
 | 
					            main_query += """ AND move_type IN ('in_invoice')""" | 
				
			||||
 | 
					            amount = self.amount_query() | 
				
			||||
 | 
					            amount += """ AND move_type IN ('in_invoice')""" | 
				
			||||
 | 
					            self.env.cr.execute(main_query) | 
				
			||||
 | 
					            main = self.env.cr.dictfetchall() | 
				
			||||
 | 
					            self.env.cr.execute(amount) | 
				
			||||
 | 
					            amount = self.env.cr.dictfetchall() | 
				
			||||
 | 
					            data = { | 
				
			||||
 | 
					                'customer': self.display_name, | 
				
			||||
 | 
					                'street': self.street, | 
				
			||||
 | 
					                'street2': self.street2, | 
				
			||||
 | 
					                'city': self.city, | 
				
			||||
 | 
					                'state': self.state_id.name, | 
				
			||||
 | 
					                'zip': self.zip, | 
				
			||||
 | 
					                'my_data': main, | 
				
			||||
 | 
					                'total': amount[0]['total'], | 
				
			||||
 | 
					                'balance': amount[0]['balance'], | 
				
			||||
 | 
					                'currency': self.currency_id.symbol, | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					            report = self.env.ref( | 
				
			||||
 | 
					                'statement_report.res_partner_action').sudo()\ | 
				
			||||
 | 
					                ._render_qweb_pdf(self, data=data) | 
				
			||||
 | 
					            data_record = base64.b64encode(report[0]) | 
				
			||||
 | 
					            ir_values = { | 
				
			||||
 | 
					                'name': 'Statement Report', | 
				
			||||
 | 
					                'type': 'binary', | 
				
			||||
 | 
					                'datas': data_record, | 
				
			||||
 | 
					                'mimetype': 'application/pdf', | 
				
			||||
 | 
					                'res_model': 'res.partner' | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					            attachment = self.env['ir.attachment'].sudo().create(ir_values) | 
				
			||||
 | 
					            email_values = { | 
				
			||||
 | 
					                'email_to': self.email, | 
				
			||||
 | 
					                'subject': 'Payment Statement Report', | 
				
			||||
 | 
					                'body_html': f"<p>Dear <strong> Mr/Miss. {self.name}</strong> " | 
				
			||||
 | 
					                             f"</p>" | 
				
			||||
 | 
					                             f"<p> We have attached your payment statement. " | 
				
			||||
 | 
					                             f"Please check </p>" | 
				
			||||
 | 
					                             f"<p>Best regards, </p> <p> {self.env.user.name}", | 
				
			||||
 | 
					                'attachment_ids': [attachment.id] | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					            self.env['mail.mail'].sudo().create(email_values).send() | 
				
			||||
 | 
					            return { | 
				
			||||
 | 
					                'type': 'ir.actions.client', | 
				
			||||
 | 
					                'tag': 'display_notification', | 
				
			||||
 | 
					                'params': { | 
				
			||||
 | 
					                    'message': 'Email Sent Successfully', | 
				
			||||
 | 
					                    'type': 'success', | 
				
			||||
 | 
					                    'sticky': False | 
				
			||||
 | 
					                } | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					        else: | 
				
			||||
 | 
					            raise ValidationError(_('There is no statement to send')) | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def action_vendor_print_xlsx(self): | 
				
			||||
 | 
					        """ Action for printing xlsx report of vendor """ | 
				
			||||
 | 
					        if self.vendor_statement_ids: | 
				
			||||
 | 
					            self.env.cr.execute( | 
				
			||||
 | 
					                self.main_query() + """ AND move_type IN ('in_invoice')""") | 
				
			||||
 | 
					            main = self.env.cr.dictfetchall() | 
				
			||||
 | 
					            self.env.cr.execute( | 
				
			||||
 | 
					                self.amount_query() + """ AND move_type IN ('in_invoice')""") | 
				
			||||
 | 
					            amount = self.env.cr.dictfetchall() | 
				
			||||
 | 
					            data = { | 
				
			||||
 | 
					                'customer': self.display_name, | 
				
			||||
 | 
					                'street': self.street, | 
				
			||||
 | 
					                'street2': self.street2, | 
				
			||||
 | 
					                'city': self.city, | 
				
			||||
 | 
					                'state': self.state_id.name, | 
				
			||||
 | 
					                'zip': self.zip, | 
				
			||||
 | 
					                'my_data': main, | 
				
			||||
 | 
					                'total': amount[0]['total'], | 
				
			||||
 | 
					                'balance': amount[0]['balance'], | 
				
			||||
 | 
					                'currency': self.currency_id.symbol, | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					            return { | 
				
			||||
 | 
					                'type': 'ir.actions.report', | 
				
			||||
 | 
					                'data': { | 
				
			||||
 | 
					                    'model': 'res.partner', | 
				
			||||
 | 
					                    'options': json.dumps(data, | 
				
			||||
 | 
					                                          default=date_utils.json_default), | 
				
			||||
 | 
					                    'output_format': 'xlsx', | 
				
			||||
 | 
					                    'report_name': 'Payment Statement Report' | 
				
			||||
 | 
					                }, | 
				
			||||
 | 
					                'report_type': 'xlsx', | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					        else: | 
				
			||||
 | 
					            raise ValidationError(_('There is no statement to print')) | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    def action_vendor_share_xlsx(self): | 
				
			||||
 | 
					        """ Action for sharing vendor xlsx report via email """ | 
				
			||||
 | 
					        if self.vendor_statement_ids: | 
				
			||||
 | 
					            self.env.cr.execute( | 
				
			||||
 | 
					                self.main_query() + """ AND move_type IN ('in_invoice')""") | 
				
			||||
 | 
					            main = self.env.cr.dictfetchall() | 
				
			||||
 | 
					            self.env.cr.execute( | 
				
			||||
 | 
					                self.amount_query() + """ AND move_type IN ('in_invoice')""") | 
				
			||||
 | 
					            amount = self.env.cr.dictfetchall() | 
				
			||||
 | 
					            data = { | 
				
			||||
 | 
					                'customer': self.display_name, | 
				
			||||
 | 
					                'street': self.street, | 
				
			||||
 | 
					                'street2': self.street2, | 
				
			||||
 | 
					                'city': self.city, | 
				
			||||
 | 
					                'state': self.state_id.name, | 
				
			||||
 | 
					                'zip': self.zip, | 
				
			||||
 | 
					                'my_data': main, | 
				
			||||
 | 
					                'total': amount[0]['total'], | 
				
			||||
 | 
					                'balance': amount[0]['balance'], | 
				
			||||
 | 
					                'currency': self.currency_id.symbol, | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					            output = io.BytesIO() | 
				
			||||
 | 
					            workbook = xlsxwriter.Workbook(output, {'in_memory': True}) | 
				
			||||
 | 
					            sheet = workbook.add_worksheet() | 
				
			||||
 | 
					            cell_format = workbook.add_format({ | 
				
			||||
 | 
					                'font_size': '14px', 'bold': True}) | 
				
			||||
 | 
					            txt = workbook.add_format({'font_size': '13px'}) | 
				
			||||
 | 
					            head = workbook.add_format( | 
				
			||||
 | 
					                {'align': 'center', 'bold': True, 'font_size': '22px'}) | 
				
			||||
 | 
					            sheet.merge_range('B2:P4', 'Payment Statement Report', head) | 
				
			||||
 | 
					            date_style = workbook.add_format({ | 
				
			||||
 | 
					                'text_wrap': True, 'align': 'center', | 
				
			||||
 | 
					                'num_format': 'yyyy-mm-dd'}) | 
				
			||||
 | 
					            if data['customer']: | 
				
			||||
 | 
					                sheet.write('B7:C7', 'Supplier : ', cell_format) | 
				
			||||
 | 
					                sheet.merge_range('D7:G7', data['customer'], txt) | 
				
			||||
 | 
					            sheet.write('B9:C7', 'Address : ', cell_format) | 
				
			||||
 | 
					            if data['street']: | 
				
			||||
 | 
					                sheet.merge_range('D9:F9', data['street'], txt) | 
				
			||||
 | 
					            if data['street2']: | 
				
			||||
 | 
					                sheet.merge_range('D10:F10', data['street2'], txt) | 
				
			||||
 | 
					            if data['city']: | 
				
			||||
 | 
					                sheet.merge_range('D11:F11', data['city'], txt) | 
				
			||||
 | 
					            if data['state']: | 
				
			||||
 | 
					                sheet.merge_range('D12:F12', data['state'], txt) | 
				
			||||
 | 
					            if data['zip']: | 
				
			||||
 | 
					                sheet.merge_range('D13:F13', data['zip'], txt) | 
				
			||||
 | 
					            sheet.write('B15', 'Date', cell_format) | 
				
			||||
 | 
					            sheet.write('D15', 'Invoice/Bill Number', cell_format) | 
				
			||||
 | 
					            sheet.write('H15', 'Due Date', cell_format) | 
				
			||||
 | 
					            sheet.write('J15', 'Invoices/Debit', cell_format) | 
				
			||||
 | 
					            sheet.write('M15', 'Amount Due', cell_format) | 
				
			||||
 | 
					            sheet.write('P15', 'Balance Due', cell_format) | 
				
			||||
 | 
					            row = 16 | 
				
			||||
 | 
					            column = 0 | 
				
			||||
 | 
					            for record in data['my_data']: | 
				
			||||
 | 
					                sheet.merge_range(row, column + 1, row, column + 2, | 
				
			||||
 | 
					                                  record['invoice_date'], date_style) | 
				
			||||
 | 
					                sheet.merge_range(row, column + 3, row, column + 5, | 
				
			||||
 | 
					                                  record['name'], txt) | 
				
			||||
 | 
					                sheet.merge_range(row, column + 7, row, column + 8, | 
				
			||||
 | 
					                                  record['invoice_date_due'], date_style) | 
				
			||||
 | 
					                sheet.merge_range(row, column + 9, row, column + 10, | 
				
			||||
 | 
					                                  data['currency'] + str(record['sub_total']), | 
				
			||||
 | 
					                                  txt) | 
				
			||||
 | 
					                sheet.merge_range(row, column + 12, row, column + 13, | 
				
			||||
 | 
					                                  data['currency'] + str(record['amount_due']), | 
				
			||||
 | 
					                                  txt) | 
				
			||||
 | 
					                sheet.merge_range(row, column + 15, row, column + 16, | 
				
			||||
 | 
					                                  data['currency'] + str(record['balance']), | 
				
			||||
 | 
					                                  txt) | 
				
			||||
 | 
					                row = row + 1 | 
				
			||||
 | 
					                sheet.write(row + 2, column + 1, 'Total Amount : ', | 
				
			||||
 | 
					                            cell_format) | 
				
			||||
 | 
					                sheet.merge_range(row + 2, column + 4, row + 2, column + 5, | 
				
			||||
 | 
					                                  data['currency'] + str(data['total']), txt) | 
				
			||||
 | 
					                sheet.write(row + 4, column + 1, 'Balance Due : ', cell_format) | 
				
			||||
 | 
					                sheet.merge_range(row + 4, column + 4, row + 4, column + 5, | 
				
			||||
 | 
					                                  data['currency'] + str(data['balance']), txt) | 
				
			||||
 | 
					            workbook.close() | 
				
			||||
 | 
					            output.seek(0) | 
				
			||||
 | 
					            xlsx = base64.b64encode(output.read()) | 
				
			||||
 | 
					            output.close() | 
				
			||||
 | 
					            ir_values = { | 
				
			||||
 | 
					                'name': "Statement Report", | 
				
			||||
 | 
					                'type': 'binary', | 
				
			||||
 | 
					                'datas': xlsx, | 
				
			||||
 | 
					                'store_fname': xlsx, | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					            attachment = self.env['ir.attachment'].sudo().create(ir_values) | 
				
			||||
 | 
					            email_values = { | 
				
			||||
 | 
					                'email_to': self.email, | 
				
			||||
 | 
					                'subject': 'Payment Statement Report', | 
				
			||||
 | 
					                'body_html': f"<p>Dear <strong> Mr/Miss. {self.name}</strong> " | 
				
			||||
 | 
					                             f"</p>" | 
				
			||||
 | 
					                             f"<p> We have attached your payment statement. " | 
				
			||||
 | 
					                             f"Please check </p>" | 
				
			||||
 | 
					                             f"<p>Best regards, </p> <p> {self.env.user.name}", | 
				
			||||
 | 
					                'attachment_ids': [attachment.id] | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					            self.env['mail.mail'].sudo().create(email_values).send() | 
				
			||||
 | 
					            return { | 
				
			||||
 | 
					                'type': 'ir.actions.client', | 
				
			||||
 | 
					                'tag': 'display_notification', | 
				
			||||
 | 
					                'params': { | 
				
			||||
 | 
					                    'message': 'Email Sent Successfully', | 
				
			||||
 | 
					                    'type': 'success', | 
				
			||||
 | 
					                    'sticky': False | 
				
			||||
 | 
					                } | 
				
			||||
 | 
					            } | 
				
			||||
 | 
					        else: | 
				
			||||
 | 
					            raise ValidationError(_('There is no statement to send')) | 
				
			||||
@ -0,0 +1,14 @@ | 
				
			|||||
 | 
					<?xml version="1.0" encoding="UTF-8" ?> | 
				
			||||
 | 
					<odoo> | 
				
			||||
 | 
					    <!-- Action for statement report--> | 
				
			||||
 | 
					    <record id="res_partner_action" model="ir.actions.report"> | 
				
			||||
 | 
					        <field name="name">Statement Report</field> | 
				
			||||
 | 
					        <field name="model">res.partner</field> | 
				
			||||
 | 
					        <field name="report_type">qweb-pdf</field> | 
				
			||||
 | 
					        <field name="report_name">statement_report.res_partner_statement_report_template</field> | 
				
			||||
 | 
					        <field name="report_file">statement_report.res_partner_statement_report_template</field> | 
				
			||||
 | 
					        <field name="print_report_name">'Statement Report- %s' %(object.name)</field> | 
				
			||||
 | 
					        <field name="binding_model_id" ref="model_res_partner"/> | 
				
			||||
 | 
					        <field name="binding_type">report</field> | 
				
			||||
 | 
					    </record> | 
				
			||||
 | 
					</odoo> | 
				
			||||
@ -0,0 +1,76 @@ | 
				
			|||||
 | 
					<?xml version="1.0" encoding="UTF-8" ?> | 
				
			||||
 | 
					<odoo> | 
				
			||||
 | 
					    <!-- Statement report template--> | 
				
			||||
 | 
					    <template id="res_partner_statement_report_template"> | 
				
			||||
 | 
					        <t t-call="web.html_container"> | 
				
			||||
 | 
					            <t t-call="web.external_layout"> | 
				
			||||
 | 
					                <div page="page"> | 
				
			||||
 | 
					                    <h3>Payment Statement Report</h3> | 
				
			||||
 | 
					                </div><br/> | 
				
			||||
 | 
					                <table border="0"> | 
				
			||||
 | 
					                    <tr><t t-esc="customer"/></tr><br/><br/> | 
				
			||||
 | 
					                    <tr><t t-if="street"> <t t-esc="street"/></t></tr><br/> | 
				
			||||
 | 
					                    <tr><t t-if="street2"> <t t-esc="street2"/></t></tr><br/> | 
				
			||||
 | 
					                    <tr><t t-if="city"> <t t-esc="city"/></t></tr><br/> | 
				
			||||
 | 
					                    <tr><t t-if="state"> <t t-esc="state"/></t></tr><br/> | 
				
			||||
 | 
					                </table> | 
				
			||||
 | 
					                <br/><br/> | 
				
			||||
 | 
					                <table class="table" style="align-items: center;"> | 
				
			||||
 | 
					                    <thead> | 
				
			||||
 | 
					                        <tr> | 
				
			||||
 | 
					                            <th>Date</th> | 
				
			||||
 | 
					                            <th>Invoice/Bill Number</th> | 
				
			||||
 | 
					                            <th>Due Date</th> | 
				
			||||
 | 
					                            <th>Invoices/Debit</th> | 
				
			||||
 | 
					                            <th>Balance</th> | 
				
			||||
 | 
					                        </tr> | 
				
			||||
 | 
					                    </thead> | 
				
			||||
 | 
					                    <tbody> | 
				
			||||
 | 
					                        <t t-foreach="my_data" t-as="line"> | 
				
			||||
 | 
					                            <tr> | 
				
			||||
 | 
					                                <td><t t-esc="line['invoice_date']"/></td> | 
				
			||||
 | 
					                                <td><t t-esc="line['name']"/></td> | 
				
			||||
 | 
					                                <td><t t-esc="line['invoice_date_due']"/></td> | 
				
			||||
 | 
					                                <td> | 
				
			||||
 | 
					                                    <t t-esc="currency"/> | 
				
			||||
 | 
					                                    <t t-esc="line['sub_total']"/> | 
				
			||||
 | 
					                                </td> | 
				
			||||
 | 
					                                <td> | 
				
			||||
 | 
					                                    <t t-esc="currency"/> | 
				
			||||
 | 
					                                    <t t-esc="line['balance']"/> | 
				
			||||
 | 
					                                </td> | 
				
			||||
 | 
					                            </tr> | 
				
			||||
 | 
					                        </t> | 
				
			||||
 | 
					                    </tbody> | 
				
			||||
 | 
					                </table> | 
				
			||||
 | 
					                <br/> | 
				
			||||
 | 
					                <t t-if="total"> | 
				
			||||
 | 
					                    <div class="clearfix" name="so_total_summary"> | 
				
			||||
 | 
					                        <div id="total" class="row" name="total"> | 
				
			||||
 | 
					                            <div t-attf-class="#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'} ms-auto"> | 
				
			||||
 | 
					                                <table class="table table-sm"> | 
				
			||||
 | 
					                                    <tbody> | 
				
			||||
 | 
					                                        <tr> | 
				
			||||
 | 
					                                            <td>Total Amount:</td> | 
				
			||||
 | 
					                                            <td> | 
				
			||||
 | 
					                                                <t t-esc="currency"/> | 
				
			||||
 | 
					                                                <t t-esc="total"/> | 
				
			||||
 | 
					                                            </td> | 
				
			||||
 | 
					                                        </tr> | 
				
			||||
 | 
					                                        <tr> | 
				
			||||
 | 
					                                            <td>Total Balance:</td> | 
				
			||||
 | 
					                                            <td> | 
				
			||||
 | 
					                                                <t t-esc="currency"/> | 
				
			||||
 | 
					                                                <t t-esc="balance"/> | 
				
			||||
 | 
					                                            </td> | 
				
			||||
 | 
					                                        </tr> | 
				
			||||
 | 
					                                    </tbody> | 
				
			||||
 | 
					                                </table> | 
				
			||||
 | 
					                            </div> | 
				
			||||
 | 
					                        </div> | 
				
			||||
 | 
					                    </div> | 
				
			||||
 | 
					                </t> | 
				
			||||
 | 
					            </t> | 
				
			||||
 | 
					        </t> | 
				
			||||
 | 
					    </template> | 
				
			||||
 | 
					</odoo> | 
				
			||||
| 
		 After Width: | Height: | Size: 3.6 KiB  | 
| 
		 After Width: | Height: | Size: 310 B  | 
| 
		 After Width: | Height: | Size: 1.3 KiB  | 
| 
		 After Width: | Height: | Size: 1.4 KiB  | 
| 
		 After Width: | Height: | Size: 576 B  | 
| 
		 After Width: | Height: | Size: 733 B  | 
| 
		 After Width: | Height: | Size: 911 B  | 
| 
		 After Width: | Height: | Size: 1.1 KiB  | 
| 
		 After Width: | Height: | Size: 1.2 KiB  | 
| 
		 After Width: | Height: | Size: 673 B  | 
| 
		 After Width: | Height: | Size: 878 B  | 
| 
		 After Width: | Height: | Size: 653 B  | 
| 
		 After Width: | Height: | Size: 905 B  | 
| 
		 After Width: | Height: | Size: 839 B  | 
| 
		 After Width: | Height: | Size: 427 B  | 
| 
		 After Width: | Height: | Size: 627 B  | 
| 
		 After Width: | Height: | Size: 1.2 KiB  | 
| 
		 After Width: | Height: | Size: 988 B  | 
| 
		 After Width: | Height: | Size: 1.2 KiB  | 
| 
		 After Width: | Height: | Size: 1.5 KiB  | 
| 
		 After Width: | Height: | Size: 1.1 KiB  | 
| 
		 After Width: | Height: | Size: 1.9 KiB  | 
| 
		 After Width: | Height: | Size: 1.1 KiB  | 
| 
		 After Width: | Height: | Size: 2.1 KiB  | 
| 
		 After Width: | Height: | Size: 4.4 KiB  | 
| 
		 After Width: | Height: | Size: 589 B  | 
| 
		 After Width: | Height: | Size: 3.4 KiB  | 
| 
		 After Width: | Height: | Size: 1.7 KiB  | 
| 
		 After Width: | Height: | Size: 2.3 KiB  | 
| 
		 After Width: | Height: | Size: 967 B  | 
| 
		 After Width: | Height: | Size: 1.6 KiB  | 
| 
		 After Width: | Height: | Size: 3.8 KiB  | 
| 
		 After Width: | Height: | Size: 5.0 KiB  | 
| 
		 After Width: | Height: | Size: 49 KiB  | 
| 
		 After Width: | Height: | Size: 60 KiB  | 
| 
		 After Width: | Height: | Size: 60 KiB  | 
| 
		 After Width: | Height: | Size: 59 KiB  | 
| 
		 After Width: | Height: | Size: 57 KiB  | 
| 
		 After Width: | Height: | Size: 49 KiB  | 
| 
		 After Width: | Height: | Size: 351 KiB  | 
| 
		 After Width: | Height: | Size: 135 KiB  | 
| 
		 After Width: | Height: | Size: 43 KiB  | 
| 
		 After Width: | Height: | Size: 64 KiB  | 
| 
		 After Width: | Height: | Size: 52 KiB  | 
| 
		 After Width: | Height: | Size: 48 KiB  | 
| 
		 After Width: | Height: | Size: 120 KiB  | 
| 
		 After Width: | Height: | Size: 135 KiB  | 
| 
		 After Width: | Height: | Size: 46 KiB  | 
| 
		 After Width: | Height: | Size: 63 KiB  | 
| 
		 After Width: | Height: | Size: 51 KiB  | 
| 
		 After Width: | Height: | Size: 62 KiB  | 
| 
		 After Width: | Height: | Size: 139 KiB  | 
| 
		 After Width: | Height: | Size: 40 KiB  | 
| 
		 After Width: | Height: | Size: 49 KiB  | 
| 
		 After Width: | Height: | Size: 17 KiB  | 
@ -0,0 +1,613 @@ | 
				
			|||||
 | 
					<div style="background-color: #714B67; min-height: 600px; width: 100%; padding: 15px; position: relative;"> | 
				
			||||
 | 
					    <!-- TITLE BAR --> | 
				
			||||
 | 
					    <div class="d-flex align-items-center justify-content-between" | 
				
			||||
 | 
					        style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;"> | 
				
			||||
 | 
					        <img src="assets/misc/cybrosys-logo.png" width="42" height="42" style="width: 42px; height: 42px;" /> | 
				
			||||
 | 
					        <div> | 
				
			||||
 | 
					            <div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" | 
				
			||||
 | 
					                class="mr-2"> | 
				
			||||
 | 
					                <i class="fa fa-check mr-1"></i>Community | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					            <div style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" | 
				
			||||
 | 
					                class="mr-2"> | 
				
			||||
 | 
					                <i class="fa fa-check mr-1"></i>Enterprise | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					            <div style="color: #017E84; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" | 
				
			||||
 | 
					                class="mr-2"> | 
				
			||||
 | 
					                <i class="fa fa-check mr-1"></i>Odoo.sh | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					    <!-- END OF TITLE BAR --> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    <div class="container"> | 
				
			||||
 | 
					        <div class="row"> | 
				
			||||
 | 
					            <div class="col-sm-12 col-md-12 col-lg-12"> | 
				
			||||
 | 
					                <!-- APP HERO --> | 
				
			||||
 | 
					                <h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">Customer/ Supplier Payment Statement Report</h1> | 
				
			||||
 | 
					                <p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">This System is Designed to Manage all Customer/ Supplier Payment Statement Reports.</p> | 
				
			||||
 | 
					                <!-- END OF APP HERO --> | 
				
			||||
 | 
					                <img src="assets/screenshots/hero.gif" class="img-responsive" | 
				
			||||
 | 
					                     style="width: 100%; margin-left: auto; margin-right: auto;"/> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					<!-- NAVIGATION SECTION --> | 
				
			||||
 | 
					<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;"> | 
				
			||||
 | 
					    <div class="d-flex justify-content-center align-items-center mr-2" | 
				
			||||
 | 
					        style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | 
				
			||||
 | 
					        <img src="assets/misc/compass.png" /> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					    <h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Explore This | 
				
			||||
 | 
					        Module</h2> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					<div class="row my-4" style="font-family: 'Montserrat', sans-serif;"> | 
				
			||||
 | 
					    <div class="col-sm-12 col-md-6 my-3"> | 
				
			||||
 | 
					        <a href="#overview"> | 
				
			||||
 | 
					            <div class="d-flex justify-content-between align-items-center" | 
				
			||||
 | 
					                style="background-color: #f5f5f5; padding: 30px; width: 100%;"> | 
				
			||||
 | 
					                <div> | 
				
			||||
 | 
					                    <span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span> | 
				
			||||
 | 
					                    <span | 
				
			||||
 | 
					                        style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33;  display: block;">Learn | 
				
			||||
 | 
					                        more about this | 
				
			||||
 | 
					                        module</span> | 
				
			||||
 | 
					                </div> | 
				
			||||
 | 
					                <img src="assets/misc/right-arrow.png" width="36" height="36" /> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </a> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					    <div class="col-sm-12 col-md-6 my-3"> | 
				
			||||
 | 
					        <a href="#features"> | 
				
			||||
 | 
					            <div class="d-flex justify-content-between align-items-center" | 
				
			||||
 | 
					                style="background-color: #f5f5f5; padding: 30px; width: 100%;"> | 
				
			||||
 | 
					                <div> | 
				
			||||
 | 
					                    <span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span> | 
				
			||||
 | 
					                    <span | 
				
			||||
 | 
					                        style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33;  display: block;">View | 
				
			||||
 | 
					                        features of this | 
				
			||||
 | 
					                        module</span> | 
				
			||||
 | 
					                </div> | 
				
			||||
 | 
					                <img src="assets/misc/right-arrow.png" width="36" height="36" /> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </a> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					    <div class="col-sm-12 col-md-6 my-3"> | 
				
			||||
 | 
					        <a href="#screenshots"> | 
				
			||||
 | 
					            <div class="d-flex justify-content-between align-items-center" | 
				
			||||
 | 
					                style="background-color: #f5f5f5; padding: 30px; width: 100%;"> | 
				
			||||
 | 
					                <div> | 
				
			||||
 | 
					                    <span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span> | 
				
			||||
 | 
					                    <span | 
				
			||||
 | 
					                        style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33;  display: block;">View | 
				
			||||
 | 
					                        screenshots for this | 
				
			||||
 | 
					                        module</span> | 
				
			||||
 | 
					                </div> | 
				
			||||
 | 
					                <img src="assets/misc/right-arrow.png" width="36" height="36" /> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </a> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					<!-- END OF NAVIGATION SECTION --> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					<!-- OVERVIEW SECTION --> | 
				
			||||
 | 
					<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview"> | 
				
			||||
 | 
					    <div class="d-flex justify-content-center align-items-center mr-2" | 
				
			||||
 | 
					        style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | 
				
			||||
 | 
					        <img src="assets/misc/pie-chart.png" /> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					    <h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Overview | 
				
			||||
 | 
					    </h2> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> | 
				
			||||
 | 
					    <div class="col-sm-12 py-4"> | 
				
			||||
 | 
					        This system is designed to manage all customer and/or supplier payment statement reports. | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					<!-- END OF OVERVIEW SECTION --> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					<!-- FEATURES SECTION --> | 
				
			||||
 | 
					<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features"> | 
				
			||||
 | 
					    <div class="d-flex justify-content-center align-items-center mr-2" | 
				
			||||
 | 
					        style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | 
				
			||||
 | 
					        <img src="assets/misc/features.png" /> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					    <h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Features | 
				
			||||
 | 
					    </h2> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> | 
				
			||||
 | 
					    <div class="col-sm-12 col-md-6"> | 
				
			||||
 | 
					        <div class="d-flex align-items-start" style="margin-top: 40px; margin-bottom: 40px"> | 
				
			||||
 | 
					            <img src="assets/misc/check-box.png" class="mr-2" /> | 
				
			||||
 | 
					            <div> | 
				
			||||
 | 
					                <span | 
				
			||||
 | 
					                    style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Available in Community and Enterprise.</span> | 
				
			||||
 | 
					                <span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 12px;"></span> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					        <div class="d-flex align-items-start" style="margin-top: 40px; margin-bottom: 40px"> | 
				
			||||
 | 
					            <img src="assets/misc/check-box.png" class="mr-2" /> | 
				
			||||
 | 
					            <div> | 
				
			||||
 | 
					                <span | 
				
			||||
 | 
					                    style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> Customer and Supplier Statement in Contacts.</span> | 
				
			||||
 | 
					                <span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 12px;"></span> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					        <div class="d-flex align-items-start" style="margin-top: 30px; margin-bottom: 30px"> | 
				
			||||
 | 
					            <img src="assets/misc/check-box.png" class="mr-2" /> | 
				
			||||
 | 
					            <div> | 
				
			||||
 | 
					                <span | 
				
			||||
 | 
					                    style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Option to Share and Print Pdf and Excel Report.</span> | 
				
			||||
 | 
					                <span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 14px;"></span> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					        <div class="d-flex align-items-start" style="margin-top: 40px; margin-bottom: 40px"> | 
				
			||||
 | 
					            <img src="assets/misc/check-box.png" class="mr-2" /> | 
				
			||||
 | 
					            <div> | 
				
			||||
 | 
					                <span | 
				
			||||
 | 
					                    style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Auto Send Weekly and Monthly Statement to Partners.</span> | 
				
			||||
 | 
					                <span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 14px;"></span> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					<!-- END OF FEATURES SECTION --> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					<!-- SCREENSHOTS SECTION --> | 
				
			||||
 | 
					<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="screenshots"> | 
				
			||||
 | 
					    <div class="d-flex justify-content-center align-items-center mr-2" | 
				
			||||
 | 
					        style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | 
				
			||||
 | 
					        <img src="assets/misc/pictures.png" /> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					    <h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Screenshots | 
				
			||||
 | 
					    </h2> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					<div class="row"> | 
				
			||||
 | 
					    <div class="col-sm-12"> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div style="display: block; margin: 30px auto;"> | 
				
			||||
 | 
					            <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Click --> Customer Payment Statement Pages</h3> | 
				
			||||
 | 
					            <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> | 
				
			||||
 | 
					            <img src="./assets/screenshots/s1.png" class="img-thumbnail"> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div style="display: block; margin: 30px auto;"> | 
				
			||||
 | 
					            <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Options to Print PDF Report, Print XLSX Report, Send Report by Email</h3> | 
				
			||||
 | 
					            <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> | 
				
			||||
 | 
					            <img src="./assets/screenshots/s2.png" class="img-thumbnail"> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div style="display: block; margin: 30px auto;"> | 
				
			||||
 | 
					            <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Supplier Payment Statements</h3> | 
				
			||||
 | 
					            <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> | 
				
			||||
 | 
					            <img src="./assets/screenshots/s3.png" class="img-thumbnail"> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div style="display: block; margin: 30px auto;"> | 
				
			||||
 | 
					            <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Statements</h3> | 
				
			||||
 | 
					            <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Customer Payment Statement - PDF</p> | 
				
			||||
 | 
					            <img style="width:100%" src="./assets/screenshots/s4.png" class="img-thumbnail"> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div style="display: block; margin: 30px auto;"> | 
				
			||||
 | 
					            <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"></h3> | 
				
			||||
 | 
					            <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Customer Payment Statement - Excel</p> | 
				
			||||
 | 
					            <img src="./assets/screenshots/s5.png" class="img-thumbnail"> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					        <div style="display: block; margin: 30px auto;"> | 
				
			||||
 | 
					            <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"></h3> | 
				
			||||
 | 
					            <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Supplier Payment Statement - PDF</p> | 
				
			||||
 | 
					            <img style="width:100%" src="./assets/screenshots/s6.png" class="img-thumbnail"> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					        <div style="display: block; margin: 30px auto;"> | 
				
			||||
 | 
					            <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"></h3> | 
				
			||||
 | 
					            <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Supplier Payment Statement - Excel</p> | 
				
			||||
 | 
					            <img src="./assets/screenshots/s7.png" class="img-thumbnail"> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					        <div style="display: block; margin: 30px auto;"> | 
				
			||||
 | 
					            <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Share Payment Statement via Email</h3> | 
				
			||||
 | 
					            <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> | 
				
			||||
 | 
					            <img src="./assets/screenshots/s8.png" class="img-thumbnail"> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					        <div style="display: block; margin: 30px auto;"> | 
				
			||||
 | 
					            <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">PDF Payment Statement Mail with Attachments</h3> | 
				
			||||
 | 
					            <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> | 
				
			||||
 | 
					            <img style="width:100%" src="./assets/screenshots/s9.png" class="img-thumbnail"> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div style="display: block; margin: 30px auto;"> | 
				
			||||
 | 
					            <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Excel Payment Statement Mail with Attachments</h3> | 
				
			||||
 | 
					            <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> | 
				
			||||
 | 
					            <img style="width:100%" src="./assets/screenshots/s10.png" class="img-thumbnail"> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					        <div style="display: block; margin: 30px auto;"> | 
				
			||||
 | 
					            <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Scheduled Action</h3> | 
				
			||||
 | 
					            <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Two Options:-</p> | 
				
			||||
 | 
					            <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> 1.Monthly Statement Report</p> | 
				
			||||
 | 
					            <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> 2.Weekly Statement Report</p> | 
				
			||||
 | 
					            <img src="./assets/screenshots/s11.png" class="img-thumbnail"> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					        <div style="display: block; margin: 30px auto;"> | 
				
			||||
 | 
					            <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Monthly Statement Report Mail with Attachments</h3> | 
				
			||||
 | 
					            <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> | 
				
			||||
 | 
					            <img style="width:100%" src="./assets/screenshots/s12.png" class="img-thumbnail"> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					        <div style="display: block; margin: 30px auto;"> | 
				
			||||
 | 
					            <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Weekly Statement Report Mail with Attachments</h3> | 
				
			||||
 | 
					            <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> | 
				
			||||
 | 
					            <img style="width:100%" src="./assets/screenshots/s13.png" class="img-thumbnail"> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					<!-- END OF SCREENSHOTS SECTION --> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					<!-- SUGGESTED PRODUCTS --> | 
				
			||||
 | 
					<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> | 
				
			||||
 | 
					    <div class="d-flex justify-content-center align-items-center mr-2" | 
				
			||||
 | 
					        style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | 
				
			||||
 | 
					        <img src="assets/misc/categories.png" /> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					    <h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Suggested Products</h2> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					<div class="row"> | 
				
			||||
 | 
					    <div class="col-sm-12"> | 
				
			||||
 | 
					        <div id="demo1" class="row carousel slide" data-ride="carousel"> | 
				
			||||
 | 
					            <!-- The slideshow --> | 
				
			||||
 | 
					            <div class="carousel-inner" style="padding: 30px;"> | 
				
			||||
 | 
					                <div class="carousel-item" style="min-height: 198.656px;"> | 
				
			||||
 | 
					                    <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | 
				
			||||
 | 
					                        <a href="https://apps.odoo.com/apps/modules/15.0/custom_receipts_for_pos/" target="_blank"> | 
				
			||||
 | 
					                            <div style="border-radius:10px"> | 
				
			||||
 | 
					                                <img class="img img-responsive center-block" style="border-radius: 0px;" | 
				
			||||
 | 
					                                    src="./assets/modules/1.jpg"> | 
				
			||||
 | 
					                            </div> | 
				
			||||
 | 
					                        </a> | 
				
			||||
 | 
					                    </div> | 
				
			||||
 | 
					                     <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | 
				
			||||
 | 
					                        <a href="https://apps.odoo.com/apps/modules/15.0/sale_report_advanced/" target="_blank"> | 
				
			||||
 | 
					                            <div style="border-radius:10px"> | 
				
			||||
 | 
					                                <img class="img img-responsive center-block" style="border-radius: 0px;" | 
				
			||||
 | 
					                                    src="./assets/modules/2.png"> | 
				
			||||
 | 
					                            </div> | 
				
			||||
 | 
					                        </a> | 
				
			||||
 | 
					                    </div> | 
				
			||||
 | 
					                    <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | 
				
			||||
 | 
					                        <a href="https://apps.odoo.com/apps/modules/15.0/dynamic_accounts_report/" target="_blank"> | 
				
			||||
 | 
					                            <div style="border-radius:10px"> | 
				
			||||
 | 
					                                <img class="img img-responsive center-block" style="border-radius: 0px;" | 
				
			||||
 | 
					                                    src="./assets/modules/3.png"> | 
				
			||||
 | 
					                            </div> | 
				
			||||
 | 
					                        </a> | 
				
			||||
 | 
					                    </div> | 
				
			||||
 | 
					                </div> | 
				
			||||
 | 
					                <div class="carousel-item active" style="min-height: 198.656px;"> | 
				
			||||
 | 
					                    <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | 
				
			||||
 | 
					                        <a href="https://apps.odoo.com/apps/modules/15.0/project_report_pdf/" target="_blank"> | 
				
			||||
 | 
					                            <div style="border-radius:10px"> | 
				
			||||
 | 
					                                <img class="img img-responsive center-block" style="border-radius: 0px;" | 
				
			||||
 | 
					                                    src="./assets/modules/4.png"> | 
				
			||||
 | 
					                            </div> | 
				
			||||
 | 
					                        </a> | 
				
			||||
 | 
					                    </div> | 
				
			||||
 | 
					                    <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | 
				
			||||
 | 
					                        <a href="https://apps.odoo.com/apps/modules/15.0/timesheets_by_employee/" target="_blank"> | 
				
			||||
 | 
					                            <div style="border-radius:10px"> | 
				
			||||
 | 
					                                <img class="img img-responsive center-block" style="border-radius: 0px;" | 
				
			||||
 | 
					                                    src="./assets/modules/5.png"> | 
				
			||||
 | 
					                            </div> | 
				
			||||
 | 
					                        </a> | 
				
			||||
 | 
					                    </div> | 
				
			||||
 | 
					                    <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> | 
				
			||||
 | 
					                        <a href="https://apps.odoo.com/apps/modules/15.0/export_view_pdf/" target="_blank"> | 
				
			||||
 | 
					                            <div style="border-radius:10px"> | 
				
			||||
 | 
					                                <img class="img img-responsive center-block" style="border-radius: 0px;" | 
				
			||||
 | 
					                                    src="./assets/modules/6.jpg"> | 
				
			||||
 | 
					                            </div> | 
				
			||||
 | 
					                        </a> | 
				
			||||
 | 
					                    </div> | 
				
			||||
 | 
					                </div> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					            <!-- Left and right controls --> | 
				
			||||
 | 
					            <a class="carousel-control-prev" href="#demo1" data-slide="prev" style="width:35px; color:#000"> <span | 
				
			||||
 | 
					                    class="carousel-control-prev-icon"><i class="fa fa-chevron-left" style="font-size:24px"></i></span> | 
				
			||||
 | 
					            </a> <a class="carousel-control-next" href="#demo1" data-slide="next" style="width:35px; color:#000"> | 
				
			||||
 | 
					                <span class="carousel-control-next-icon"><i class="fa fa-chevron-right" | 
				
			||||
 | 
					                        style="font-size:24px"></i></span> | 
				
			||||
 | 
					            </a> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					<!-- END OF SUGGESTED PRODUCTS --> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					<!-- OUR SERVICES --> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> | 
				
			||||
 | 
					    <div class="d-flex justify-content-center align-items-center mr-2" | 
				
			||||
 | 
					        style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | 
				
			||||
 | 
					        <img src="assets/misc/star.png" /> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					    <h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Our Services | 
				
			||||
 | 
					    </h2> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					<div class="container my-5"> | 
				
			||||
 | 
					    <div class="row"> | 
				
			||||
 | 
					        <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | 
				
			||||
 | 
					            <div class="d-flex justify-content-center align-items-center mx-3 my-3" | 
				
			||||
 | 
					                style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | 
				
			||||
 | 
					                <img src="assets/icons/cogs.png" class="img-responsive" height="48px" width="48px"> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					            <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | 
				
			||||
 | 
					                Odoo | 
				
			||||
 | 
					                Customization</h6> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | 
				
			||||
 | 
					            <div class="d-flex justify-content-center align-items-center mx-3 my-3" | 
				
			||||
 | 
					                style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;"> | 
				
			||||
 | 
					                <img src="assets/icons/wrench.png" class="img-responsive" height="48px" width="48px"> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					            <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | 
				
			||||
 | 
					                Odoo | 
				
			||||
 | 
					                Implementation</h6> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | 
				
			||||
 | 
					            <div class="d-flex justify-content-center align-items-center mx-3 my-3" | 
				
			||||
 | 
					                style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;"> | 
				
			||||
 | 
					                <img src="assets/icons/lifebuoy.png" class="img-responsive" height="48px" width="48px"> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					            <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | 
				
			||||
 | 
					                Odoo | 
				
			||||
 | 
					                Support</h6> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | 
				
			||||
 | 
					            <div class="d-flex justify-content-center align-items-center mx-3 my-3" | 
				
			||||
 | 
					                style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | 
				
			||||
 | 
					                <img src="assets/icons/user.png" class="img-responsive" height="48px" width="48px"> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					            <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | 
				
			||||
 | 
					                Hire | 
				
			||||
 | 
					                Odoo | 
				
			||||
 | 
					                Developer</h6> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | 
				
			||||
 | 
					            <div class="d-flex justify-content-center align-items-center mx-3 my-3" | 
				
			||||
 | 
					                style="background-color: #54a0ff  !important; border-radius: 15px !important; height: 80px; width: 80px;"> | 
				
			||||
 | 
					                <img src="assets/icons/puzzle.png" class="img-responsive" height="48px" width="48px"> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					            <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | 
				
			||||
 | 
					                Odoo | 
				
			||||
 | 
					                Integration</h6> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | 
				
			||||
 | 
					            <div class="d-flex justify-content-center align-items-center mx-3 my-3" | 
				
			||||
 | 
					                style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | 
				
			||||
 | 
					                <img src="assets/icons/update.png" class="img-responsive" height="48px" width="48px"> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					            <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | 
				
			||||
 | 
					                Odoo | 
				
			||||
 | 
					                Migration</h6> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | 
				
			||||
 | 
					            <div class="d-flex justify-content-center align-items-center mx-3 my-3" | 
				
			||||
 | 
					                style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | 
				
			||||
 | 
					                <img src="assets/icons/consultation.png" class="img-responsive" height="48px" width="48px"> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					            <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | 
				
			||||
 | 
					                Odoo | 
				
			||||
 | 
					                Consultancy</h6> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | 
				
			||||
 | 
					            <div class="d-flex justify-content-center align-items-center mx-3 my-3" | 
				
			||||
 | 
					                style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | 
				
			||||
 | 
					                <img src="assets/icons/training.png" class="img-responsive" height="48px" width="48px"> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					            <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | 
				
			||||
 | 
					                Odoo | 
				
			||||
 | 
					                Implementation</h6> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> | 
				
			||||
 | 
					            <div class="d-flex justify-content-center align-items-center mx-3 my-3" | 
				
			||||
 | 
					                style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;"> | 
				
			||||
 | 
					                <img src="assets/icons/license.png" class="img-responsive" height="48px" width="48px"> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					            <h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> | 
				
			||||
 | 
					                Odoo | 
				
			||||
 | 
					                Licensing Consultancy</h6> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					<!-- END OF OUR SERVICES --> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					<!-- OUR INDUSTRIES --> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> | 
				
			||||
 | 
					    <div class="d-flex justify-content-center align-items-center mr-2" | 
				
			||||
 | 
					        style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | 
				
			||||
 | 
					        <img src="assets/misc/corporate.png" /> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					    <h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Our | 
				
			||||
 | 
					        Industries | 
				
			||||
 | 
					    </h2> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					<div class="container my-5"> | 
				
			||||
 | 
					    <div class="row"> | 
				
			||||
 | 
					        <div class="col-lg-3"> | 
				
			||||
 | 
					            <div class="my-4 d-flex flex-column justify-content-center" | 
				
			||||
 | 
					                style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | 
				
			||||
 | 
					                <img src="./assets/icons/trading-black.png" class="img-responsive mb-3" height="48px" width="48px"> | 
				
			||||
 | 
					                <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | 
				
			||||
 | 
					                    Trading | 
				
			||||
 | 
					                </h5> | 
				
			||||
 | 
					                <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | 
				
			||||
 | 
					                    Easily procure | 
				
			||||
 | 
					                    and | 
				
			||||
 | 
					                    sell your products</p> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div class="col-lg-3"> | 
				
			||||
 | 
					            <div class="my-4 d-flex flex-column justify-content-center" | 
				
			||||
 | 
					                style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | 
				
			||||
 | 
					                <img src="./assets/icons/pos-black.png" class="img-responsive mb-3" height="48px" width="48px"> | 
				
			||||
 | 
					                <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | 
				
			||||
 | 
					                    POS | 
				
			||||
 | 
					                </h5> | 
				
			||||
 | 
					                <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | 
				
			||||
 | 
					                    Easy | 
				
			||||
 | 
					                    configuration | 
				
			||||
 | 
					                    and convivial experience</p> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div class="col-lg-3"> | 
				
			||||
 | 
					            <div class="my-4 d-flex flex-column justify-content-center" | 
				
			||||
 | 
					                style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | 
				
			||||
 | 
					                <img src="./assets/icons/education-black.png" class="img-responsive mb-3" height="48px" width="48px"> | 
				
			||||
 | 
					                <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | 
				
			||||
 | 
					                    Education | 
				
			||||
 | 
					                </h5> | 
				
			||||
 | 
					                <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | 
				
			||||
 | 
					                    A platform for | 
				
			||||
 | 
					                    educational management</p> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div class="col-lg-3"> | 
				
			||||
 | 
					            <div class="my-4 d-flex flex-column justify-content-center" | 
				
			||||
 | 
					                style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | 
				
			||||
 | 
					                <img src="./assets/icons/manufacturing-black.png" class="img-responsive mb-3" height="48px" | 
				
			||||
 | 
					                    width="48px"> | 
				
			||||
 | 
					                <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | 
				
			||||
 | 
					                    Manufacturing | 
				
			||||
 | 
					                </h5> | 
				
			||||
 | 
					                <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | 
				
			||||
 | 
					                    Plan, track and | 
				
			||||
 | 
					                    schedule your operations</p> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div class="col-lg-3"> | 
				
			||||
 | 
					            <div class="my-4 d-flex flex-column justify-content-center" | 
				
			||||
 | 
					                style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | 
				
			||||
 | 
					                <img src="./assets/icons/ecom-black.png" class="img-responsive mb-3" height="48px" width="48px"> | 
				
			||||
 | 
					                <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | 
				
			||||
 | 
					                    E-commerce & Website | 
				
			||||
 | 
					                </h5> | 
				
			||||
 | 
					                <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | 
				
			||||
 | 
					                    Mobile | 
				
			||||
 | 
					                    friendly, | 
				
			||||
 | 
					                    awe-inspiring product pages</p> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div class="col-lg-3"> | 
				
			||||
 | 
					            <div class="my-4 d-flex flex-column justify-content-center" | 
				
			||||
 | 
					                style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | 
				
			||||
 | 
					                <img src="./assets/icons/service-black.png" class="img-responsive mb-3" height="48px" width="48px"> | 
				
			||||
 | 
					                <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | 
				
			||||
 | 
					                    Service Management | 
				
			||||
 | 
					                </h5> | 
				
			||||
 | 
					                <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | 
				
			||||
 | 
					                    Keep track of | 
				
			||||
 | 
					                    services and invoice</p> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div class="col-lg-3"> | 
				
			||||
 | 
					            <div class="my-4 d-flex flex-column justify-content-center" | 
				
			||||
 | 
					                style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | 
				
			||||
 | 
					                <img src="./assets/icons/restaurant-black.png" class="img-responsive mb-3" height="48px" width="48px"> | 
				
			||||
 | 
					                <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | 
				
			||||
 | 
					                    Restaurant | 
				
			||||
 | 
					                </h5> | 
				
			||||
 | 
					                <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | 
				
			||||
 | 
					                    Run your bar or | 
				
			||||
 | 
					                    restaurant methodically</p> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <div class="col-lg-3"> | 
				
			||||
 | 
					            <div class="my-4 d-flex flex-column justify-content-center" | 
				
			||||
 | 
					                style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> | 
				
			||||
 | 
					                <img src="./assets/icons/hotel-black.png" class="img-responsive mb-3" height="48px" width="48px"> | 
				
			||||
 | 
					                <h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> | 
				
			||||
 | 
					                    Hotel Management | 
				
			||||
 | 
					                </h5> | 
				
			||||
 | 
					                <p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> | 
				
			||||
 | 
					                    An | 
				
			||||
 | 
					                    all-inclusive | 
				
			||||
 | 
					                    hotel management application</p> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					<!--END OF OUR INDUSTRIES --> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					<!-- SUPPORT --> | 
				
			||||
 | 
					<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> | 
				
			||||
 | 
					    <div class="d-flex justify-content-center align-items-center mr-2" | 
				
			||||
 | 
					        style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> | 
				
			||||
 | 
					        <img src="assets/misc/customer-support.png" /> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					    <h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Support | 
				
			||||
 | 
					    </h2> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					<div class="container mt-5"> | 
				
			||||
 | 
					    <div class="row"> | 
				
			||||
 | 
					        <div class="col-sm-12 col-md-6"> | 
				
			||||
 | 
					            <div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> | 
				
			||||
 | 
					                <div class="mr-4" | 
				
			||||
 | 
					                    style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> | 
				
			||||
 | 
					                    <img src="assets/misc/support.png" height="48" width="48" style="width: 42px; height: 42px;" /> | 
				
			||||
 | 
					                </div> | 
				
			||||
 | 
					                <div> | 
				
			||||
 | 
					                    <h4>Need Help?</h4> | 
				
			||||
 | 
					                    <p style="line-height: 100%;">Got questions or need help? Get in touch.</p> | 
				
			||||
 | 
					                    <a href="mailto:odoo@cybrosys.com"> | 
				
			||||
 | 
					                        <p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;"> | 
				
			||||
 | 
					                            odoo@cybrosys.com</p> | 
				
			||||
 | 
					                    </a> | 
				
			||||
 | 
					                </div> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					        <div class="col-sm-12 col-md-6"> | 
				
			||||
 | 
					            <div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> | 
				
			||||
 | 
					                <div class="mr-4" | 
				
			||||
 | 
					                    style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> | 
				
			||||
 | 
					                    <img src="assets/misc/whatsapp.png" height="52" width="52" style="width: 52px; height: 52px;" /> | 
				
			||||
 | 
					                </div> | 
				
			||||
 | 
					                <div> | 
				
			||||
 | 
					                    <h4>WhatsApp</h4> | 
				
			||||
 | 
					                    <p style="line-height: 100%;">Say hi to us on WhatsApp!</p> | 
				
			||||
 | 
					                    <a href="https://api.whatsapp.com/send?phone=918606827707"> | 
				
			||||
 | 
					                        <p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">+91 86068 | 
				
			||||
 | 
					                            27707</p> | 
				
			||||
 | 
					                    </a> | 
				
			||||
 | 
					                </div> | 
				
			||||
 | 
					            </div> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					    <div class="row"> | 
				
			||||
 | 
					        <div class="col-sm-12 my-5 d-flex justify-content-center align-items-center"> | 
				
			||||
 | 
					            <img src="assets/misc/logo.png" width="144" height="31" | 
				
			||||
 | 
					                style="width:144px; height: 31px; margin-top: 40px;" /> | 
				
			||||
 | 
					        </div> | 
				
			||||
 | 
					    </div> | 
				
			||||
 | 
					</div> | 
				
			||||
 | 
					<!-- END OF SUPPORT --> | 
				
			||||
@ -0,0 +1,19 @@ | 
				
			|||||
 | 
					/** @odoo-module*/ | 
				
			||||
 | 
					import {registry} from "@web/core/registry"; | 
				
			||||
 | 
					var framework = require('web.framework') | 
				
			||||
 | 
					var session = require('web.session') | 
				
			||||
 | 
					/*Action manager for xlsx report*/ | 
				
			||||
 | 
					registry.category('ir.actions.report handlers').add('xlsx', async (action) => { | 
				
			||||
 | 
					    if (action.report_type === 'xlsx'){ | 
				
			||||
 | 
					        framework.blockUI(); | 
				
			||||
 | 
					        var def = $.Deferred(); | 
				
			||||
 | 
					        session.get_file({ | 
				
			||||
 | 
					            url : '/xlsx_report', | 
				
			||||
 | 
					            data : action.data, | 
				
			||||
 | 
					            success : def.resolve.bind(def), | 
				
			||||
 | 
					            error : (error) => this.call('crash_manager', 'rpc_error', error), | 
				
			||||
 | 
					            complete : framework.unblockUI, | 
				
			||||
 | 
					        }); | 
				
			||||
 | 
					        return def; | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					}) | 
				
			||||
@ -0,0 +1,92 @@ | 
				
			|||||
 | 
					<?xml version="1.0" encoding="UTF-8" ?> | 
				
			||||
 | 
					<odoo> | 
				
			||||
 | 
					    <!-- Customer and vendor statements --> | 
				
			||||
 | 
					    <record id="view_partner_form" model="ir.ui.view"> | 
				
			||||
 | 
					        <field name="name">res.partner.view.form.inherit.statement.report</field> | 
				
			||||
 | 
					        <field name="model">res.partner</field> | 
				
			||||
 | 
					        <field name="inherit_id" ref="base.view_partner_form"/> | 
				
			||||
 | 
					        <field name="arch" type="xml"> | 
				
			||||
 | 
					            <xpath expr="//page[@name='sales_purchases']" position="after"> | 
				
			||||
 | 
					                <page name="customer_statement_page" | 
				
			||||
 | 
					                      string="Customer Statement"> | 
				
			||||
 | 
					                    <button name="action_print_pdf" type="object" | 
				
			||||
 | 
					                            class="btn-secondary"> | 
				
			||||
 | 
					                        Print PDF | 
				
			||||
 | 
					                    </button> | 
				
			||||
 | 
					                    <button name="action_print_xlsx" type="object" | 
				
			||||
 | 
					                            class="btn-secondary"> | 
				
			||||
 | 
					                        Print Excel | 
				
			||||
 | 
					                    </button> | 
				
			||||
 | 
					                    <button name="action_share_pdf" type="object" | 
				
			||||
 | 
					                            class="btn-secondary"> | 
				
			||||
 | 
					                        Sent PDF By Email | 
				
			||||
 | 
					                    </button> | 
				
			||||
 | 
					                    <button name="action_share_xlsx" type="object" | 
				
			||||
 | 
					                            class="btn-secondary"> | 
				
			||||
 | 
					                        Sent Excel By Email | 
				
			||||
 | 
					                    </button> | 
				
			||||
 | 
					                    <br/> | 
				
			||||
 | 
					                    <br/> | 
				
			||||
 | 
					                    <field name="customer_report_ids"> | 
				
			||||
 | 
					                        <tree create='false' delete="false"> | 
				
			||||
 | 
					                            <field name="currency_id" invisible="1"/> | 
				
			||||
 | 
					                            <field name="invoice_date" | 
				
			||||
 | 
					                                   string="Invoice Date" readonly="1"/> | 
				
			||||
 | 
					                            <field name="name" string="Invoice No."/> | 
				
			||||
 | 
					                            <field name="invoice_date_due" readonly="1"/> | 
				
			||||
 | 
					                            <field name="amount_total_signed" | 
				
			||||
 | 
					                                   sum="Total Amount" string="Total Amount" | 
				
			||||
 | 
					                                   widget="monetary" | 
				
			||||
 | 
					                                   options="{'currency_field': 'currency_id'}"/> | 
				
			||||
 | 
					                            <field name="amount_residual_signed" | 
				
			||||
 | 
					                                   string="Amount Due" widget="monetary" | 
				
			||||
 | 
					                                   options="{'currency_field': 'currency_id'}"/> | 
				
			||||
 | 
					                            <field name="amount_residual" sum="Balance Due" | 
				
			||||
 | 
					                                   string="Balance" widget="monetary" | 
				
			||||
 | 
					                                   options="{'currency_field': 'currency_id'}"/> | 
				
			||||
 | 
					                        </tree> | 
				
			||||
 | 
					                    </field> | 
				
			||||
 | 
					                </page> | 
				
			||||
 | 
					                <page name="supplier_statement" | 
				
			||||
 | 
					                      string="Supplier Statement"> | 
				
			||||
 | 
					                    <button name="action_vendor_print_pdf" type="object" | 
				
			||||
 | 
					                            class="btn-secondary"> | 
				
			||||
 | 
					                        Print PDF | 
				
			||||
 | 
					                    </button> | 
				
			||||
 | 
					                    <button name="action_vendor_print_xlsx" type="object" | 
				
			||||
 | 
					                            class="btn-secondary"> | 
				
			||||
 | 
					                        Print Excel | 
				
			||||
 | 
					                    </button> | 
				
			||||
 | 
					                    <button name="action_vendor_share_pdf" type="object" | 
				
			||||
 | 
					                            class="btn-secondary"> | 
				
			||||
 | 
					                        Sent PDF By Email | 
				
			||||
 | 
					                    </button> | 
				
			||||
 | 
					                    <button name="action_vendor_share_xlsx" type="object" | 
				
			||||
 | 
					                            class="btn-secondary"> | 
				
			||||
 | 
					                        Sent Excel By Email | 
				
			||||
 | 
					                    </button> | 
				
			||||
 | 
					                    <br/> | 
				
			||||
 | 
					                    <br/> | 
				
			||||
 | 
					                    <field name="vendor_statement_ids"> | 
				
			||||
 | 
					                        <tree create="false" delete="false"> | 
				
			||||
 | 
					                            <field name="currency_id" invisible="1"/> | 
				
			||||
 | 
					                            <field name="invoice_date" string="Bill Date" readonly="1"/> | 
				
			||||
 | 
					                            <field name="name" string="Bill No."/> | 
				
			||||
 | 
					                            <field name="invoice_date_due" readonly="1"/> | 
				
			||||
 | 
					                            <field name="amount_total_signed" | 
				
			||||
 | 
					                                   sum="Total Amount" string="Total Amount" | 
				
			||||
 | 
					                                   widget="monetary" | 
				
			||||
 | 
					                                   options="{'currency_field': 'currency_id'}"/> | 
				
			||||
 | 
					                            <field name="amount_residual_signed" | 
				
			||||
 | 
					                                   string="Amount Due" widget="monetary" | 
				
			||||
 | 
					                                   options="{'currency_field': 'currency_id'}"/> | 
				
			||||
 | 
					                            <field name="amount_residual" sum="Balance Due" | 
				
			||||
 | 
					                                   string="Balance" widget="monetary" | 
				
			||||
 | 
					                                   options="{'currency_field': 'currency_id'}"/> | 
				
			||||
 | 
					                        </tree> | 
				
			||||
 | 
					                    </field> | 
				
			||||
 | 
					                </page> | 
				
			||||
 | 
					            </xpath> | 
				
			||||
 | 
					        </field> | 
				
			||||
 | 
					    </record> | 
				
			||||
 | 
					</odoo> | 
				
			||||