diff --git a/advance_cash_flow_statements/README.rst b/advance_cash_flow_statements/README.rst new file mode 100644 index 000000000..0c9457822 --- /dev/null +++ b/advance_cash_flow_statements/README.rst @@ -0,0 +1,13 @@ +ADVANCED CASH FLOW STATEMENTS +============================= +Generate 4 levels of Dynamic Cash Flow Statements Report. + +Configuration +============= + +No additional configurations needed + +Credits +======= +Developer: Varsha Vivek K @ cybrosys, Contact: odoo@cybrosys.com + V14 Muhammed Nafih @cybrosys \ No newline at end of file diff --git a/advance_cash_flow_statements/__init__.py b/advance_cash_flow_statements/__init__.py new file mode 100644 index 000000000..1b3e78f96 --- /dev/null +++ b/advance_cash_flow_statements/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################# + +from . import controllers +from . import wizard diff --git a/advance_cash_flow_statements/__manifest__.py b/advance_cash_flow_statements/__manifest__.py new file mode 100644 index 000000000..215e74e69 --- /dev/null +++ b/advance_cash_flow_statements/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2020-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################# + +{ + 'name': 'Advanced Cash Flow Statements', + 'version': '14.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, odoo13""", + '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', + 'wizard/account_wizard.xml', + 'views/action_manager.xml', + 'report/print_report.xml', + 'report/pdf_template.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'application': False, + 'auto_install': False, +} diff --git a/advance_cash_flow_statements/controllers/__init__.py b/advance_cash_flow_statements/controllers/__init__.py new file mode 100644 index 000000000..d5a39e5e0 --- /dev/null +++ b/advance_cash_flow_statements/controllers/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################# + +from . import main \ No newline at end of file diff --git a/advance_cash_flow_statements/controllers/main.py b/advance_cash_flow_statements/controllers/main.py new file mode 100644 index 000000000..a7e996de2 --- /dev/null +++ b/advance_cash_flow_statements/controllers/main.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 . +# +############################################################################# + +import json +from odoo import http +from odoo.http import content_disposition, request +from odoo.addons.web.controllers.main import _serialize_exception +from odoo.tools import html_escape + + +class XLSXReportController(http.Controller): + + @http.route('/xlsx_reports', type='http', auth='user', methods=['POST'], csrf=False) + def get_report_xlsx(self, model, options, output_format, token, report_name, **kw): + uid = request.session.uid + report_obj = request.env[model].sudo(uid) + options = json.loads(options) + try: + if output_format == 'xlsx': + response = request.make_response( + None, + headers=[ + ('Content-Type', 'application/vnd.ms-excel'), + ('Content-Disposition', content_disposition(report_name + '.xlsx')) + ] + ) + report_obj.get_xlsx_report(options, response) + response.set_cookie('fileToken', token) + return response + except Exception as e: + se = _serialize_exception(e) + error = { + 'code': 200, + 'message': 'Odoo Server Error', + 'data': se + } + return request.make_response(html_escape(json.dumps(error))) diff --git a/advance_cash_flow_statements/doc/RELEASE_NOTES.md b/advance_cash_flow_statements/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..4e205b11f --- /dev/null +++ b/advance_cash_flow_statements/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 13.02.2020 +#### Version 14.0.1.0.0 +##### ADD +- Initial commit for Cash Flow Statement Report diff --git a/advance_cash_flow_statements/report/pdf_template.xml b/advance_cash_flow_statements/report/pdf_template.xml new file mode 100644 index 000000000..04e1550b4 --- /dev/null +++ b/advance_cash_flow_statements/report/pdf_template.xml @@ -0,0 +1,218 @@ + + + + \ No newline at end of file diff --git a/advance_cash_flow_statements/report/print_report.xml b/advance_cash_flow_statements/report/print_report.xml new file mode 100644 index 000000000..b6157e50f --- /dev/null +++ b/advance_cash_flow_statements/report/print_report.xml @@ -0,0 +1,11 @@ + + + + \ No newline at end of file diff --git a/advance_cash_flow_statements/security/ir.model.access.csv b/advance_cash_flow_statements/security/ir.model.access.csv new file mode 100644 index 000000000..16c6e0782 --- /dev/null +++ b/advance_cash_flow_statements/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_account_wizard,account.wizard,model_account_wizard,,1,1,1,1 + diff --git a/advance_cash_flow_statements/static/description/banner.png b/advance_cash_flow_statements/static/description/banner.png new file mode 100644 index 000000000..118166023 Binary files /dev/null and b/advance_cash_flow_statements/static/description/banner.png differ diff --git a/advance_cash_flow_statements/static/description/icon.png b/advance_cash_flow_statements/static/description/icon.png new file mode 100644 index 000000000..b74b77b8c Binary files /dev/null and b/advance_cash_flow_statements/static/description/icon.png differ diff --git a/advance_cash_flow_statements/static/description/images/account_reports_xlsx.png b/advance_cash_flow_statements/static/description/images/account_reports_xlsx.png new file mode 100644 index 000000000..60b9433b3 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/account_reports_xlsx.png differ diff --git a/advance_cash_flow_statements/static/description/images/accounting_dynamic_reports.png b/advance_cash_flow_statements/static/description/images/accounting_dynamic_reports.png new file mode 100644 index 000000000..b025b5c48 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/accounting_dynamic_reports.png differ diff --git a/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-1.png b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-1.png new file mode 100644 index 000000000..a34466724 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-1.png differ diff --git a/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-10.png b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-10.png new file mode 100644 index 000000000..d30f02432 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-10.png differ diff --git a/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-2.png b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-2.png new file mode 100644 index 000000000..95053f952 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-2.png differ diff --git a/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-3.png b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-3.png new file mode 100644 index 000000000..6235cd8f7 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-3.png differ diff --git a/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-4.png b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-4.png new file mode 100644 index 000000000..0cdf21974 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-4.png differ diff --git a/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-5.png b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-5.png new file mode 100644 index 000000000..cb0d85368 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-5.png differ diff --git a/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-6.png b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-6.png new file mode 100644 index 000000000..7a66e3d2b Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-6.png differ diff --git a/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-7.png b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-7.png new file mode 100644 index 000000000..91e724a37 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-7.png differ diff --git a/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-8.png b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-8.png new file mode 100644 index 000000000..e66d8dbc3 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-8.png differ diff --git a/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-9.png b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-9.png new file mode 100644 index 000000000..b56ef5e70 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements-9.png differ diff --git a/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements.png b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements.png new file mode 100644 index 000000000..018db8b23 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/advance_cash_flow_statements.png differ diff --git a/advance_cash_flow_statements/static/description/images/bank_book_dynamic_reports.png b/advance_cash_flow_statements/static/description/images/bank_book_dynamic_reports.png new file mode 100644 index 000000000..088d9be88 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/bank_book_dynamic_reports.png differ diff --git a/advance_cash_flow_statements/static/description/images/base_accounting_kit.gif b/advance_cash_flow_statements/static/description/images/base_accounting_kit.gif new file mode 100644 index 000000000..30b746d7f Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/base_accounting_kit.gif differ diff --git a/advance_cash_flow_statements/static/description/images/cash_book_dynamic_reports.jpeg b/advance_cash_flow_statements/static/description/images/cash_book_dynamic_reports.jpeg new file mode 100644 index 000000000..b7a48f2f4 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/cash_book_dynamic_reports.jpeg differ diff --git a/advance_cash_flow_statements/static/description/images/checked.png b/advance_cash_flow_statements/static/description/images/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/checked.png differ diff --git a/advance_cash_flow_statements/static/description/images/cybrosys.png b/advance_cash_flow_statements/static/description/images/cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/cybrosys.png differ diff --git a/advance_cash_flow_statements/static/description/images/day_book_dynamic_report.png b/advance_cash_flow_statements/static/description/images/day_book_dynamic_report.png new file mode 100644 index 000000000..a3fced2e6 Binary files /dev/null and b/advance_cash_flow_statements/static/description/images/day_book_dynamic_report.png differ diff --git a/advance_cash_flow_statements/static/description/index.html b/advance_cash_flow_statements/static/description/index.html new file mode 100644 index 000000000..1300174a7 --- /dev/null +++ b/advance_cash_flow_statements/static/description/index.html @@ -0,0 +1,690 @@ +
+ cybrosys-logo
+ +
+
+
+

Advanced Cash Flow Statements

+

Generate four levels of cash flow statements.Print reports in both PDF and XLSX formats. +

+
+

Key Highlights

+
    +
  • check Available in + Odoo13 community edition. +
  • +
  • check Generate + four levels of cash flow statements and print reports in both PDF and XLSX format. +
  • +
  • check 1)Summary - + Month wise cash flow report. +
  • +
  • check + 2)Consolidated - Report based on the cash flow affected account's type. +
  • +
  • check 3)Detailed - + Report based on the cash flow affected accounts. +
  • +
  • check 4)Very + Detailed - Report shows the cash flow affected account,corresponding journal entries and its move lines. +
  • +
+ +
+
+
+
+ + +
+
+
+ + + +
+
+ +

Overview

+
+

+ Currently, in Odoo community edition there are no Cash Flow Statements. A cash flow statement is a financial statement that provides aggregate data regarding all cash inflows a company receives from its ongoing operations and external investment sources, also includes all cash outflows that pay for business activities and investments during a given period. This module generates four-level cash flow statements and prints its report in both PDF and XLSX format. + +

+ +
+ +

Advanced Cash Flow Statements

+
+
    + +
  • + Available + in Odoo13 community edition. +
  • + +
  • + Generates + four levels of Cash flow statements report in both PDF and XLSX formats. +
  • + +
  • + 1)Summary + - Month wise cash flow report. +
  • + +
  • + 2)Consolidated + - Report based on the cash flow affected account's type. +
  • +
  • + 3)Detailed + - Report based on the cash flow affected accounts. +
  • +
  • + 4)Very + Detailed - Report shows the cash flow affected account,corresponding journal entries and + its move lines. +
  • + +
+
+ + + +
+ +
+

Screenshots

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

Suggested Products

+
+ +
+ + +
+

Our Service

+
+ +
+
+
+

Our Industries

+
+ +
+
+
+
+ Odoo Industry
+
+
+

+ + Trading

+

+ Easily procure and sell your products.

+
+
+
+
+
+ Odoo Industry +
+
+
+

+ + Manufacturing

+

+ Plan, track and schedule your operations.

+
+
+
+
+
+ + Odoo Industry
+
+
+

+ + Restaurant

+

+ Run your bar or restaurant methodical.

+
+
+
+
+
+ Odoo Industry
+
+
+

+ + POS

+

+ Easy configuring and convivial selling.

+
+
+
+
+
+ Odoo Industry
+
+
+

+ + E-commerce & Website

+

+ Mobile friendly, awe-inspiring product pages.

+
+
+
+
+
+ + Odoo Industry
+
+
+

+ + Hotel Management

+

+ An all-inclusive hotel management application.

+
+
+
+
+
+ + Odoo Industry
+
+
+

+ + Education

+

+ A Collaborative platform for educational management.

+
+
+
+
+
+ Odoo Industry
+
+
+

+ + Service Management

+

+ Keep track of services and invoice accordingly.

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

Need Any Help?

+
+ +

If you have anything to share with us based on your use of this module, please + let us know. We are ready to offer our support.

+
+

Email us

+

odoo@cybrosys.com / info@cybrosys.com

+ +
+
+

Contact Us

+ www.cybrosys.com +
+
+ +
+
+ + +
+
+
+ + +
+
+ +
+ + + + + + + + +
+
+
+ + diff --git a/advance_cash_flow_statements/static/src/js/action_manager.js b/advance_cash_flow_statements/static/src/js/action_manager.js new file mode 100644 index 000000000..475cf9150 --- /dev/null +++ b/advance_cash_flow_statements/static/src/js/action_manager.js @@ -0,0 +1,49 @@ +odoo.define('advance_cash_flow_statements.ActionManager', function (require) { +"use strict"; + +/** + * The purpose of this file is to add the actions of type + * 'ir_actions_xlsx_download' to the ActionManager. + */ +var ActionManager = require('web.ActionManager'); +var framework = require('web.framework'); +var session = require('web.session'); + +ActionManager.include({ + + /** + * Executes actions of type 'ir.actions.report'. + * + * @private + * @param {Object} action the description of the action to execute + * @param {Object} options @see doAction for details + * @returns {Promise} resolved when the action has been executed + */ + _executexlsxReportDownloadAction: function (action) { + framework.blockUI(); + var def = $.Deferred(); + session.get_file({ + url: '/xlsx_reports', + data: action.data, + success: def.resolve.bind(def), + error: (error) => this.call('crash_manager', 'rpc_error', error), + complete: framework.unblockUI, + }); + return def; + }, + /** + * Overrides to handle the 'ir.actions.report' actions. + * + * @override + * @private + */ + _executeReportAction: function (action, options) { + if (action.report_type === 'xlsx') { + return this._executexlsxReportDownloadAction(action, options); + } + return this._super.apply(this, arguments); + }, +}); + +}); + diff --git a/advance_cash_flow_statements/views/action_manager.xml b/advance_cash_flow_statements/views/action_manager.xml new file mode 100644 index 000000000..d8313b66c --- /dev/null +++ b/advance_cash_flow_statements/views/action_manager.xml @@ -0,0 +1,9 @@ + + +