@ -0,0 +1,42 @@ |
|||||
|
.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg |
||||
|
:target: http://www.gnu.org/licenses/opl-1.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. |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
Developer: Ayisha Sumayya K @cybrosys, Contact: odoo@cybrosys.com |
||||
|
|
||||
|
Contacts |
||||
|
-------- |
||||
|
* Mail Contact : odoo@cybrosys.com |
||||
|
* Website : https://cybrosys.com |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
General Public License, Version 3 (LGPL v3). |
||||
|
(https://www.odoo.com/documentation/user/13.0/legal/licenses/licenses.html) |
||||
|
|
||||
|
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: Ayisha Sumayya K (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,49 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Ayisha Sumayya K (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': '16.0.1.0.0', |
||||
|
'category': 'Productivity', |
||||
|
'summary': """Customer/ Supplier Payment Statement Report for Odoo 16""", |
||||
|
'description': """ This module help you to get Customer/ Supplier |
||||
|
Payment Statement Report """, |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': "https://www.cybrosys.com", |
||||
|
'depends': ['base', 'account', 'contacts'], |
||||
|
'data': [ |
||||
|
'data/ir_cron_data.xml', |
||||
|
'views/res_partner_views.xml', |
||||
|
'report/report_template.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,23 @@ |
|||||
|
""" init file for controller """ |
||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Ayisha Sumayya K (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,56 @@ |
|||||
|
""" controller for xlsx report """ |
||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Ayisha Sumayya K (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 """ |
||||
|
|
||||
|
report_obj = request.env[model].sudo() |
||||
|
options = json.loads(options) |
||||
|
try: |
||||
|
if output_format == 'xlsx': |
||||
|
response = request.make_response( |
||||
|
None, headers=[ |
||||
|
('Content-Type', 'application/vnd.ms-excel'), |
||||
|
('Content-Disposition', content_disposition( |
||||
|
report_name + '.xlsx'))]) |
||||
|
report_obj.get_xlsx_report(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,32 @@ |
|||||
|
<?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,7 @@ |
|||||
|
## Module <statement_report> |
||||
|
|
||||
|
#### 16.02.2023 |
||||
|
#### Version 16.0.1.0.0 |
||||
|
#### ADD |
||||
|
|
||||
|
- Initial commit for Customer/ Supplier Payment Statement Report |
@ -0,0 +1,23 @@ |
|||||
|
""" init file for models """ |
||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Ayisha Sumayya K (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,914 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author:Ayisha Sumayya K (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 Partner(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', |
||||
|
help='partner invoices') |
||||
|
vendor_statement_ids = fields.Many2many( |
||||
|
'account.move', |
||||
|
compute='_compute_vendor_statement_ids', |
||||
|
help='partner bills') |
||||
|
currency_id = fields.Many2one( |
||||
|
'res.currency', |
||||
|
default=lambda self: self.env.company.currency_id.id, |
||||
|
help="currency" |
||||
|
) |
||||
|
|
||||
|
def _compute_customer_report_ids(self): |
||||
|
""" for computing 'invoices' of partner""" |
||||
|
inv_ids = self.env['account.move'].search( |
||||
|
[('partner_id', '=', self.id), |
||||
|
('move_type', '=', 'out_invoice'), |
||||
|
('payment_state', '!=', 'paid'), |
||||
|
('state', '=', 'posted')]).ids |
||||
|
self.customer_report_ids = inv_ids |
||||
|
|
||||
|
def _compute_vendor_statement_ids(self): |
||||
|
""" for computing 'bills' of partner """ |
||||
|
bill_ids = self.env['account.move'].search( |
||||
|
[('partner_id', '=', self.id), |
||||
|
('move_type', '=', 'in_invoice'), |
||||
|
('payment_state', '!=', 'paid'), |
||||
|
('state', '=', 'posted')]).ids |
||||
|
self.vendor_statement_ids = bill_ids |
||||
|
|
||||
|
def main_query(self): |
||||
|
"""return select query""" |
||||
|
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 payment_state != 'paid' |
||||
|
AND state ='posted' AND partner_id= '%s' |
||||
|
AND company_id = '%s' """ % (self.id, self.env.company.id) |
||||
|
return query |
||||
|
|
||||
|
def amount_query(self): |
||||
|
"""return query for calculating total amount""" |
||||
|
amount_query = """ 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) |
||||
|
return amount_query |
||||
|
|
||||
|
def action_share_pdf(self): |
||||
|
""" action for sharing customer pdf report""" |
||||
|
if self.customer_report_ids: |
||||
|
main_query = self.main_query() |
||||
|
main_query += """ AND move_type IN ('out_invoice')""" |
||||
|
amount = self.amount_query() |
||||
|
amount += """ AND move_type IN ('out_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[ |
||||
|
'ir.actions.report' |
||||
|
].sudo()._render_qweb_pdf( |
||||
|
'statement_report.res_partner_action', |
||||
|
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': '<p>Dear <strong> Mr/Miss. ' + self.name + |
||||
|
'</strong> </p> <p> We have attached your ' |
||||
|
'payment statement. Please check </p> ' |
||||
|
'<p>Best regards, </p> <p> ' + self.env.user.name, |
||||
|
'attachment_ids': [attachment.id], |
||||
|
} |
||||
|
mail = self.env['mail.mail'].sudo().create(email_values) |
||||
|
mail.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_print_pdf(self): |
||||
|
""" action for printing pdf report""" |
||||
|
if self.customer_report_ids: |
||||
|
main_query = self.main_query() |
||||
|
main_query += """ AND move_type IN ('out_invoice')""" |
||||
|
amount = self.amount_query() |
||||
|
amount += """ AND move_type IN ('out_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, |
||||
|
} |
||||
|
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_print_xlsx(self): |
||||
|
""" action for printing xlsx report of customer """ |
||||
|
if self.customer_report_ids: |
||||
|
main_query = self.main_query() |
||||
|
main_query += """ AND move_type IN ('out_invoice')""" |
||||
|
amount = self.amount_query() |
||||
|
amount += """ AND move_type IN ('out_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, |
||||
|
} |
||||
|
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 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']: |
||||
|
sub_total = data['currency'] + str(record['sub_total']) |
||||
|
amount_due = data['currency'] + str(record['amount_due']) |
||||
|
balance = data['currency'] + str(record['balance']) |
||||
|
total = data['currency'] + str(data['total']) |
||||
|
remain_balance = data['currency'] + str(data['balance']) |
||||
|
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, |
||||
|
sub_total, txt_border) |
||||
|
sheet.merge_range(row, column + 12, row, column + 14, |
||||
|
amount_due, txt_border) |
||||
|
sheet.merge_range(row, column + 15, row, column + 17, |
||||
|
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, |
||||
|
total, txt) |
||||
|
sheet.write(row + 4, column + 1, 'Balance Due: ', cell_format) |
||||
|
sheet.merge_range(row + 4, column + 3, row + 4, column + 4, |
||||
|
remain_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: |
||||
|
main_query = self.main_query() |
||||
|
main_query += """ AND move_type IN ('out_invoice')""" |
||||
|
amount = self.amount_query() |
||||
|
amount += """ AND move_type IN ('out_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, |
||||
|
} |
||||
|
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']: |
||||
|
sub_total = data['currency'] + str(record['sub_total']) |
||||
|
amount_due = data['currency'] + str(record['amount_due']) |
||||
|
balance = data['currency'] + str(record['balance']) |
||||
|
total = data['currency'] + str(data['total']) |
||||
|
remain_balance = data['currency'] + str(data['balance']) |
||||
|
|
||||
|
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, |
||||
|
sub_total, txt) |
||||
|
sheet.merge_range(row, column + 12, row, column + 13, |
||||
|
amount_due, txt) |
||||
|
sheet.merge_range(row, column + 15, row, column + 16, |
||||
|
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, |
||||
|
total, txt) |
||||
|
sheet.write(row + 4, column + 1, 'Balance Due : ', cell_format) |
||||
|
sheet.merge_range(row + 4, column + 4, row + 4, column + 5, |
||||
|
remain_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': '<p>Dear <strong> Mr/Miss. ' + self.name + |
||||
|
'</strong> </p> <p> We have attached your' |
||||
|
' payment statement. Please check </p> ' |
||||
|
'<p>Best regards, </p> <p> ' + self.env.user.name, |
||||
|
'attachment_ids': [attachment.id], |
||||
|
} |
||||
|
mail = self.env['mail.mail'].sudo().create(email_values) |
||||
|
mail.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 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['ir.actions.report']._render_qweb_pdf( |
||||
|
'statement_report.res_partner_action', |
||||
|
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', |
||||
|
} |
||||
|
attachment1 = 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, |
||||
|
} |
||||
|
attachment2 = self.env['ir.attachment'].sudo().create( |
||||
|
ir_values) |
||||
|
email_values = { |
||||
|
'email_to': rec.email, |
||||
|
'subject': 'Weekly Payment Statement Report', |
||||
|
'body_html': '<p>Dear <strong> Mr/Miss. ' + rec.name + |
||||
|
'</strong> </p> <p> We have attached your ' |
||||
|
'payment statement. Please check </p> <p>' |
||||
|
'Best regards, </p><p> ' + self.env.user.name, |
||||
|
'attachment_ids': [attachment1.id, attachment2.id] |
||||
|
} |
||||
|
mail = self.env['mail.mail'].sudo().create(email_values) |
||||
|
mail.send() |
||||
|
|
||||
|
def auto_month_statement_report(self): |
||||
|
""" action for sending 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['ir.actions.report']._render_qweb_pdf( |
||||
|
'statement_report.res_partner_action', |
||||
|
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', |
||||
|
} |
||||
|
attachment1 = 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, |
||||
|
} |
||||
|
attachment2 = self.env['ir.attachment'].sudo().create( |
||||
|
ir_values) |
||||
|
email_values = { |
||||
|
'email_to': rec.email, |
||||
|
'subject': 'Monthly Payment Statement Report', |
||||
|
'body_html': '<p>Dear <strong> Mr/Miss. ' + rec.name + |
||||
|
'</strong> </p> <p> We have attached your ' |
||||
|
'payment statement. ' |
||||
|
'Please check </p> <p>Best regards,' |
||||
|
' </p> <p>' + self.env.user.name, |
||||
|
'attachment_ids': [attachment1.id, attachment2.id] |
||||
|
} |
||||
|
mail = self.env['mail.mail'].sudo().create(email_values) |
||||
|
mail.send() |
||||
|
|
||||
|
def action_vendor_print_pdf(self): |
||||
|
""" action for printing vendor pdf report """ |
||||
|
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, |
||||
|
} |
||||
|
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['ir.actions.report'].sudo()._render_qweb_pdf( |
||||
|
'statement_report.res_partner_action', 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': '<p>Dear <strong> Mr/Miss. ' + self.name + |
||||
|
'</strong> </p> <p> We have attached' |
||||
|
' your payment statement. Please check </p> ' |
||||
|
'<p>Best regards, </p> <p> ' + self.env.user.name, |
||||
|
'attachment_ids': [attachment.id], |
||||
|
} |
||||
|
mail = self.env['mail.mail'].sudo().create(email_values) |
||||
|
mail.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: |
||||
|
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, |
||||
|
} |
||||
|
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: |
||||
|
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, |
||||
|
} |
||||
|
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']: |
||||
|
sub_total = data['currency'] + str(record['sub_total']) |
||||
|
amount_due = data['currency'] + str(record['amount_due']) |
||||
|
balance = data['currency'] + str(record['balance']) |
||||
|
total = data['currency'] + str(data['total']) |
||||
|
remain_balance = data['currency'] + str(data['balance']) |
||||
|
|
||||
|
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, |
||||
|
sub_total, txt) |
||||
|
sheet.merge_range(row, column + 12, row, column + 13, |
||||
|
amount_due, txt) |
||||
|
sheet.merge_range(row, column + 15, row, column + 16, |
||||
|
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, |
||||
|
total, txt) |
||||
|
sheet.write(row + 4, column + 1, 'Balance Due : ', cell_format) |
||||
|
sheet.merge_range(row + 4, column + 4, row + 4, column + 5, |
||||
|
remain_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': '<p>Dear <strong> Mr/Miss. ' + self.name + |
||||
|
'</strong> </p> <p> We have attached your ' |
||||
|
'payment statement. Please check </p> ' |
||||
|
'<p>Best regards, </p> <p> ' + self.env.user.name, |
||||
|
'attachment_ids': [attachment.id], |
||||
|
} |
||||
|
mail = self.env['mail.mail'].sudo().create(email_values) |
||||
|
mail.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,88 @@ |
|||||
|
<?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> |
||||
|
|
||||
|
<!-- 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 align="center"><t t-esc="line['invoice_date']"/></td> |
||||
|
<td align="center"><t t-esc="line['name']"/></td> |
||||
|
<td align="center"><t t-esc="line['invoice_date_due']"/></td> |
||||
|
<td align="center"> |
||||
|
<t t-esc="currency"/> |
||||
|
<t t-esc="line['sub_total']"/> |
||||
|
</td> |
||||
|
<td align="center"> |
||||
|
<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: 1.3 MiB |
After Width: | Height: | Size: 83 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 84 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 179 KiB |
After Width: | Height: | Size: 184 KiB |
After Width: | Height: | Size: 183 KiB |
After Width: | Height: | Size: 163 KiB |
After Width: | Height: | Size: 157 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 79 KiB |
After Width: | Height: | Size: 177 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 177 KiB |
After Width: | Height: | Size: 163 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 99 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 424 KiB |
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 28 KiB |
@ -0,0 +1,634 @@ |
|||||
|
<div style="background-color: #714B67; min-height: 600px; width: 100%; padding: 15px; position: relative;"> |
||||
|
<!-- TITLE BAR --> |
||||
|
<div |
||||
|
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 --> |
||||
|
|
||||
|
<!-- 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 and/or supplier payment statement reports.</p> |
||||
|
<!-- END OF APP HERO --> |
||||
|
<img src="assets/screenshots/v16-hero.gif" |
||||
|
style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;" /> |
||||
|
|
||||
|
</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;">Enable option to share 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: 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;">Enable an option to print Pdf and Excel Reports</span> |
||||
|
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 14px;"></span> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<!-- <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;">Auto send weekly statement to customer</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 monthly statement to customer</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;">Customer/ Supplier Payment Statement Report Pages</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> |
||||
|
<img src="./assets/screenshots/Screenshot1.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;">Customer Payment Statements</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> |
||||
|
<img src="./assets/screenshots/Screenshot2.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/Screenshot12.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;">Print and Share Options</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> |
||||
|
<img src="./assets/screenshots/Screenshot13.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;">Customer Payment Statement PDF Report</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> |
||||
|
<img src="./assets/screenshots/Screenshot14.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;">Customer Payment Statement Excel Report</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> |
||||
|
<img src="./assets/screenshots/Screenshot15.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 PDF report via Email</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> |
||||
|
<img src="./assets/screenshots/Screenshot3.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 Excel report via Email</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> |
||||
|
<img src="./assets/screenshots/Screenshot6.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;">Status of Report Sharing</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> |
||||
|
<img src="./assets/screenshots/Screenshot4.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;">Automatic Actions</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Two Options, Weekly and Monthly.</p> |
||||
|
<img src="./assets/screenshots/Screenshot7.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 Action</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> |
||||
|
<img src="./assets/screenshots/Screenshot10.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 Action </h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"></p> |
||||
|
<img src="./assets/screenshots/Screenshot11.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 src="./assets/screenshots/Screenshot9.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 src="./assets/screenshots/Screenshot8.png" class="img-thumbnail"> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- END OF SCREENSHOTS SECTION --> |
||||
|
|
||||
|
<!-- RELATED 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;">Related |
||||
|
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/16.0/account_reports_xlsx/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius: 0px;" |
||||
|
src="./assets/modules/w1.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/16.0/account_recurring_payments/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius: 0px;" |
||||
|
src="./assets/modules/w4.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/16.0/account_cash_book/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius: 0px;" |
||||
|
src="./assets/modules/w2 - Copy.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/16.0/average_landed_cost/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius: 0px;" |
||||
|
src="./assets/modules/w3.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/16.0/base_accounting_kit/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius: 0px;" |
||||
|
src="./assets/modules/module_image.gif"> |
||||
|
</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/16.0/report_stock_inventory/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius: 0px;" |
||||
|
src="./assets/modules/w5.png"> |
||||
|
</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 RELATED 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 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 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> |
||||
|
</div> |
||||
|
<!-- END OF SUPPORT --> |
@ -0,0 +1,22 @@ |
|||||
|
/** @odoo-module*/ |
||||
|
import {registry} from "@web/core/registry"; |
||||
|
import {download} from "@web/core/network/download"; |
||||
|
|
||||
|
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,94 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<odoo> |
||||
|
<data> |
||||
|
<!-- customer and vendor statements --> |
||||
|
<record id="res_partner_view_form" model="ir.ui.view"> |
||||
|
<field name="name">res.partner.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"/> |
||||
|
<field name="name" string="Invoice No."/> |
||||
|
<field name="invoice_date_due"/> |
||||
|
<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"/> |
||||
|
<field name="name" string="Bill No."/> |
||||
|
<field name="invoice_date_due"/> |
||||
|
<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> |
||||
|
</data> |
||||
|
</odoo> |