@ -0,0 +1,48 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg |
||||
|
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html |
||||
|
:alt: License: LGPL-3 |
||||
|
|
||||
|
Advanced Cash Flow Statements |
||||
|
============================== |
||||
|
Generate 4 levels of Dynamic Cash Flow Statements Report. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
No configuration |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
General Public License, Version 3 (LGPL v3). |
||||
|
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
Developer: (V17) Mily Shajan , |
||||
|
(v17) Gayathri V, |
||||
|
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,23 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (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 wizard |
@ -0,0 +1,51 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (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': 'Advanced Cash Flow Statements', |
||||
|
'version': '17.0.1.0.0', |
||||
|
'summary': """Generate four levels of cash flow statement reports in PDF and |
||||
|
Excel""", |
||||
|
'description': """Generate four levels of cash flow statement reports in PDF |
||||
|
and Excel, pdf report, excel report, |
||||
|
cashflow, odoo17""", |
||||
|
'author': "Cybrosys Techno Solutions", |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': "https://www.cybrosys.com", |
||||
|
'category': 'Accounting', |
||||
|
'depends': ['base', 'account'], |
||||
|
'data': ['security/ir.model.access.csv', |
||||
|
'report/account_wizard_reports.xml', |
||||
|
'report/account_wizard_templates.xml', |
||||
|
'views/account_wizard_views.xml', |
||||
|
], |
||||
|
'assets': { |
||||
|
'web.assets_backend': [ |
||||
|
'advance_cash_flow_statements/static/src/js/action_manager.js' |
||||
|
], |
||||
|
}, |
||||
|
'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) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (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 advance_cash_flow_statements |
@ -0,0 +1,58 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (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): |
||||
|
""" Generates an XLSX report. """ |
||||
|
@http.route('/xlsx_reports', type='http', auth='user', |
||||
|
methods=['POST'], csrf=False) |
||||
|
def get_report_xlsx(self, model, options, output_format, report_name): |
||||
|
""" Generates an XLSX report. """ |
||||
|
uid = request.session.uid |
||||
|
report_obj = request.env[model].with_user(uid) |
||||
|
options = json.loads(options) |
||||
|
token = 'dummy-because-api-expects-one' |
||||
|
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', token) |
||||
|
return response |
||||
|
except Exception as e: |
||||
|
se = http.serialize_exception(e) |
||||
|
error = { |
||||
|
'code': 200, |
||||
|
'message': 'Odoo Server Error', |
||||
|
'data': se |
||||
|
} |
||||
|
return request.make_response(html_escape(json.dumps(error))) |
@ -0,0 +1,6 @@ |
|||||
|
## Module <advance_cash_flow_statements> |
||||
|
|
||||
|
#### 04.04.2024 |
||||
|
#### Version 17.0.1.0.0 |
||||
|
##### ADD |
||||
|
- Initial commit for Advanced Cash Flow Statements |
@ -0,0 +1,11 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<odoo> |
||||
|
<!-- Report action for cash flow statement--> |
||||
|
<record id="pdf_report_action" model="ir.actions.report"> |
||||
|
<field name="name">Cash flow statement Pdf Report</field> |
||||
|
<field name="model">account.wizard</field> |
||||
|
<field name="report_type">qweb-pdf</field> |
||||
|
<field name="report_name">advance_cash_flow_statements.cash_flow_pdf_report</field> |
||||
|
<field name="report_file">advance_cash_flow_statements.cash_flow_pdf_report</field> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,233 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- Template for cash flow report--> |
||||
|
<template id="cash_flow_pdf_report"> |
||||
|
<t t-call="web.html_container"> |
||||
|
<t t-call="web.internal_layout"> |
||||
|
<div style="font-size:12px" class="col-4"> |
||||
|
<b>Report Date :</b> |
||||
|
<span t-esc='today'/> |
||||
|
<br/> |
||||
|
<span t-esc='logged_users'/> |
||||
|
</div> |
||||
|
<br/> |
||||
|
<div class="page"> |
||||
|
<h4 style="padding-left:10px !important">Cash Flow |
||||
|
statements |
||||
|
</h4> |
||||
|
<div style="width:90%;margin:1px auto;font-size:12px" |
||||
|
class="row mt32 mb32"> |
||||
|
<div class="col-4"> |
||||
|
<strong>Target Moves:</strong> |
||||
|
<p> |
||||
|
<span t-if="target_move == 'posted'">All Posted |
||||
|
Entries |
||||
|
</span> |
||||
|
<span t-if="target_move == 'all'">All Entries |
||||
|
</span> |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="col-4"> |
||||
|
<p> |
||||
|
<strong>Date from :</strong> |
||||
|
<span t-esc='date_from'/> |
||||
|
<br/> |
||||
|
<strong>Date to :</strong> |
||||
|
<span t-esc='date_to'/> |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<table style="width:90%;margin:2px auto;" |
||||
|
class="table table-condensed"> |
||||
|
<thead> |
||||
|
<tr style="font-size:13px; padding: 0.25rem !important;"> |
||||
|
<th style="text-align:left;">Name</th> |
||||
|
<th style="text-align:right;">Cash In</th> |
||||
|
<th style="text-align:right;">Cash Out</th> |
||||
|
<th style="text-align:right;">Balance</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody style="font-size:12px" t-foreach="fetched_data" |
||||
|
t-as="fetch"> |
||||
|
<tr t-if="levels == 'summary'"> |
||||
|
<td> |
||||
|
<span t-esc="fetch.get('month_part')"/> |
||||
|
<span t-esc="int(fetch.get('year_part'))"/> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<span t-esc="fetch.get('total_debit')" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<span t-esc="fetch.get('total_credit')" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<span t-esc="fetch.get('total_balance')" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</td> |
||||
|
</tr> |
||||
|
<tr style="font-size:13px" |
||||
|
t-if="levels == 'consolidated'"> |
||||
|
<td> |
||||
|
<span t-esc="fetch.get('name')"/> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<span t-esc="fetch.get('total_debit')" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<span t-esc="fetch.get('total_credit')" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<span t-esc="fetch.get('total_balance')" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</tbody> |
||||
|
<tbody style="font-size:12px" |
||||
|
t-if="levels == 'detailed'" |
||||
|
t-foreach="journal_res" t-as="res"> |
||||
|
<tr t-if="fet.get('name') == res.get('account')" |
||||
|
t-foreach="fetched_data" t-as="fet"> |
||||
|
<td> |
||||
|
<strong> |
||||
|
<span t-esc="fetch.get('code')"/> |
||||
|
<span t-esc="fetch.get('name')"/> |
||||
|
</strong> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<strong> |
||||
|
<span t-esc="fetch.get('total_debit')" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</strong> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<strong> |
||||
|
<span t-esc="fetch.get('total_credit')" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</strong> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<strong> |
||||
|
<span t-esc="fetch.get('total_debit') - fet.get('total_credit')" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</strong> |
||||
|
</td> |
||||
|
<tr t-foreach="res.get('journal_lines')" |
||||
|
t-as="mov"> |
||||
|
<td style="text-align:right;padding-left:50px !important" |
||||
|
class="text-left"> |
||||
|
<span t-esc="mov['name']"/> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<span t-esc="mov['total_debit']" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<span t-esc="mov['total_credit']" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<span t-esc="mov['total_debit'] - mov['total_credit']" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</tr> |
||||
|
</tbody> |
||||
|
<tbody style="font-size:12px" t-if="levels == 'very'" |
||||
|
t-foreach="account_res" t-as="res"> |
||||
|
<tr t-if="fet.get('name') == res.get('account')" |
||||
|
t-foreach="fetched" t-as="fet"> |
||||
|
<td> |
||||
|
<strong> |
||||
|
<span t-esc="fet.get('code')"/> |
||||
|
<span t-esc="fet.get('name')"/> |
||||
|
</strong> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<strong> |
||||
|
<span t-esc="fet.get('total_debit')" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</strong> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<strong> |
||||
|
<span t-esc="fet.get('total_credit')" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</strong> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<strong> |
||||
|
<span t-esc="fet.get('total_debit') - fet.get('total_credit')" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</strong> |
||||
|
</td> |
||||
|
<tr t-if="line['account_name'] == res.get('account')" |
||||
|
t-foreach="res.get('journal_lines')" |
||||
|
t-as="line"> |
||||
|
<td style="text-align:right;padding-left:20px !important"> |
||||
|
<span t-esc="line['name']"/> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<span t-esc="line['total_debit']" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<span t-esc="line['total_credit']" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<span t-esc="line['total_debit'] - line['total_credit']" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</td> |
||||
|
<tr t-if="mov['name'] == line['name']" |
||||
|
t-foreach="res.get('move_lines')" |
||||
|
t-as="mov"> |
||||
|
<td style="text-align:right;padding-left:50px !important"> |
||||
|
<span t-esc="mov['move_name']"/> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<span t-esc="mov['total_debit']" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<span t-esc="mov['total_credit']" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</td> |
||||
|
<td style="text-align:right;"> |
||||
|
<span t-esc="mov['total_debit'] - mov['total_credit']" |
||||
|
t-options="{'widget': 'monetary', |
||||
|
'display_currency': res_company.currency_id}"/> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</tr> |
||||
|
</tr> |
||||
|
</tbody> |
||||
|
</table> |
||||
|
</div> |
||||
|
</t> |
||||
|
</t> |
||||
|
</template> |
||||
|
</odoo> |
|
After Width: | Height: | Size: 36 KiB |
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.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 11 KiB |
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: 80 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 72 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 124 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 74 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 53 KiB |
After Width: | Height: | Size: 93 KiB |
After Width: | Height: | Size: 417 KiB |
After Width: | Height: | Size: 90 KiB |
After Width: | Height: | Size: 9.0 KiB |
@ -0,0 +1,712 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="en"> |
||||
|
|
||||
|
<head> |
||||
|
<meta charset="UTF-8"> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
|
<title>Odoo App 3 Index</title> |
||||
|
<!-- Bootstrap CSS --> |
||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" |
||||
|
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> |
||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"> |
||||
|
<link rel="preconnect" href="https://fonts.googleapis.com"> |
||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
||||
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"> |
||||
|
</head> |
||||
|
<body> |
||||
|
<section> |
||||
|
<div class="container" style="font-family: 'Inter', sans-serif !important;background-color: #fff !important;"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between flex-wrap align-items-sm-center" |
||||
|
style="border-bottom:1px solid rgba(0, 0, 0, 0.22)"> |
||||
|
<div class="my-3"> |
||||
|
<img src="assets/misc/Cybrosys R.png" style="width:auto !important; height:40px !important"> |
||||
|
</div> |
||||
|
<div class="my-3 d-flex align-items-center"> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
||||
|
Community |
||||
|
</div> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#875A7B !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important;min-width: 120px !important;"> |
||||
|
Enterprise |
||||
|
</div> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#7C7BAD !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
||||
|
Odoo.sh |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-12 col-lg-12 text-center d-flex align-items-center flex-column" |
||||
|
style="margin: 80px 0px !important;"> |
||||
|
<h1 style="font-size: 2.8rem;font-weight: 700; color: |
||||
|
#1A202C;"> |
||||
|
Advanced Cash Flow Statements</h1> |
||||
|
<p class="my-3 mb-4" |
||||
|
style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;"> |
||||
|
Generate four levels of cash flow statements. |
||||
|
Print reports in both PDF and XLSX formats |
||||
|
</p> |
||||
|
<div style="width: 80%; margin-top: 3rem;"> |
||||
|
<img src="assets/screenshots/hero.gif" class="img-responsive" width="100%" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5 mb-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
||||
|
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#714b67 !important">Key Highlights |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="row py-4"> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
||||
|
background: #FFF; |
||||
|
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
||||
|
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
||||
|
display: flex; justify-content: center; align-items: center; |
||||
|
margin-right: 10px; flex-shrink: 0;"> |
||||
|
<i class="fa-solid fa-star " style="color: #fff;font-size:14px;"></i> |
||||
|
</div> |
||||
|
<div> |
||||
|
<p style="color: #1A202C;font-weight: 600; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Levels of Cash Flow</p> |
||||
|
<p class="m-0" style="color:#718096">Generate four levels of cash flow statements. |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
||||
|
background: #FFF; |
||||
|
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
||||
|
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
||||
|
display: flex; justify-content: center; align-items: center; |
||||
|
margin-right: 10px; flex-shrink: 0;"> |
||||
|
<i class="fa-solid fa-star " style="color: #fff;font-size:14px;"></i> |
||||
|
</div> |
||||
|
<div> |
||||
|
<p style="color: #1A202C;font-weight: 600; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Print reports in both PDF and XLSX |
||||
|
formats</p> |
||||
|
<p class="m-0" style="color:#718096">It gives four levels reports in both formats |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container rounded"> |
||||
|
<ul class="nav nav-tabs d-flex" style="width: fit-content;margin: 0 auto;gap: 1rem;"> |
||||
|
<li class="col text-center py-2 text-nowrap " |
||||
|
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"><a |
||||
|
class="active show" data-toggle="tab" href="#tab1" |
||||
|
style="color: #fff;font-weight: 500; background-color: #714B67; text-decoration: none;"> |
||||
|
<i class="fa-regular fa-image pr-2" style="color: #fff;"></i> |
||||
|
Screenshots</a></li> |
||||
|
<li class="col text-center py-2 text-nowrap " |
||||
|
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"><a |
||||
|
data-toggle="tab" href="#tab2" |
||||
|
style="color: #fff;font-weight: 500; text-decoration: none;"><i |
||||
|
class="fa-solid fa-star pr-2" style="color: #fff;"></i>Features</a></li> |
||||
|
<li class="col text-center py-2 text-nowrap " |
||||
|
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"><a |
||||
|
data-toggle="tab" href="#tab3" |
||||
|
style="color: #fff;font-weight: 500; text-decoration: none; background-color: #714B67;"><i |
||||
|
class="fa-solid fa-book-open pr-2" style="color: #fff;"></i>Released Notes</a></li> |
||||
|
</ul> |
||||
|
<div class="tab-content" style="background-color: rgba(121, 113, 119, 0.04);"> |
||||
|
<div id="tab1" class="tab-pane fade in active show"> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/1.png" class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Access Advanced Cash Flow from the Menu |
||||
|
<br/> |
||||
|
Go to Invoicing --> Reporting --> Financial Reports --> Adv Cash Flow Statement. |
||||
|
</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/2.png" class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Cash Flow Report in PDF and Excel</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/3.png" class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Cash Flow Statement Summary PDF</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/4.png" class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Cash Flow Statement Summary Excel</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/5.png" class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Cash flow Statement Consolidated PDF Report.</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/6.png" class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Cash Flow Statement Consolidated Excel</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/7.png" class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Cash flow Statement Detailed PDF Report</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/8.png" class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Cash flow Statement Detailed Excel Report</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/9.png" class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Cash flow Statement Very Detailed PDF Report.</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/10.png" class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Cash flow Statement Very Detailed Excel Report.</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="tab2" class="tab-pane fade"> |
||||
|
<div class="col-mg-12" style="padding: 1rem 4rem;"> |
||||
|
<ul style="list-style: none; padding: 1rem 0;font-weight: 500;"> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" |
||||
|
width="16px"></span>Based on the chosen date |
||||
|
gives four levels of cash flow |
||||
|
</li> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" |
||||
|
width="16px"></span>Analysing of Cash flow as |
||||
|
more easier |
||||
|
</li> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" |
||||
|
width="16px"></span> |
||||
|
Summary |
||||
|
<ul style="list-style: none;font-weight: 400; color:#718096"> |
||||
|
<li>Month wise cash flow report. |
||||
|
</li> |
||||
|
</ul> |
||||
|
</li> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" |
||||
|
width="16px"></span> |
||||
|
Consolidated |
||||
|
<ul style="list-style: none;font-weight: 400; color:#718096"> |
||||
|
<li>Report based on the cash flow affected accounts. |
||||
|
</li> |
||||
|
</ul> |
||||
|
</li> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" |
||||
|
width="16px"></span> |
||||
|
Detailed |
||||
|
<ul style="list-style: none;font-weight: 400; color:#718096"> |
||||
|
<li>Report based on the cash flow affected accounts. |
||||
|
</li> |
||||
|
</ul> |
||||
|
</li> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" |
||||
|
width="16px"></span>Very Detailed |
||||
|
<ul style="list-style: none;font-weight: 400; color:#718096"> |
||||
|
<li>Report shows the cash flow affected account,corresponding journal entries |
||||
|
and its move lines |
||||
|
</li> |
||||
|
</ul> |
||||
|
</li> |
||||
|
|
||||
|
</ul> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="tab3" class="tab-pane fade"> |
||||
|
<div class="col-mg-12 active" style="padding: 1rem 4rem;"> |
||||
|
<div class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="d-flex mb-3" style="font-size: 0.8rem; font-weight: 500;"><span>Version |
||||
|
17.0.1.0.0</span><span class="px-2">|</span><span |
||||
|
style="color: #714B67;font-weight: 600;">Released on:04th April 2024</span> |
||||
|
</div> |
||||
|
<p class="m-0" |
||||
|
style=" color:#718096!important; font-size:1rem !important;line-height: 28px;"> |
||||
|
|
||||
|
Initial Commit for Advanced Cash Flow Statements.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
||||
|
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Related Products</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="myCarousel" class="carousel slide py-3" data-ride="carousel"> |
||||
|
<div class="carousel-inner"> |
||||
|
<div class="carousel-item active"> |
||||
|
<div class="row p-4"> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/manufacturing_reports/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/1.png" alt="" width="100%" height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">Manufacturing |
||||
|
Reports</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/mrp_work_order_print/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/2.png" alt="" width="100%" height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">Print Work Order |
||||
|
Details</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/bom_total_cost/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/3.png" alt="" width="100%" height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">Show Total Cost On |
||||
|
BOM</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="carousel-item"> |
||||
|
<div class="row p-4"> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/simple_mrp_order/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/4.png" alt="" width="100%" height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">Simple Manufacturing |
||||
|
Orders</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/bom_multiple_product/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px;"> |
||||
|
<img src="assets/modules/5.png" alt="" width="100%" height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold">BOM Multiple Product |
||||
|
Selection</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/16.0/cw_mrp/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px;"> |
||||
|
<img src="assets/modules/6.png" alt="" width="100%" height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold"> Catch Weight |
||||
|
Management: Manufacturing</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<a class="carousel-control-prev" href="#myCarousel" 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="#myCarousel" 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 class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
||||
|
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Our Services</p> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container my-5"> |
||||
|
<div class="row py-3"> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#13EA36 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/cogs.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Customization</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#DBC711; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/wrench.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Implementation</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#FF6B6B ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/lifebuoy.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Support</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#FFA801 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/user.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Hire Odoo Developer</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
||||
|
|
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#54A0FF; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/puzzle.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Integration</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#6D7680 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/update.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Migration</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#786FA6 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/consultation.png" alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Consultancy</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#F8A5C2 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/training.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Implementation</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#E6BE26; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/license.png" alt="service-icon" width="38px" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo Licensing Consultancy</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
||||
|
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Our Industries</p> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container"> |
||||
|
<div class="row my-5 py-4"> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100 " |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; box-shadow: 6px 0 10px rgba(228, 227, 227, 0.373);"> |
||||
|
<img src="assets/icons/trading-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Trading</p> |
||||
|
<p>Easily procure and sell your products</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgb(209, 209, 209); padding: 30px;"> |
||||
|
<img src="assets/icons/pos-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">POS</p> |
||||
|
<p>Easy configuration and convivial experience</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgba(0, 0, 0, 0.2); padding: 30px; box-shadow: 0 5px 10px rgba(228, 227, 227, 0.373)"> |
||||
|
<img src="assets/icons/education-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Education</p> |
||||
|
<p>A platform for educational management</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; "> |
||||
|
<img src="assets/icons/manufacturing-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Manufacturing</p> |
||||
|
<p>Plan, track and schedule your operations</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;"> |
||||
|
<img src="assets/icons/ecom-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">E-commerce & Website</p> |
||||
|
<p>Mobile friendly, awe-inspiring product pages</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;box-shadow: 0 -5px 10px rgba(228, 227, 227, 0.373);"> |
||||
|
<img src="assets/icons/service-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Service Management</p> |
||||
|
<p>Keep track of services and invoice</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px; "> |
||||
|
<img src="assets/icons/restaurant-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Restaurant</p> |
||||
|
<p>Run your bar or restaurant methodically</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style=" padding: 30px;box-shadow: -5px 0 10px rgba(228, 227, 227, 0.373);"> |
||||
|
<img src="assets/icons/hotel-black.png" width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Hotel Management</p> |
||||
|
<p>An all-inclusive hotel management application</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
||||
|
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Support</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container my-5"> |
||||
|
<div class="row" style="background-color: #FFFAFE;"> |
||||
|
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center" |
||||
|
style="border-right: 1px solid #D9D9D9;"> |
||||
|
<div style="padding: 30px;"> |
||||
|
<div class="d-flex align-items-center"> |
||||
|
<img src="assets/misc/support (1) 1.svg" alt="" width="60px" |
||||
|
style="margin-right: 12px;"> |
||||
|
<div style="padding: 0px 8px;"> |
||||
|
<span |
||||
|
style="color: #714B67;font-size: 24px;font-weight: 600;padding-bottom: 1rem;">Need |
||||
|
Help?</span> |
||||
|
<p class="m-0" style="color:#718096;">Got questions or need help? Get in touch.</p> |
||||
|
<div style="font-weight: 400;"><span><img src="assets/misc/support-email.svg" alt="" |
||||
|
width="18px" |
||||
|
style="filter: invert(1);margin-right: 0.8rem;"></span>odoo@cybrosys.com |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center"> |
||||
|
<div style="padding: 30px;"> |
||||
|
<div class="d-flex align-items-center"> |
||||
|
<img src="assets/misc/whatsapp 1.svg" alt="" width="60px" style="margin-right: 12px;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67;font-size: 24px;font-weight: 600;">WhatsApp</span> |
||||
|
<p class="m-0" style="color:#718096;">Say hi to us on WhatsApp!</p> |
||||
|
<div style="font-weight: 400; font-size: 16px;"><span><img |
||||
|
src="assets/misc/phone.svg" |
||||
|
alt="" width="14px" |
||||
|
style="filter: invert(1); margin-right: 0.8rem;"></span>+91 |
||||
|
99456767686 |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
<!-- Optional JavaScript --> |
||||
|
<!-- jQuery first, then Popper.js, then Bootstrap JS --> |
||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> |
||||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> |
||||
|
</body> |
||||
|
</html> |
@ -0,0 +1,16 @@ |
|||||
|
/** @odoo-module */ |
||||
|
import { registry } from "@web/core/registry"; |
||||
|
import { BlockUI } from "@web/core/ui/block_ui"; |
||||
|
import { download } from "@web/core/network/download"; |
||||
|
// This function is responsible for generating and downloading an XLSX report.
|
||||
|
registry.category("ir.actions.report handlers").add("xlsx", async function (action){ |
||||
|
if (action.report_type === 'xlsx') { |
||||
|
const blockUI = new BlockUI(); |
||||
|
await download({ |
||||
|
url: '/xlsx_reports', |
||||
|
data: action.data, |
||||
|
complete: () => unblockUI, |
||||
|
error: (error) => self.call('crash_manager', 'rpc_error', error), |
||||
|
}); |
||||
|
} |
||||
|
}); |
@ -0,0 +1,52 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- Wizard form view--> |
||||
|
<record id="account_wizard_form_view" model="ir.ui.view"> |
||||
|
<field name="name">account.wizard.form.view</field> |
||||
|
<field name="model">account.wizard</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form string="Report Options"> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="date_from"/> |
||||
|
<field name="target_move" widget="radio"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="date_to"/> |
||||
|
<field name="levels"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
<footer> |
||||
|
<button name="generate_pdf_report" string="PDF" |
||||
|
type="object" default_focus="1" |
||||
|
class="oe_highlight"/> |
||||
|
<button name="generate_xlsx_report" string="Excel" |
||||
|
type="object" default_focus="1" |
||||
|
class="oe_highlight"/> |
||||
|
<button string="Cancel" class="btn btn-secondary" |
||||
|
special="cancel"/> |
||||
|
</footer> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
<!-- Window Action for Wizard--> |
||||
|
<record id="action_account_wizard" model="ir.actions.act_window"> |
||||
|
<field name="name">Cash Flow Statements</field> |
||||
|
<field name="type">ir.actions.act_window</field> |
||||
|
<field name="res_model">account.wizard</field> |
||||
|
<field name="view_id" |
||||
|
ref="advance_cash_flow_statements.account_wizard_form_view"/> |
||||
|
<field name="view_mode">form</field> |
||||
|
<field name="target">new</field> |
||||
|
</record> |
||||
|
<!-- Menuitem--> |
||||
|
<menuitem id="menu_financial_reports" sequence="5" |
||||
|
name="Financial reports" |
||||
|
parent="account.menu_finance_reports" |
||||
|
groups="account.group_account_manager"/> |
||||
|
<menuitem id="account_bank_book_menu" name="Adv Cash Flow Statement" |
||||
|
sequence="3" |
||||
|
action="advance_cash_flow_statements.action_account_wizard" |
||||
|
parent="advance_cash_flow_statements.menu_financial_reports" |
||||
|
groups="account.group_account_manager"/> |
||||
|
</odoo> |
@ -0,0 +1,24 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (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 account_account |
||||
|
from . import account_wizard |
||||
|
from . import report_account_wizard |
@ -0,0 +1,90 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (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 odoo import api, models, fields |
||||
|
from odoo.tools.misc import get_lang |
||||
|
|
||||
|
|
||||
|
class Account(models.Model): |
||||
|
_inherit = "account.report" |
||||
|
_description = "Account Common Report" |
||||
|
"""This is used to inherit account report to add more fields and |
||||
|
functions""" |
||||
|
|
||||
|
company_id = fields.Many2one('res.company', string='Company', required=True, |
||||
|
readonly=True, |
||||
|
default=lambda self: self.env.company, |
||||
|
help='default Company') |
||||
|
journal_ids = fields.Many2many( |
||||
|
comodel_name='account.journal', |
||||
|
string='Journals', |
||||
|
required=True, |
||||
|
default=lambda self: self.env['account.journal'].search( |
||||
|
[('company_id', '=', self.company_id.id)]), |
||||
|
domain="[('company_id', '=', company_id)]", help='Gives the journal of ' |
||||
|
'the default company') |
||||
|
date_from = fields.Date(string='Start Date', |
||||
|
help='Date at which report need to be start') |
||||
|
date_to = fields.Date(string='End Date', |
||||
|
help='Date at which report need to be End') |
||||
|
target_move = fields.Selection([('posted', 'All Posted Entries'), |
||||
|
('all', 'All Entries'), |
||||
|
], string='Target Moves', required=True, |
||||
|
default='posted', help='Type of entries') |
||||
|
|
||||
|
@api.onchange('company_id') |
||||
|
def _onchange_company_id(self): |
||||
|
""" Fetch the journal values based on company""" |
||||
|
if self.company_id: |
||||
|
self.journal_ids = self.env['account.journal'].search( |
||||
|
[('company_id', '=', self.company_id.id)]) |
||||
|
else: |
||||
|
self.journal_ids = self.env['account.journal'].search([]) |
||||
|
|
||||
|
def _build_contexts(self, data): |
||||
|
""" Pass the context values for report""" |
||||
|
result = {} |
||||
|
result['journal_ids'] = 'journal_ids' in data['form'] and data['form'][ |
||||
|
'journal_ids'] or False |
||||
|
result['state'] = 'target_move' in data['form'] and data['form'][ |
||||
|
'target_move'] or '' |
||||
|
result['date_from'] = data['form']['date_from'] or False |
||||
|
result['date_to'] = data['form']['date_to'] or False |
||||
|
result['strict_range'] = True if result['date_from'] else False |
||||
|
result['company_id'] = data['form']['company_id'][0] or False |
||||
|
return result |
||||
|
|
||||
|
def _print_report(self, data): |
||||
|
""" Report print action""" |
||||
|
raise NotImplementedError() |
||||
|
|
||||
|
def check_report(self): |
||||
|
""" Return the values for report""" |
||||
|
self.ensure_one() |
||||
|
data = {'ids': self.env.context.get('active_ids', []), |
||||
|
'model': self.env.context.get('active_model', 'ir.ui.menu'), |
||||
|
'form': self.read( |
||||
|
['date_from', 'date_to', 'journal_ids', 'target_move', |
||||
|
'company_id'])[0]} |
||||
|
used_context = self._build_contexts(data) |
||||
|
data['form']['used_context'] = dict(used_context, |
||||
|
lang=get_lang(self.env).code) |
||||
|
return self.with_context(discard_logo_check=True)._print_report(data) |
@ -0,0 +1,467 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (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 datetime import datetime |
||||
|
from odoo import models, fields, _ |
||||
|
from odoo.exceptions import UserError |
||||
|
from odoo.tools import date_utils, io |
||||
|
|
||||
|
try: |
||||
|
from odoo.tools.misc import xlsxwriter |
||||
|
except ImportError: |
||||
|
import xlsxwriter |
||||
|
|
||||
|
|
||||
|
class AccountWizard(models.TransientModel): |
||||
|
_name = "account.wizard" |
||||
|
_description = 'Account Wizard' |
||||
|
|
||||
|
name = fields.Char(default="Invoice", help='Name of Invoice ') |
||||
|
date_from = fields.Date(string="Start Date", required=True, |
||||
|
help='Date at which report need to be start') |
||||
|
date_to = fields.Date(string="End Date", default=fields.Date.today, |
||||
|
required=True, |
||||
|
help='Date at which report need to be end') |
||||
|
today = fields.Date("Report Date", default=fields.Date.today, |
||||
|
help='Date at which report is generated') |
||||
|
levels = fields.Selection([('summary', 'Summary'), |
||||
|
('consolidated', 'Consolidated'), |
||||
|
('detailed', 'Detailed'), |
||||
|
('very', 'Very Detailed')], |
||||
|
string='Levels', required=True, default='summary', |
||||
|
help='Different levels for cash flow statements\n' |
||||
|
'Summary: Month wise report.\n' |
||||
|
'Consolidated: Based on account types.\n' |
||||
|
'Detailed: Based on accounts.\n' |
||||
|
'Very Detailed: Accounts with their move lines') |
||||
|
target_move = fields.Selection([('posted', 'All Posted Entries'), |
||||
|
('all', 'All Entries'), |
||||
|
], string='Target Moves', required=True, |
||||
|
default='posted', help='Type of entries') |
||||
|
|
||||
|
def generate_pdf_report(self): |
||||
|
""" Generate the pdf reports and return values to template""" |
||||
|
self.ensure_one() |
||||
|
logged_users = self.env['res.company']._company_default_get( |
||||
|
'account.account') |
||||
|
if self.date_from: |
||||
|
if self.date_from > self.date_to: |
||||
|
raise UserError(_("Start date should be less than end date")) |
||||
|
data = { |
||||
|
'ids': self.ids, |
||||
|
'model': self._name, |
||||
|
'date_from': self.date_from, |
||||
|
'date_to': self.date_to, |
||||
|
'levels': self.levels, |
||||
|
'target_move': self.target_move, |
||||
|
'today': self.today, |
||||
|
'logged_users': logged_users.name, |
||||
|
} |
||||
|
return self.env.ref( |
||||
|
'advance_cash_flow_statements.pdf_report_action').report_action( |
||||
|
self, |
||||
|
data=data) |
||||
|
|
||||
|
def generate_xlsx_report(self): |
||||
|
""" Generate xlsx report return values to template""" |
||||
|
date_from = datetime.strptime(str(self.date_from), "%Y-%m-%d") |
||||
|
date_to = datetime.strptime(str(self.date_to), "%Y-%m-%d") |
||||
|
if date_from: |
||||
|
if date_from > date_to: |
||||
|
raise UserError(_("Start date should be less than end date")) |
||||
|
data = { |
||||
|
'ids': self.ids, |
||||
|
'model': self._name, |
||||
|
'date_from': self.date_from, |
||||
|
'date_to': self.date_to, |
||||
|
'levels': self.levels, |
||||
|
'target_move': self.target_move, |
||||
|
'today': self.today, |
||||
|
} |
||||
|
return { |
||||
|
'type': 'ir.actions.report', |
||||
|
'report_type': 'xlsx', |
||||
|
'data': {'model': 'account.wizard', |
||||
|
'output_format': 'xlsx', |
||||
|
'options': json.dumps(data, |
||||
|
default=date_utils.json_default), |
||||
|
'report_name': 'Adv Cash Flow Statement', |
||||
|
}, |
||||
|
} |
||||
|
|
||||
|
def get_xlsx_report(self, data, response): |
||||
|
""" Update the xlsx template and pass values to templates""" |
||||
|
output = io.BytesIO() |
||||
|
workbook = xlsxwriter.Workbook(output, {'in_memory': True}) |
||||
|
fetched_data = [] |
||||
|
account_res = [] |
||||
|
journal_res = [] |
||||
|
fetched = [] |
||||
|
currency_symbol = self.env.user.company_id.currency_id.symbol |
||||
|
if data['levels'] == 'summary': |
||||
|
state = """ WHERE am.state = 'posted' """ if data[ |
||||
|
'target_move'] == 'posted' else '' |
||||
|
query3 = """SELECT to_char(am.date, 'Month') as month_part, extract( |
||||
|
YEAR from am.date) as year_part, sum(aml.debit) AS total_debit, sum( |
||||
|
aml.credit) AS total_credit, sum(aml.balance) AS total_balance FROM( |
||||
|
SELECT am.date, am.id, am.state FROM account_move as am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
WHERE am.date BETWEEN '""" + str( |
||||
|
data['date_from']) + """' and '""" + str( |
||||
|
data['date_to']) + """' ) am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
""" + state + """GROUP BY month_part,year_part""" |
||||
|
cr = self._cr |
||||
|
cr.execute(query3) |
||||
|
fetched_data = cr.dictfetchall() |
||||
|
elif data['levels'] == 'consolidated': |
||||
|
state = """ WHERE am.state = 'posted' """ if data[ |
||||
|
'target_move'] == 'posted' else '' |
||||
|
query2 = """SELECT aa.id,aa.name, sum(aml.debit) AS total_debit, sum( |
||||
|
aml.credit) AS total_credit,sum(aml.balance) AS total_balance FROM ( |
||||
|
SELECT am.id, am.state FROM account_move as am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
WHERE am.date BETWEEN '""" + str( |
||||
|
data['date_from']) + """' and '""" + str( |
||||
|
data['date_to']) + """' ) am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
""" + state + """GROUP BY aa.id,aa.name""" |
||||
|
cr = self._cr |
||||
|
cr.execute(query2) |
||||
|
fetched_data = cr.dictfetchall() |
||||
|
elif data['levels'] == 'detailed': |
||||
|
state = """ WHERE am.state = 'posted' """ if data[ |
||||
|
'target_move'] == 'posted' else '' |
||||
|
query1 = """SELECT aa.id,aa.name,aa.code, sum(aml.debit) AS total_debit, |
||||
|
sum(aml.credit) AS total_credit,sum( |
||||
|
aml.balance) AS total_balance FROM ( |
||||
|
SELECT am.id, am.state FROM account_move as am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
WHERE am.date BETWEEN '""" + str( |
||||
|
data['date_from']) + """' and '""" + str( |
||||
|
data['date_to']) + """' ) am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
""" + state + """GROUP BY aa.id,aa.name, aa.code""" |
||||
|
cr = self._cr |
||||
|
cr.execute(query1) |
||||
|
fetched_data = cr.dictfetchall() |
||||
|
for account in self.env['account.account'].search([]): |
||||
|
child_lines = self._get_journal_lines(account, data) |
||||
|
if child_lines: |
||||
|
journal_res.append(child_lines) |
||||
|
else: |
||||
|
state = """AND am.state = 'posted' """ if data[ |
||||
|
'target_move'] == 'posted' else '' |
||||
|
sql = """SELECT DISTINCT aa.name,aa.code, sum( |
||||
|
aml.debit) AS total_debit, |
||||
|
sum(aml.credit) AS total_credit FROM ( |
||||
|
SELECT am.* FROM account_move as am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
WHERE am.date BETWEEN '""" + str( |
||||
|
data['date_from']) + """' and '""" + str( |
||||
|
data['date_to']) + """' """ + state + """) am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
GROUP BY aa.name, aa.code""" |
||||
|
cr = self._cr |
||||
|
cr.execute(sql) |
||||
|
fetched = cr.dictfetchall() |
||||
|
for account in self.env['account.account'].search([]): |
||||
|
child_lines = self._get_lines(account, data) |
||||
|
if child_lines: |
||||
|
account_res.append(child_lines) |
||||
|
|
||||
|
logged_users = self.env['res.company']._company_default_get( |
||||
|
'account.account') |
||||
|
sheet = workbook.add_worksheet() |
||||
|
bold = workbook.add_format({'align': 'center', |
||||
|
'bold': True, |
||||
|
'font_size': '10px', |
||||
|
'border': 1}) |
||||
|
date = workbook.add_format({'font_size': '10px'}) |
||||
|
cell_format = workbook.add_format({'bold': True, |
||||
|
'font_size': '10px'}) |
||||
|
head = workbook.add_format({'align': 'center', |
||||
|
'bold': True, |
||||
|
'bg_color': '#D3D3D3', |
||||
|
'font_size': '15px'}) |
||||
|
txt = workbook.add_format({'align': 'left', |
||||
|
'font_size': '10px'}) |
||||
|
txt_left = workbook.add_format({'align': 'left', |
||||
|
'font_size': '10px', |
||||
|
'border': 1}) |
||||
|
txt_center = workbook.add_format({'align': 'center', |
||||
|
'font_size': '10px', |
||||
|
'border': 1}) |
||||
|
amount = workbook.add_format({'align': 'right', |
||||
|
'font_size': '10px', |
||||
|
'border': 1}) |
||||
|
amount_bold = workbook.add_format({'align': 'right', |
||||
|
'bold': True, |
||||
|
'font_size': '10px', |
||||
|
'border': 1}) |
||||
|
txt_bold = workbook.add_format({'align': 'left', |
||||
|
'bold': True, |
||||
|
'font_size': '10px', |
||||
|
'border': 1}) |
||||
|
|
||||
|
sheet.set_column('C:C', 30, cell_format) |
||||
|
sheet.set_column('D:E', 20, cell_format) |
||||
|
sheet.set_column('F:F', 20, cell_format) |
||||
|
sheet.write('C2', "Report Date", txt) |
||||
|
sheet.write('D2', str(data['today']), txt) |
||||
|
sheet.write('F2', logged_users.name, txt) |
||||
|
sheet.merge_range('C3:F4', 'CASH FLOW STATEMENTS', head) |
||||
|
|
||||
|
if data['target_move'] == 'posted': |
||||
|
sheet.write('C6', "Target Moves :", cell_format) |
||||
|
sheet.write('C7', 'All Posted Entries', date) |
||||
|
else: |
||||
|
sheet.write('C6', "Target Moves :", cell_format) |
||||
|
sheet.write('C7', 'All Entries', date) |
||||
|
|
||||
|
sheet.write('D6', "Date From", cell_format) |
||||
|
sheet.write('E6', str(data['date_from']), date) |
||||
|
sheet.write('D7', "Date To", cell_format) |
||||
|
sheet.write('E7', str(data['date_to']), date) |
||||
|
|
||||
|
sheet.merge_range('C8:F8', '', head) |
||||
|
sheet.write('C9', 'NAME', bold) |
||||
|
sheet.write('D9', 'CASH IN', bold) |
||||
|
sheet.write('E9', 'CASH OUT', bold) |
||||
|
sheet.write('F9', 'BALANCE', bold) |
||||
|
|
||||
|
row_num = 8 |
||||
|
col_num = 2 |
||||
|
fetched_data_list = fetched_data.copy() |
||||
|
account_res_list = account_res.copy() |
||||
|
journal_res_list = journal_res.copy() |
||||
|
fetched_list = fetched.copy() |
||||
|
filtered_fetched_data_list = [entry for entry in fetched_data_list if |
||||
|
None not in entry.values()] |
||||
|
|
||||
|
for i in filtered_fetched_data_list: |
||||
|
if data['levels'] == 'summary': |
||||
|
sheet.write(row_num + 1, col_num, |
||||
|
str(i['month_part']) + str(int(i['year_part'])), |
||||
|
txt_left) |
||||
|
sheet.write(row_num + 1, col_num + 1, |
||||
|
'{:.2f} %'.format(i['total_debit']) + str(currency_symbol), |
||||
|
amount) |
||||
|
sheet.write(row_num + 1, col_num + 2, |
||||
|
'{:.2f} %'.format(i['total_credit']) + str(currency_symbol), |
||||
|
amount) |
||||
|
sheet.write(row_num + 1, col_num + 3, |
||||
|
'{:.2f} %'.format(i['total_debit'] - i['total_credit']) + str( |
||||
|
currency_symbol), |
||||
|
amount) |
||||
|
row_num = row_num + 1 |
||||
|
elif data['levels'] == 'consolidated': |
||||
|
acc = self.env['account.account'].browse(i['id']) |
||||
|
sheet.write(row_num + 1, col_num, acc.name, txt_left) |
||||
|
sheet.write(row_num + 1, col_num + 1, |
||||
|
'{:.2f} %'.format(i['total_debit']) + str(currency_symbol), |
||||
|
amount) |
||||
|
sheet.write(row_num + 1, col_num + 2, |
||||
|
'{:.2f} %'.format(i['total_credit']) + str(currency_symbol), |
||||
|
amount) |
||||
|
if i['total_credit'] and i['total_credit']: |
||||
|
sheet.write(row_num + 1, col_num + 3, |
||||
|
'{:.2f} %'.format(i['total_debit'] - i['total_credit']) + str( |
||||
|
currency_symbol), |
||||
|
amount) |
||||
|
else: |
||||
|
sheet.write(row_num + 1, col_num + 3, |
||||
|
str(0) + str(currency_symbol), |
||||
|
amount) |
||||
|
row_num = row_num + 1 |
||||
|
|
||||
|
for j in journal_res_list: |
||||
|
for k in filtered_fetched_data_list: |
||||
|
account_name = self.env['account.account'].browse(k['id']) |
||||
|
if account_name.name == j['account']: |
||||
|
sheet.write(row_num + 1, col_num, |
||||
|
str(k['code']) + str(account_name.name), |
||||
|
txt_bold) |
||||
|
sheet.write(row_num + 1, col_num + 1, |
||||
|
'{:.2f} %'.format(k['total_debit']) + str(currency_symbol), |
||||
|
amount_bold) |
||||
|
sheet.write(row_num + 1, col_num + 2, |
||||
|
'{:.2f} %'.format(k['total_credit']) + str(currency_symbol), |
||||
|
amount_bold) |
||||
|
if k['total_debit'] and k['total_credit']: |
||||
|
sheet.write(row_num + 1, col_num + 3, |
||||
|
'{:.2f} %'.format(k['total_debit'] - k[ |
||||
|
'total_credit']) + str( |
||||
|
currency_symbol), amount_bold) |
||||
|
else: |
||||
|
sheet.write(row_num + 1, col_num + 3, |
||||
|
str(0) + str( |
||||
|
currency_symbol), amount_bold) |
||||
|
row_num = row_num + 1 |
||||
|
for l in j['journal_lines']: |
||||
|
acc = self.env['account.account'].browse(l['id']) |
||||
|
sheet.write(row_num + 1, col_num, acc.name, txt_left) |
||||
|
sheet.write(row_num + 1, col_num + 1, |
||||
|
'{:.2f} %'.format(l['total_debit']) + str(currency_symbol), |
||||
|
amount) |
||||
|
sheet.write(row_num + 1, col_num + 2, |
||||
|
'{:.2f} %'.format(l['total_credit']) + str(currency_symbol), |
||||
|
amount) |
||||
|
sheet.write(row_num + 1, col_num + 3, |
||||
|
'{:.2f} %'.format(l['total_debit'] - l['total_credit']) + str( |
||||
|
currency_symbol), |
||||
|
amount) |
||||
|
row_num = row_num + 1 |
||||
|
|
||||
|
for j in account_res_list: |
||||
|
for k in fetched_list: |
||||
|
|
||||
|
if k['name'] == j['account']: |
||||
|
sheet.write(row_num + 1, col_num, |
||||
|
str(k['code']) + str(k['name']), txt_bold) |
||||
|
sheet.write(row_num + 1, col_num + 1, |
||||
|
'{:.2f} %'.format(k['total_debit']) + str(currency_symbol), |
||||
|
amount_bold) |
||||
|
sheet.write(row_num + 1, col_num + 2, |
||||
|
'{:.2f} %'.format(k['total_credit']) + str(currency_symbol), |
||||
|
amount_bold) |
||||
|
sheet.write(row_num + 1, col_num + 3, |
||||
|
'{:.2f} %'.format(k['total_debit'] - k['total_credit']) + str( |
||||
|
currency_symbol), amount_bold) |
||||
|
row_num = row_num + 1 |
||||
|
for l in j['journal_lines']: |
||||
|
if l['account_name'] == j['account']: |
||||
|
sheet.write(row_num + 1, col_num, l['name'], txt_left) |
||||
|
sheet.write(row_num + 1, col_num + 1, |
||||
|
'{:.2f} %'.format(l['total_debit']) + str(currency_symbol), |
||||
|
amount) |
||||
|
sheet.write(row_num + 1, col_num + 2, |
||||
|
'{:.2f} %'.format(l['total_credit']) + str(currency_symbol), |
||||
|
amount) |
||||
|
sheet.write(row_num + 1, col_num + 3, |
||||
|
'{:.2f} %'.format(l['total_debit'] - l['total_credit']) + str( |
||||
|
currency_symbol), |
||||
|
amount) |
||||
|
row_num = row_num + 1 |
||||
|
for m in j['move_lines']: |
||||
|
if m['name'] == l['name']: |
||||
|
sheet.write(row_num + 1, col_num, m['move_name'], |
||||
|
txt_center) |
||||
|
sheet.write(row_num + 1, col_num + 1, |
||||
|
'{:.2f} %'.format(m['total_debit']) + str( |
||||
|
currency_symbol), amount) |
||||
|
sheet.write(row_num + 1, col_num + 2, |
||||
|
'{:.2f} %'.format(m['total_credit']) + str( |
||||
|
currency_symbol), amount) |
||||
|
sheet.write(row_num + 1, col_num + 3, |
||||
|
'{:.2f} %'.format(m['total_debit'] - m[ |
||||
|
'total_credit']) + str(currency_symbol), |
||||
|
amount) |
||||
|
row_num = row_num + 1 |
||||
|
workbook.close() |
||||
|
output.seek(0) |
||||
|
response.stream.write(output.read()) |
||||
|
output.close() |
||||
|
|
||||
|
def _get_lines(self, account, data): |
||||
|
""" Fetch values for lines""" |
||||
|
state = """AND am.state = 'posted' """ if data[ |
||||
|
'target_move'] == 'posted' else '' |
||||
|
query = """SELECT aml.account_id,aj.name, am.name as move_name, sum( |
||||
|
aml.debit) AS total_debit, |
||||
|
sum(aml.credit) AS total_credit FROM ( |
||||
|
SELECT am.* FROM account_move as am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
WHERE am.date BETWEEN '""" + str( |
||||
|
data['date_from']) + """' and '""" + str( |
||||
|
data['date_to']) + """' """ + state + """) am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
LEFT JOIN account_journal aj ON aj.id = am.journal_id |
||||
|
WHERE aa.id = """ + str(account.id) + """ |
||||
|
GROUP BY am.name, aml.account_id, aj.name""" |
||||
|
|
||||
|
cr = self._cr |
||||
|
cr.execute(query) |
||||
|
fetched_data = cr.dictfetchall() |
||||
|
|
||||
|
sql2 = """SELECT aa.name as account_name, aj.id, aj.name, sum( |
||||
|
aml.debit) AS total_debit, |
||||
|
sum(aml.credit) AS total_credit FROM ( |
||||
|
SELECT am.* FROM account_move as am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
WHERE am.date BETWEEN '""" + str( |
||||
|
data['date_from']) + """' and '""" + str( |
||||
|
data['date_to']) + """' """ + state + """) am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
LEFT JOIN account_journal aj ON aj.id = am.journal_id |
||||
|
WHERE aa.id = """ + str(account.id) + """ |
||||
|
GROUP BY aa.name, aj.name, aj.id""" |
||||
|
|
||||
|
cr = self._cr |
||||
|
cr.execute(sql2) |
||||
|
fetch_data = cr.dictfetchall() |
||||
|
if fetched_data: |
||||
|
return { |
||||
|
'account': account.name, |
||||
|
'code': account.code, |
||||
|
'move_lines': fetched_data, |
||||
|
'journal_lines': fetch_data, |
||||
|
} |
||||
|
|
||||
|
def _get_journal_lines(self, account, data): |
||||
|
""" Fetch values based on journal and pass it in sublines""" |
||||
|
state = """AND am.state = 'posted' """ if data[ |
||||
|
'target_move'] == 'posted' else '' |
||||
|
sql2 = """SELECT aa.id,aa.name as account_name, aj.id, aj.name, sum( |
||||
|
aml.debit) AS total_debit, |
||||
|
sum(aml.credit) AS total_credit FROM ( |
||||
|
SELECT am.* FROM account_move as am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
WHERE am.date BETWEEN '""" + str( |
||||
|
data['date_from']) + """' and '""" + str( |
||||
|
data['date_to']) + """' """ + state + """) am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
LEFT JOIN account_journal aj ON aj.id = am.journal_id |
||||
|
WHERE aa.id = """ + str(account.id) + """ |
||||
|
GROUP BY aa.id,aa.name, aj.name, aj.id""" |
||||
|
cr = self._cr |
||||
|
cr.execute(sql2) |
||||
|
fetched_data = cr.dictfetchall() |
||||
|
if fetched_data: |
||||
|
return { |
||||
|
'account': account.name, |
||||
|
'journal_lines': fetched_data, |
||||
|
} |
@ -0,0 +1,214 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Gayathri V (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 odoo import api, models |
||||
|
|
||||
|
|
||||
|
class ReportAccountWizard(models.AbstractModel): |
||||
|
"""Advance cash flow statement report model""" |
||||
|
_name = "report.advance_cash_flow_statements.cash_flow_pdf_report" |
||||
|
_description = 'Report advanced cash flows' |
||||
|
|
||||
|
@api.model |
||||
|
def _get_report_values(self, docids, data=None): |
||||
|
""" Get values return to pdf report""" |
||||
|
fetched_data = [] |
||||
|
account_res = [] |
||||
|
journal_res = [] |
||||
|
fetched = [] |
||||
|
active_model = self.env.context.get('active_model') |
||||
|
docs = self.env[self.env.context.get('active_model')].browse( |
||||
|
self.env.context.get('active_id')) |
||||
|
if data['levels'] == 'summary': |
||||
|
state = """ WHERE am.state = 'posted' """ if data[ |
||||
|
'target_move'] == 'posted' else '' |
||||
|
query3 = """SELECT to_char(am.date, 'Month') as month_part, extract( |
||||
|
YEAR from am.date) as year_part,sum(aml.debit) AS total_debit, sum( |
||||
|
aml.credit) AS total_credit,sum(aml.balance) AS total_balance FROM( |
||||
|
SELECT am.date, am.id, am.state FROM account_move as am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
WHERE am.date BETWEEN '""" + str( |
||||
|
data['date_from']) + """' and '""" + str( |
||||
|
data['date_to']) + """' ) am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
""" + state + """GROUP BY month_part,year_part""" |
||||
|
cr = self._cr |
||||
|
cr.execute(query3) |
||||
|
fetched_data = cr.dictfetchall() |
||||
|
elif data['levels'] == 'consolidated': |
||||
|
user_lang = self.env.user.lang |
||||
|
state = """ WHERE am.state = 'posted' """ if data[ |
||||
|
'target_move'] == 'posted' else '' |
||||
|
query2 = """SELECT aa.name ->'%s' as name, sum(aml.debit) AS total_debit, sum( |
||||
|
aml.credit) AS total_credit,sum(aml.balance) AS total_balance FROM( |
||||
|
SELECT am.id, am.state FROM account_move as am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
WHERE am.date BETWEEN '""" %(user_lang) + str( |
||||
|
data['date_from']) + """' and '""" + str( |
||||
|
data['date_to']) + """' ) am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
""" + state + """GROUP BY aa.name""" |
||||
|
cr = self._cr |
||||
|
cr.execute(query2) |
||||
|
fetched_data = cr.dictfetchall() |
||||
|
elif data['levels'] == 'detailed': |
||||
|
user_lang = self.env.user.lang |
||||
|
state = """ WHERE am.state = 'posted' """ if data[ |
||||
|
'target_move'] == 'posted' else '' |
||||
|
query1 = """SELECT aa.name ->'%s' as name,aa.code, sum( |
||||
|
aml.debit) AS total_debit, sum(aml.credit) AS total_credit, |
||||
|
sum(aml.balance) AS total_balance FROM ( |
||||
|
SELECT am.id, am.state FROM account_move as am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
WHERE am.date BETWEEN '""" %(user_lang) + str( |
||||
|
data['date_from']) + """' and '""" + str( |
||||
|
data['date_to']) + """' ) am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
""" + state + """GROUP BY aa.name, aa.code""" |
||||
|
cr = self._cr |
||||
|
cr.execute(query1) |
||||
|
fetched_data = cr.dictfetchall() |
||||
|
for account in self.env['account.account'].search([]): |
||||
|
child_lines = self._get_journal_lines(account, data) |
||||
|
if child_lines: |
||||
|
journal_res.append(child_lines) |
||||
|
else: |
||||
|
user_lang = self.env.user.lang |
||||
|
state = """AND am.state = 'posted' """ if data[ |
||||
|
'target_move'] == 'posted' else '' |
||||
|
sql = """SELECT DISTINCT aa.name ->'%s' as name,aa.code, sum( |
||||
|
aml.debit) AS total_debit, |
||||
|
sum(aml.credit) AS total_credit FROM ( |
||||
|
SELECT am.* FROM account_move as am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
WHERE am.date BETWEEN '""" %(user_lang) + str( |
||||
|
data['date_from']) + """' and '""" + str( |
||||
|
data['date_to']) + """' """ + state + """) am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
GROUP BY aa.name, aa.code""" |
||||
|
cr = self._cr |
||||
|
cr.execute(sql) |
||||
|
fetched = cr.dictfetchall() |
||||
|
for account in self.env['account.account'].search([]): |
||||
|
child_lines = self._get_lines(account, data) |
||||
|
if child_lines: |
||||
|
account_res.append(child_lines) |
||||
|
|
||||
|
filtered_fetched_data = [entry for entry in fetched_data if |
||||
|
None not in entry.values()] |
||||
|
|
||||
|
return { |
||||
|
'date_from': data['date_from'], |
||||
|
'date_to': data['date_to'], |
||||
|
'levels': data['levels'], |
||||
|
'doc_ids': self.ids, |
||||
|
'doc_model': active_model, |
||||
|
'docs': docs, |
||||
|
'fetched_data': filtered_fetched_data, |
||||
|
'account_res': account_res, |
||||
|
'journal_res': journal_res, |
||||
|
'fetched': fetched, |
||||
|
} |
||||
|
|
||||
|
def _get_lines(self, account, data): |
||||
|
""" fetch values for lines""" |
||||
|
user_lang = self.env.user.lang |
||||
|
state = """AND am.state = 'posted' """ if data[ |
||||
|
'target_move'] == 'posted' else '' |
||||
|
query = """SELECT aml.account_id,aj.name ->'%s' as name, am.name as move_name, sum( |
||||
|
aml.debit) AS total_debit, |
||||
|
sum(aml.credit) AS total_credit FROM ( |
||||
|
SELECT am.* FROM account_move as am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
WHERE am.date BETWEEN '""" %(user_lang) + str( |
||||
|
data['date_from']) + """' and '""" + str( |
||||
|
data['date_to']) + """' """ + state + """) am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
LEFT JOIN account_journal aj ON aj.id = am.journal_id |
||||
|
WHERE aa.id = """ + str(account.id) + """ |
||||
|
GROUP BY am.name, aml.account_id, aj.name""" |
||||
|
|
||||
|
cr = self._cr |
||||
|
cr.execute(query) |
||||
|
fetched_data = cr.dictfetchall() |
||||
|
user_lang = self.env.user.lang |
||||
|
sql2 = """SELECT aa.name ->'%s' as account_name, aj.id, aj.name ->'%s' as name, sum( |
||||
|
aml.debit) AS total_debit, |
||||
|
sum(aml.credit) AS total_credit FROM ( |
||||
|
SELECT am.* FROM account_move as am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
WHERE am.date BETWEEN '""" %(user_lang,user_lang)+ str( |
||||
|
data['date_from']) + """' and '""" + str( |
||||
|
data['date_to']) + """' """ + state + """) am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
LEFT JOIN account_journal aj ON aj.id = am.journal_id |
||||
|
WHERE aa.id = """ + str(account.id) + """ |
||||
|
GROUP BY aa.name, aj.name, aj.id""" |
||||
|
cr = self._cr |
||||
|
cr.execute(sql2) |
||||
|
fetch_data = cr.dictfetchall() |
||||
|
if fetched_data: |
||||
|
return { |
||||
|
'account': account.name, |
||||
|
'code': account.code, |
||||
|
'move_lines': fetched_data, |
||||
|
'journal_lines': fetch_data, |
||||
|
} |
||||
|
|
||||
|
def _get_journal_lines(self, account, data): |
||||
|
""" fetch values based on journal and pass it in sublines""" |
||||
|
user_lang = self.env.user.lang |
||||
|
state = """AND am.state = 'posted' """ if data[ |
||||
|
'target_move'] == 'posted' else '' |
||||
|
sql2 = """SELECT aa.name ->'%s' as account_name, aj.id, aj.name ->'%s' as name, sum( |
||||
|
aml.debit) AS total_debit, |
||||
|
sum(aml.credit) AS total_credit FROM ( |
||||
|
SELECT am.* FROM account_move as am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
WHERE am.date BETWEEN '""" %(user_lang,user_lang) + str( |
||||
|
data['date_from']) + """' and '""" + str( |
||||
|
data['date_to']) + """' """ + state + """) am |
||||
|
LEFT JOIN account_move_line aml ON aml.move_id = am.id |
||||
|
LEFT JOIN account_account aa ON aa.id = aml.account_id |
||||
|
LEFT JOIN account_journal aj ON aj.id = am.journal_id |
||||
|
WHERE aa.id = """ + str(account.id) + """ |
||||
|
GROUP BY aa.name, aj.name, aj.id""" |
||||
|
cr = self._cr |
||||
|
cr.execute(sql2) |
||||
|
fetched_data = cr.dictfetchall() |
||||
|
if fetched_data: |
||||
|
return { |
||||
|
'account': account.name, |
||||
|
'journal_lines': fetched_data, |
||||
|
} |