diff --git a/dynamic_cashflow_statement/README.rst b/dynamic_cashflow_statement/README.rst new file mode 100644 index 000000000..343ca9b9d --- /dev/null +++ b/dynamic_cashflow_statement/README.rst @@ -0,0 +1,46 @@ +.. 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 + +Dynamic Cash Flow Statements +============================ +Generate Dynamic Cash Flow Statement. + +Configuration +============= +No configuration + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +Developer: (V17) Subina ,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 `__ + +Further information +=================== +HTML Description: ``__ diff --git a/dynamic_cashflow_statement/__init__.py b/dynamic_cashflow_statement/__init__.py new file mode 100644 index 000000000..b68bf5c43 --- /dev/null +++ b/dynamic_cashflow_statement/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Subina P (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 . +# +################################################################################ +from . import models diff --git a/dynamic_cashflow_statement/__manifest__.py b/dynamic_cashflow_statement/__manifest__.py new file mode 100644 index 000000000..ab916747a --- /dev/null +++ b/dynamic_cashflow_statement/__manifest__.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Subina P (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 . +# +################################################################################ +{ + 'name': 'Dynamic Cash Flow Statements', + 'version': '17.0.1.0.0', + 'summary': """Generates a Dynamic Statement that Highlights Cash Inflows + and Outflows.""", + 'description': """Provides a drill-down view of cashflow statements, + allowing users to easily navigate and analyze + journal entries.""", + 'author': "Cybrosys Techno Solutions", + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'category': 'Accounting', + 'depends': ['base', 'account', 'account_payment'], + 'data': [ + 'security/ir.model.access.csv', + 'views/cashflow_views.xml', + ], + 'assets': { + 'web.assets_backend': [ + "dynamic_cashflow_statement/static/src/js/cashflow.js", + "dynamic_cashflow_statement/static/src/xml/cashflow.xml", + "dynamic_cashflow_statement/static/src/css/cashflow.css", + ], + }, + 'img': ['static/description/banner.jpg'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/dynamic_cashflow_statement/doc/RELEASE_NOTES.md b/dynamic_cashflow_statement/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..6f6f6f033 --- /dev/null +++ b/dynamic_cashflow_statement/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 07.11.2024 +#### Version 17.0.1.0.0 +##### ADD +- Initial commit for Dynamic Cash Flow Statements diff --git a/dynamic_cashflow_statement/models/__init__.py b/dynamic_cashflow_statement/models/__init__.py new file mode 100644 index 000000000..cc07ec835 --- /dev/null +++ b/dynamic_cashflow_statement/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Subina P (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 . +# +################################################################################ +from . import cashflow diff --git a/dynamic_cashflow_statement/models/cashflow.py b/dynamic_cashflow_statement/models/cashflow.py new file mode 100644 index 000000000..615a8f9e6 --- /dev/null +++ b/dynamic_cashflow_statement/models/cashflow.py @@ -0,0 +1,114 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Subina P (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 . +# +################################################################################ +from odoo import models + + +class Cashflow(models.Model): + """ Class for getting report data """ + _name = "cashflow" + _description = 'Report advanced cash flows' + + def get_report_values(self, data=None): + """ + Fetches and returns the report values for the cashflow report. + :param data: Dictionary containing parameters for fetching the report data. + :return: Dictionary containing fetched data, journal results, and account results. + """ + account_res = [] + journal_res = [] + # Query to fetch all data without date filtration + query = """ + 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.state = 'posted' + ) 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(query) + fetched_data = 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) + return { + 'fetched_data': fetched_data, + 'journal_res': journal_res, + 'account_res': account_res, + } + + def _get_lines(self, account, data): + """ fetch values for lines""" + user_lang = self.env.user.lang + # Query to fetch values without date filtration + query = """SELECT aml.id, aml.move_id, 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.state = 'posted' + ) 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 = %d + GROUP BY aml.id, am.name, aml.account_id, aj.name""" % (user_lang, account.id) + + cr = self._cr + cr.execute(query) + fetched_data = cr.dictfetchall() + # Another query to fetch journal lines without date filtration + sql = """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.state = 'posted' + ) 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 = %d + GROUP BY aa.name, aj.name, aj.id""" % (account.name, user_lang, account.id) + cr.execute(sql) + fetch_data = cr.dictfetchall() + if fetched_data: + return { + 'account': account.name, + 'code': account.code, + 'move_lines': fetched_data, + 'journal_lines': fetch_data, + } diff --git a/dynamic_cashflow_statement/security/ir.model.access.csv b/dynamic_cashflow_statement/security/ir.model.access.csv new file mode 100644 index 000000000..12c9a401d --- /dev/null +++ b/dynamic_cashflow_statement/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_cashflow_user,cashflow.user,model_cashflow,base.group_user,1,1,1,1 diff --git a/dynamic_cashflow_statement/static/description/assets/icons/capture (1).png b/dynamic_cashflow_statement/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/capture (1).png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/check.png b/dynamic_cashflow_statement/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/check.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/chevron.png b/dynamic_cashflow_statement/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/chevron.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/cogs.png b/dynamic_cashflow_statement/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/cogs.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/consultation.png b/dynamic_cashflow_statement/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/consultation.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/ecom-black.png b/dynamic_cashflow_statement/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/ecom-black.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/education-black.png b/dynamic_cashflow_statement/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/education-black.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/hotel-black.png b/dynamic_cashflow_statement/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/hotel-black.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/img.png b/dynamic_cashflow_statement/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/img.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/license.png b/dynamic_cashflow_statement/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/license.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/lifebuoy.png b/dynamic_cashflow_statement/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/lifebuoy.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/manufacturing-black.png b/dynamic_cashflow_statement/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/manufacturing-black.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/photo-capture.png b/dynamic_cashflow_statement/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/photo-capture.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/pos-black.png b/dynamic_cashflow_statement/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/pos-black.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/puzzle.png b/dynamic_cashflow_statement/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/puzzle.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/restaurant-black.png b/dynamic_cashflow_statement/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/restaurant-black.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/service-black.png b/dynamic_cashflow_statement/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/service-black.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/trading-black.png b/dynamic_cashflow_statement/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/trading-black.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/training.png b/dynamic_cashflow_statement/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/training.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/update.png b/dynamic_cashflow_statement/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/update.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/user.png b/dynamic_cashflow_statement/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/user.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/icons/wrench.png b/dynamic_cashflow_statement/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/icons/wrench.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/misc/Cybrosys R.png b/dynamic_cashflow_statement/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/misc/Cybrosys R.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/misc/email.svg b/dynamic_cashflow_statement/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/dynamic_cashflow_statement/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dynamic_cashflow_statement/static/description/assets/misc/phone.svg b/dynamic_cashflow_statement/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/dynamic_cashflow_statement/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/dynamic_cashflow_statement/static/description/assets/misc/star (1) 2.svg b/dynamic_cashflow_statement/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/dynamic_cashflow_statement/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/dynamic_cashflow_statement/static/description/assets/misc/support (1) 1.svg b/dynamic_cashflow_statement/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/dynamic_cashflow_statement/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/dynamic_cashflow_statement/static/description/assets/misc/support-email.svg b/dynamic_cashflow_statement/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/dynamic_cashflow_statement/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/dynamic_cashflow_statement/static/description/assets/misc/tick-mark.svg b/dynamic_cashflow_statement/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/dynamic_cashflow_statement/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/dynamic_cashflow_statement/static/description/assets/misc/whatsapp 1.svg b/dynamic_cashflow_statement/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/dynamic_cashflow_statement/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/dynamic_cashflow_statement/static/description/assets/misc/whatsapp.svg b/dynamic_cashflow_statement/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/dynamic_cashflow_statement/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dynamic_cashflow_statement/static/description/assets/modules/1.jpg b/dynamic_cashflow_statement/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..0edf328e5 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/modules/1.jpg differ diff --git a/dynamic_cashflow_statement/static/description/assets/modules/1.png b/dynamic_cashflow_statement/static/description/assets/modules/1.png new file mode 100755 index 000000000..359d3e4d6 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/modules/1.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/modules/2.gif b/dynamic_cashflow_statement/static/description/assets/modules/2.gif new file mode 100644 index 000000000..8ac32db03 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/modules/2.gif differ diff --git a/dynamic_cashflow_statement/static/description/assets/modules/2.png b/dynamic_cashflow_statement/static/description/assets/modules/2.png new file mode 100755 index 000000000..5c56f0bcd Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/modules/2.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/modules/3.jpg b/dynamic_cashflow_statement/static/description/assets/modules/3.jpg new file mode 100644 index 000000000..67c7f7062 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/modules/3.jpg differ diff --git a/dynamic_cashflow_statement/static/description/assets/modules/3.png b/dynamic_cashflow_statement/static/description/assets/modules/3.png new file mode 100755 index 000000000..c1f30354a Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/modules/3.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/modules/4.jpg b/dynamic_cashflow_statement/static/description/assets/modules/4.jpg new file mode 100644 index 000000000..5141a7802 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/modules/4.jpg differ diff --git a/dynamic_cashflow_statement/static/description/assets/modules/4.png b/dynamic_cashflow_statement/static/description/assets/modules/4.png new file mode 100755 index 000000000..33372bdc1 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/modules/4.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/modules/5.gif b/dynamic_cashflow_statement/static/description/assets/modules/5.gif new file mode 100755 index 000000000..d0f36b007 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/modules/5.gif differ diff --git a/dynamic_cashflow_statement/static/description/assets/modules/5.png b/dynamic_cashflow_statement/static/description/assets/modules/5.png new file mode 100644 index 000000000..3bedf7981 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/modules/5.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/modules/6.jpg b/dynamic_cashflow_statement/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..482309000 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/modules/6.jpg differ diff --git a/dynamic_cashflow_statement/static/description/assets/modules/6.png b/dynamic_cashflow_statement/static/description/assets/modules/6.png new file mode 100755 index 000000000..29d072e4b Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/modules/6.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/screenshots.zip b/dynamic_cashflow_statement/static/description/assets/screenshots.zip new file mode 100644 index 000000000..02b34425d Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/screenshots.zip differ diff --git a/dynamic_cashflow_statement/static/description/assets/screenshots/dynamic1.png b/dynamic_cashflow_statement/static/description/assets/screenshots/dynamic1.png new file mode 100644 index 000000000..945a544c8 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/screenshots/dynamic1.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/screenshots/dynamic2.png b/dynamic_cashflow_statement/static/description/assets/screenshots/dynamic2.png new file mode 100644 index 000000000..8a38a7ff9 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/screenshots/dynamic2.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/screenshots/dynamic3.png b/dynamic_cashflow_statement/static/description/assets/screenshots/dynamic3.png new file mode 100644 index 000000000..b071aba3f Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/screenshots/dynamic3.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/screenshots/dynamic4.png b/dynamic_cashflow_statement/static/description/assets/screenshots/dynamic4.png new file mode 100644 index 000000000..df345cad7 Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/screenshots/dynamic4.png differ diff --git a/dynamic_cashflow_statement/static/description/assets/screenshots/hero.gif b/dynamic_cashflow_statement/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..87a6a646e Binary files /dev/null and b/dynamic_cashflow_statement/static/description/assets/screenshots/hero.gif differ diff --git a/dynamic_cashflow_statement/static/description/banner.jpg b/dynamic_cashflow_statement/static/description/banner.jpg new file mode 100644 index 000000000..8e46abb6f Binary files /dev/null and b/dynamic_cashflow_statement/static/description/banner.jpg differ diff --git a/dynamic_cashflow_statement/static/description/icon.png b/dynamic_cashflow_statement/static/description/icon.png new file mode 100644 index 000000000..4d4d5796d Binary files /dev/null and b/dynamic_cashflow_statement/static/description/icon.png differ diff --git a/dynamic_cashflow_statement/static/description/index.html b/dynamic_cashflow_statement/static/description/index.html new file mode 100644 index 000000000..ee9363d43 --- /dev/null +++ b/dynamic_cashflow_statement/static/description/index.html @@ -0,0 +1,625 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Dynamic Cash Flow Statements

+

+ Generates detailed statement that highlight cash inflows and outflows. +

+
+ +
+
+
+
+
+

Key Highlights +

+
+
+
+
+
+ +
+
+

Detailed Cashflow Statement

+

Generates a Dynamic + Statement that Highlights Cash Inflows and Outflows. +

+
+
+
+
+
+
+ +
+
+

Drill-Down View +

+

Provides a drill-down + view of cashflow statements, allowing users to + easily navigate and analyze journal entries. +

+
+
+
+
+
+
+ +
+
+

Journal Entry Navigation +

+

Facilitates quick + navigation to specific journal entries directly + from the cashflow report for in-depth examination. +

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

+ Access Dynamic Cash Flow Statement from the Menu +
+ Go to Invoicing --> Reporting --> Dynamic Cash Flow Statement. +

+
+
+
+
+
+
+ +
+
+

+ The Cash In and Cash Out and Total with respect to the accounts can be seen here.

+
+
+
+
+
+
+ +
+
+

+ From the drill down view ,Can easily navigate and analyze journal entries.

+
+
+
+
+
+
+ +
+
+

+ Quick + navigation to specific journal entries directly + from the cashflow Statement on clicking the 'show + Journal Entry' button. +

+
+
+
+
+
+
+
    +
  • + + Detailed Cashflow Statement +
  • +
  • + + Drill-Down View +
  • +
  • + + Journal Entry Navigation +
      +
    • +
    • +
    +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:04th July 2024 +
+

+ + Initial Commit for Dynamic Cash Flow Statements.

+
+
+
+
+
+
+
+
+

Related Products

+
+
+ +
+
+

Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Licensing Consultancy

+
+
+
+
+
+
+

Our Industries

+ +
+
+
+
+
+
+ +

Trading

+

Easily procure and sell your products

+
+
+
+
+ +

POS

+

Easy configuration and convivial experience

+
+
+
+
+ +

Education

+

A platform for educational management

+
+
+
+
+ +

Manufacturing

+

Plan, track and schedule your operations

+
+
+
+
+ +

E-commerce & Website

+

Mobile friendly, awe-inspiring product pages

+
+
+
+
+ +

Service Management

+

Keep track of services and invoice

+
+
+
+
+ +

Restaurant

+

Run your bar or restaurant methodically

+
+
+
+
+ +

Hotel Management

+

An all-inclusive hotel management application

+
+
+
+
+
+
+

Support

+
+
+
+
+
+
+
+ +
+ Need + Help? +

Got questions or need help? Get in touch.

+
odoo@cybrosys.com +
+
+
+
+
+
+
+
+ +
+ WhatsApp +

Say hi to us on WhatsApp!

+
+91 + 99456767686
+
+
+
+
+
+
+
+
+ + + + + + + diff --git a/dynamic_cashflow_statement/static/src/css/cashflow.css b/dynamic_cashflow_statement/static/src/css/cashflow.css new file mode 100644 index 000000000..74183def7 --- /dev/null +++ b/dynamic_cashflow_statement/static/src/css/cashflow.css @@ -0,0 +1,20 @@ +.border_unset_button button { + background: unset; + border: none; +}, +.container .row .col-sm { + padding-left: 60px; /* Adjust this value as needed */ + padding-right: 60px; /* Adjust this value as needed */ +}, +.border-set-second-dropdown { + border: 2px solid #000; /* Example border for second dropdown */ + padding: 5px; + margin-bottom: 5px; + background-color: #D3D3D3; /* Light grey background color */ +} + +.border-set-third-dropdown { + border: 2px solid #000; /* Example border for third dropdown */ + padding: 5px; + margin-top: 5px; +} diff --git a/dynamic_cashflow_statement/static/src/js/cashflow.js b/dynamic_cashflow_statement/static/src/js/cashflow.js new file mode 100644 index 000000000..e1057d9b6 --- /dev/null +++ b/dynamic_cashflow_statement/static/src/js/cashflow.js @@ -0,0 +1,62 @@ +/** @odoo-module */ +const { Component } = owl; +import { registry } from "@web/core/registry"; +import { useService } from "@web/core/utils/hooks"; +import { useState } from "@odoo/owl"; +const actionRegistry = registry.category("actions"); +import { Dropdown } from "@web/core/dropdown/dropdown"; +import { DropdownItem } from "@web/core/dropdown/dropdown_item"; + /** + * CashFlow component displays and manages the cash flow report. + * It fetches data from the server and renders the report. + */ +class CashFlow extends Component { + /** + * Setup method initializes the component. + * It sets up the ORM service and action service, initializes the state, + * and fetches the report data. + */ + setup() { +// Initialise all variables and services in the setup function + super.setup(); + this.orm = useService("orm"); + this.action = useService("action"); + this.state = useState({ + data: [], + move_lines:[], + result: [] + }); + this.fetchReportData(); + } + async fetchReportData() { + // * Fetches the report data from the server. + const data = { + levels: 'detailed', + target_move: 'posted' + }; + const result = await this.orm.call("cashflow","get_report_values", [data,data]); + this.state.result = result + this.state.data = result.account_res.map(account => { + return { + ...account, + journal_lines: account.journal_lines || [], + move_lines: account.move_lines || [], + total_debit: account.journal_lines.reduce((acc, line) => acc + line.total_debit, 0), + total_credit: account.journal_lines.reduce((acc, line) => acc + line.total_credit, 0), + }; + }); + } + gotoJournalEntry(move) { + // Navigates to the journal entry form view. + return this.action.doAction({ + type: "ir.actions.act_window", + res_model: 'account.move', + res_id: move.move_id, + views: [[false, "form"]], + target: "current", + }); + } +} +CashFlow.components = { Dropdown, DropdownItem} +CashFlow.template = 'CashFlowReportTemplate'; +actionRegistry.add("cash_flow_report_tag", CashFlow); diff --git a/dynamic_cashflow_statement/static/src/xml/cashflow.xml b/dynamic_cashflow_statement/static/src/xml/cashflow.xml new file mode 100644 index 000000000..79ed308f5 --- /dev/null +++ b/dynamic_cashflow_statement/static/src/xml/cashflow.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameCash InCash OutBalance
+ + + + + + + + + + + + + + +
+ + +
+
+ +
+
+ + +
+
+
+
+
+
+
+
+
+ + + + + +
+ Total + + + + + + + + + + + + +
+
+
diff --git a/dynamic_cashflow_statement/views/cashflow_views.xml b/dynamic_cashflow_statement/views/cashflow_views.xml new file mode 100644 index 000000000..f64a75b43 --- /dev/null +++ b/dynamic_cashflow_statement/views/cashflow_views.xml @@ -0,0 +1,15 @@ + + + + + cashflow + cash_flow_report_tag + + + + +