@ -0,0 +1,46 @@ |
|||||
|
.. image:: https://img.shields.io/badge/licence-LGPL--3-green.svg |
||||
|
:target: https://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. |
||||
|
|
||||
|
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/opl-1.0-standalone.html) |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
Developer: (V14)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,49 @@ |
|||||
|
# -*- 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': '14.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': ['base', 'account', 'contacts'], |
||||
|
'data': [ |
||||
|
'data/ir_cron_data.xml', |
||||
|
'views/assets.xml', |
||||
|
'views/res_partner_views.xml', |
||||
|
'report/res_partner_reports.xml', |
||||
|
'report/res_partner_templates.xml', |
||||
|
], |
||||
|
'images': ['static/description/banner.jpg'], |
||||
|
'license': 'LGPL-3', |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
'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 """ |
||||
|
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,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> |
||||
|
|
||||
|
#### 08.01.2024 |
||||
|
#### Version 14.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: 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,870 @@ |
|||||
|
# -*- 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 statement", |
||||
|
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""" |
||||
|
for rec in self: |
||||
|
inv_ids = rec.env['account.move'].search( |
||||
|
[('partner_id', '=', rec.id), |
||||
|
('move_type', '=', 'out_invoice'), |
||||
|
('payment_state', '!=', 'paid'), |
||||
|
('state', '=', 'posted')]).ids |
||||
|
rec.customer_report_ids = inv_ids |
||||
|
|
||||
|
def _compute_vendor_statement_ids(self): |
||||
|
""" For computing 'bills' of partner """ |
||||
|
for rec in self: |
||||
|
bill_ids = rec.env['account.move'].search( |
||||
|
[('partner_id', '=', rec.id), |
||||
|
('move_type', '=', 'in_invoice'), |
||||
|
('payment_state', '!=', 'paid'), |
||||
|
('state', '=', 'posted')]).ids |
||||
|
rec.vendor_statement_ids = bill_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 ' |
||||
|
f'<strong>Mr/Miss. {self.name}</strong></p>' |
||||
|
f'<p>We have attached your payment statement. ' |
||||
|
f'Please check</p>' |
||||
|
f'<p>Best regards,</p>' |
||||
|
f'<p>{self.env.user.name}</p>', |
||||
|
'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_print_pdf(self): |
||||
|
""" Action for printing 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, |
||||
|
} |
||||
|
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: |
||||
|
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, |
||||
|
} |
||||
|
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: |
||||
|
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']: |
||||
|
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': f'<p>Dear ' |
||||
|
f'<strong>Mr/Miss. {self.name}</strong></p>' |
||||
|
f'<p>We have attached your payment statement. ' |
||||
|
f'Please check</p>' |
||||
|
f'<p>Best regards,</p>' |
||||
|
f'<p>{self.env.user.name}</p>', |
||||
|
'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 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'), |
||||
|
('company_id', '=', self.env.company.id)]) |
||||
|
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', |
||||
|
} |
||||
|
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] |
||||
|
} |
||||
|
self.env['mail.mail'].sudo().create(email_values).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'), |
||||
|
('company_id', '=', self.env.company.id)]) |
||||
|
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', |
||||
|
} |
||||
|
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] |
||||
|
} |
||||
|
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: |
||||
|
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, |
||||
|
} |
||||
|
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 ' |
||||
|
f'<strong>Mr/Miss. {self.name}</strong></p>' |
||||
|
f'<p>We have attached your payment statement. ' |
||||
|
f'Please check</p>' |
||||
|
f'<p>Best regards,</p>' |
||||
|
f'<p>{self.env.user.name}</p>', |
||||
|
'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']: |
||||
|
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': f'<p>Dear ' |
||||
|
f'<strong>Mr/Miss. {self.name}</strong></p>' |
||||
|
f'<p>We have attached your payment statement. ' |
||||
|
f'Please check</p>' |
||||
|
f'<p>Best regards,</p>' |
||||
|
f'<p>{self.env.user.name}</p>', |
||||
|
'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,78 @@ |
|||||
|
<?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> |
||||
|
<!--Looping the data--> |
||||
|
<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/> |
||||
|
<!--If there is total then below fields are visible--> |
||||
|
<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: 46 KiB |
After Width: | Height: | Size: 49 KiB |
After Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 56 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 198 KiB |
After Width: | Height: | Size: 62 KiB |
After Width: | Height: | Size: 48 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 196 KiB |
After Width: | Height: | Size: 51 KiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 201 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 342 KiB |
After Width: | Height: | Size: 95 KiB |
After Width: | Height: | Size: 8.7 KiB |
@ -0,0 +1,618 @@ |
|||||
|
<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> |
||||
|
</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 and/or 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 Edition</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="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;">Click --> Customer Statement</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Options to Print PDF Report, Print XLSX Report, Send Report by Email</p> |
||||
|
<img src="./assets/screenshots/1.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;">Click --> Supplier Statement</h3> |
||||
|
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Options to Print PDF Report, Print XLSX Report, Send Report by Email</p> |
||||
|
<img src="./assets/screenshots/2.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/3.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/4.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/5.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/6.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/7.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/8.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/9.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/10.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/11.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/12.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/14.0/project_dashboard_odoo/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius: 0px;" |
||||
|
src="./assets/modules/1.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/14.0/pdf_report_with_sign/" target="_blank"> |
||||
|
<div style="border-radius:10px"> |
||||
|
<img class="img img-responsive center-block" style="border-radius: 0px;" |
||||
|
src="./assets/modules/2.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/14.0/magic_note/" 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/14.0/cybrosys_support_client/" 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/14.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/14.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/6.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 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,30 @@ |
|||||
|
odoo.define('statement_report.action_manager', function (require) { |
||||
|
"use strict"; |
||||
|
/** |
||||
|
* The purpose of this file is to add the actions of type |
||||
|
* 'ir_actions_xlsx_download' to the ActionManager. |
||||
|
*/ |
||||
|
var ActionManager = require('web.ActionManager'); |
||||
|
var framework = require('web.framework'); |
||||
|
var session = require('web.session'); |
||||
|
ActionManager.include({ |
||||
|
_executexlsxReportDownloadAction: function (action) { |
||||
|
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; |
||||
|
}, |
||||
|
_handleAction: function (action, options) { |
||||
|
if (action.report_type === 'xlsx') { |
||||
|
return this._executexlsxReportDownloadAction(action, options); |
||||
|
} |
||||
|
return this._super.apply(this, arguments); |
||||
|
}, |
||||
|
}); |
||||
|
}); |
@ -0,0 +1,11 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!--Connecting the js file--> |
||||
|
<template id="assets_backend" name="assets" |
||||
|
inherit_id="web.assets_backend"> |
||||
|
<xpath expr="." position="inside"> |
||||
|
<script type="text/javascript" |
||||
|
src="/statement_report/static/src/js/action_manager.js"/> |
||||
|
</xpath> |
||||
|
</template> |
||||
|
</odoo> |
@ -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.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> |