From 0c1d4fd003ed98b687124199c25aad7a4ae1a4eb Mon Sep 17 00:00:00 2001 From: RisvanaCybro Date: Mon, 20 May 2024 15:45:11 +0530 Subject: [PATCH] May 20: [FIX] Bug Fixed 'dynamic_accounts_report' --- dynamic_accounts_report/__manifest__.py | 2 +- dynamic_accounts_report/doc/RELEASE_NOTES.md | 5 + .../report/balance_sheet_report_templates.xml | 185 +++++----- .../static/src/css/accounts_report.css | 6 +- .../static/src/js/tax_report.js | 24 +- .../static/src/js/trial_balance.js | 8 +- .../src/xml/aged_payable_report_views.xml | 2 +- .../src/xml/aged_receivable_report_views.xml | 2 +- .../static/src/xml/balance_sheet_template.xml | 5 +- .../static/src/xml/bank_flow_templates.xml | 2 +- .../static/src/xml/cash_flow_templates.xml | 2 +- .../static/src/xml/general_ledger_view.xml | 2 +- .../static/src/xml/partner_ledger_view.xml | 329 +++++++++--------- .../src/xml/profit_and_loss_templates.xml | 2 +- .../static/src/xml/tax_report_views.xml | 2 +- .../static/src/xml/trial_balance_view.xml | 2 +- 16 files changed, 299 insertions(+), 281 deletions(-) diff --git a/dynamic_accounts_report/__manifest__.py b/dynamic_accounts_report/__manifest__.py index 813126115..44e08206e 100644 --- a/dynamic_accounts_report/__manifest__.py +++ b/dynamic_accounts_report/__manifest__.py @@ -21,7 +21,7 @@ ################################################################################ { 'name': 'Odoo17 Dynamic Accounting Reports', - 'version': '17.0.1.0.1', + 'version': '17.0.1.0.0', 'category': 'Accounting', 'summary': "Odoo 17 Accounting Financial Reports,Dynamic Accounting Reports, Dynamic Financial Reports,Dynamic Report Odoo17, Odoo17,Financial Reports, Odoo17 Accounting,Accounting, Odoo Apps", 'description': "This module creates dynamic Accounting General Ledger, Trial" diff --git a/dynamic_accounts_report/doc/RELEASE_NOTES.md b/dynamic_accounts_report/doc/RELEASE_NOTES.md index 8ad751f80..5e3d79f6d 100644 --- a/dynamic_accounts_report/doc/RELEASE_NOTES.md +++ b/dynamic_accounts_report/doc/RELEASE_NOTES.md @@ -4,3 +4,8 @@ #### Version 17.0.1.0.0 #### ADD - Initial commit for Dynamic Accounts Reports + +#### 19.04.2024 +#### Version 17.0.1.0.1 +##### BUG FIX +- Updated the scrolling issue of General Ledger diff --git a/dynamic_accounts_report/report/balance_sheet_report_templates.xml b/dynamic_accounts_report/report/balance_sheet_report_templates.xml index 73c7744c7..4496a513e 100644 --- a/dynamic_accounts_report/report/balance_sheet_report_templates.xml +++ b/dynamic_accounts_report/report/balance_sheet_report_templates.xml @@ -74,33 +74,54 @@ - - - - - - - - - + + + + + + t-as="values" + t-key="values_index"> - - - - - - + t-as="datas" t-key="datas_index"> + + + + - + + + + + + + + + + + + + + + + + + + + + @@ -141,6 +162,12 @@ + + + + + @@ -148,12 +175,6 @@ t-as="datas" t-key="datas_index"> - - - - - @@ -207,6 +228,12 @@ + + + + + @@ -214,12 +241,6 @@ t-as="datas" t-key="datas_index"> - - - - - @@ -272,6 +293,12 @@ + + + + + @@ -279,12 +306,6 @@ t-as="datas" t-key="datas_index"> - - - - - @@ -353,6 +374,12 @@ + + + + + @@ -360,12 +387,6 @@ t-as="datas" t-key="datas_index"> - - - - - @@ -419,6 +440,12 @@ + + + + + @@ -426,12 +453,6 @@ t-as="datas" t-key="datas_index"> - - - - - @@ -516,6 +537,12 @@ + + + + + @@ -523,12 +550,6 @@ t-as="datas" t-key="datas_index"> - - - - - @@ -581,6 +602,12 @@ + + + + + @@ -588,12 +615,6 @@ t-as="datas" t-key="datas_index"> - - - - - @@ -662,6 +683,12 @@ + + + + + @@ -669,12 +696,6 @@ t-as="datas" t-key="datas_index"> - - - - - @@ -775,6 +796,12 @@ + + + + + @@ -782,12 +809,6 @@ t-as="datas" t-key="datas_index"> - - - - - @@ -856,6 +877,12 @@ + + + + + @@ -863,12 +890,6 @@ t-as="datas" t-key="datas_index"> - - - - - diff --git a/dynamic_accounts_report/static/src/css/accounts_report.css b/dynamic_accounts_report/static/src/css/accounts_report.css index 583bc064c..9e8790356 100644 --- a/dynamic_accounts_report/static/src/css/accounts_report.css +++ b/dynamic_accounts_report/static/src/css/accounts_report.css @@ -6,6 +6,6 @@ margin-left: 2px; margin-right: 2px; } - - - +html .o_web_client > .o_action_manager { + overflow:scroll; +} diff --git a/dynamic_accounts_report/static/src/js/tax_report.js b/dynamic_accounts_report/static/src/js/tax_report.js index 39c712d79..1b08486e8 100644 --- a/dynamic_accounts_report/static/src/js/tax_report.js +++ b/dynamic_accounts_report/static/src/js/tax_report.js @@ -82,20 +82,16 @@ class TaxReport extends owl.Component { const lastIndex = this.state.date_viewed.length - 1; this.state.date_viewed.splice(0, lastIndex); } - if (val && val.target.name === 'start_date') { - this.state.date_viewed = [] - this.state.date_viewed.push('From' + ' ' + this.formatDate(this.start_date.el.value) + ' ' + 'To' + ' ' + this.formatDate(this.end_date.el.value)) - this.state.date_range = { - ...this.state.date_range, - start_date: val.target.value - }; - } else if (val && val.target.name === 'end_date') { - this.state.date_viewed = [] - this.state.date_viewed.push('From' + ' ' + this.formatDate(this.start_date.el.value) + 'To' + ' ' + this.formatDate(this.end_date.el.value)) - this.state.date_range = { - ...this.state.date_range, - end_date: val.target.value - }; + if (val.target.name === 'start_date') { + this.state.date_range = { + ...this.state.date_range, + start_date: val.target.value + }; + } else if (val.target.name === 'end_date') { + this.state.date_range = { + ...this.state.date_range, + end_date: val.target.value + }; } else if (val && val.target.attributes["data-value"].value == 'month') { this.start_date.el.value = today.startOf('month').toFormat('yyyy-MM-dd') this.end_date.el.value = today.endOf('month').toFormat('yyyy-MM-dd') diff --git a/dynamic_accounts_report/static/src/js/trial_balance.js b/dynamic_accounts_report/static/src/js/trial_balance.js index 1a1c37784..cf292bea6 100644 --- a/dynamic_accounts_report/static/src/js/trial_balance.js +++ b/dynamic_accounts_report/static/src/js/trial_balance.js @@ -101,16 +101,12 @@ class TrialBalance extends owl.Component { } } else { - if (val && val.target.name === 'start_date') { - this.state.date_viewed = [] - this.state.date_viewed.push('From' + ' ' + this.formatDate(this.start_date.el.value) + ' ' + 'To' + ' ' + this.formatDate(this.end_date.el.value)) + if (val.target.name === 'start_date') { this.state.date_range = { ...this.state.date_range, start_date: val.target.value }; - } else if (val && val.target.name === 'end_date') { - this.state.date_viewed = [] - this.state.date_viewed.push('From' + ' ' + this.formatDate(this.start_date.el.value) + 'To' + ' ' + this.formatDate(this.end_date.el.value)) + } else if (val.target.name === 'end_date') { this.state.date_range = { ...this.state.date_range, end_date: val.target.value diff --git a/dynamic_accounts_report/static/src/xml/aged_payable_report_views.xml b/dynamic_accounts_report/static/src/xml/aged_payable_report_views.xml index f961280b7..a974a02a3 100644 --- a/dynamic_accounts_report/static/src/xml/aged_payable_report_views.xml +++ b/dynamic_accounts_report/static/src/xml/aged_payable_report_views.xml @@ -117,7 +117,7 @@
-
+
diff --git a/dynamic_accounts_report/static/src/xml/aged_receivable_report_views.xml b/dynamic_accounts_report/static/src/xml/aged_receivable_report_views.xml index 79ab902a7..e731c89e6 100644 --- a/dynamic_accounts_report/static/src/xml/aged_receivable_report_views.xml +++ b/dynamic_accounts_report/static/src/xml/aged_receivable_report_views.xml @@ -117,7 +117,7 @@

-
+
diff --git a/dynamic_accounts_report/static/src/xml/balance_sheet_template.xml b/dynamic_accounts_report/static/src/xml/balance_sheet_template.xml index 6dabd8819..43b5e6788 100644 --- a/dynamic_accounts_report/static/src/xml/balance_sheet_template.xml +++ b/dynamic_accounts_report/static/src/xml/balance_sheet_template.xml @@ -301,7 +301,7 @@
-
+
@@ -1147,7 +1147,8 @@ diff --git a/dynamic_accounts_report/static/src/xml/bank_flow_templates.xml b/dynamic_accounts_report/static/src/xml/bank_flow_templates.xml index d6bb8724f..f058ba079 100644 --- a/dynamic_accounts_report/static/src/xml/bank_flow_templates.xml +++ b/dynamic_accounts_report/static/src/xml/bank_flow_templates.xml @@ -173,7 +173,7 @@ -
+
diff --git a/dynamic_accounts_report/static/src/xml/cash_flow_templates.xml b/dynamic_accounts_report/static/src/xml/cash_flow_templates.xml index f46152e46..456b3f945 100644 --- a/dynamic_accounts_report/static/src/xml/cash_flow_templates.xml +++ b/dynamic_accounts_report/static/src/xml/cash_flow_templates.xml @@ -175,7 +175,7 @@
-
+
diff --git a/dynamic_accounts_report/static/src/xml/general_ledger_view.xml b/dynamic_accounts_report/static/src/xml/general_ledger_view.xml index 652e3ec68..8a84f16a1 100644 --- a/dynamic_accounts_report/static/src/xml/general_ledger_view.xml +++ b/dynamic_accounts_report/static/src/xml/general_ledger_view.xml @@ -249,7 +249,7 @@

-
diff --git a/dynamic_accounts_report/static/src/xml/partner_ledger_view.xml b/dynamic_accounts_report/static/src/xml/partner_ledger_view.xml index 4a93f58af..003cf5fa5 100644 --- a/dynamic_accounts_report/static/src/xml/partner_ledger_view.xml +++ b/dynamic_accounts_report/static/src/xml/partner_ledger_view.xml @@ -194,7 +194,7 @@

-
+
@@ -218,190 +218,189 @@
- - - - - - - + + + + + + + + + + + + - + + - + - - - - - - - - - - - - - - - - - - - - - - + + + + + + +
- Current Liabilities + Plus + Non-current Assets
-
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + - + + + + - - - - + + + + + + + + + + + + - - - - - + + + + - + - - + - - - + + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - Total - - - - - - - - - - -
+ + Total + + + + + + + + + + +
diff --git a/dynamic_accounts_report/static/src/xml/profit_and_loss_templates.xml b/dynamic_accounts_report/static/src/xml/profit_and_loss_templates.xml index 017e1b715..f7a0b5de7 100644 --- a/dynamic_accounts_report/static/src/xml/profit_and_loss_templates.xml +++ b/dynamic_accounts_report/static/src/xml/profit_and_loss_templates.xml @@ -294,7 +294,7 @@

-
+
diff --git a/dynamic_accounts_report/static/src/xml/tax_report_views.xml b/dynamic_accounts_report/static/src/xml/tax_report_views.xml index 8ffa32ace..dc10e0a9d 100644 --- a/dynamic_accounts_report/static/src/xml/tax_report_views.xml +++ b/dynamic_accounts_report/static/src/xml/tax_report_views.xml @@ -248,7 +248,7 @@
-
diff --git a/dynamic_accounts_report/static/src/xml/trial_balance_view.xml b/dynamic_accounts_report/static/src/xml/trial_balance_view.xml index 7055e5b3d..920d00cd5 100644 --- a/dynamic_accounts_report/static/src/xml/trial_balance_view.xml +++ b/dynamic_accounts_report/static/src/xml/trial_balance_view.xml @@ -266,7 +266,7 @@
-
+