diff --git a/dynamic_accounts_report/__manifest__.py b/dynamic_accounts_report/__manifest__.py index 44e08206e..813126115 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.0', + 'version': '17.0.1.0.1', '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 5e3d79f6d..8ad751f80 100644 --- a/dynamic_accounts_report/doc/RELEASE_NOTES.md +++ b/dynamic_accounts_report/doc/RELEASE_NOTES.md @@ -4,8 +4,3 @@ #### 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 4496a513e..73c7744c7 100644 --- a/dynamic_accounts_report/report/balance_sheet_report_templates.xml +++ b/dynamic_accounts_report/report/balance_sheet_report_templates.xml @@ -74,54 +74,33 @@ - - - - - + + + + + + + + + + t-as="values" t-key="values_index"> - - - - + t-as="account" + t-key="account_index"> + + + + + + - - - - - - - - - - - - - - - - - - - - - + @@ -162,12 +141,6 @@ - - - - - @@ -175,6 +148,12 @@ t-as="datas" t-key="datas_index"> + + + + + @@ -228,12 +207,6 @@ - - - - - @@ -241,6 +214,12 @@ t-as="datas" t-key="datas_index"> + + + + + @@ -293,12 +272,6 @@ - - - - - @@ -306,6 +279,12 @@ t-as="datas" t-key="datas_index"> + + + + + @@ -374,12 +353,6 @@ - - - - - @@ -387,6 +360,12 @@ t-as="datas" t-key="datas_index"> + + + + + @@ -440,12 +419,6 @@ - - - - - @@ -453,6 +426,12 @@ t-as="datas" t-key="datas_index"> + + + + + @@ -537,12 +516,6 @@ - - - - - @@ -550,6 +523,12 @@ t-as="datas" t-key="datas_index"> + + + + + @@ -602,12 +581,6 @@ - - - - - @@ -615,6 +588,12 @@ t-as="datas" t-key="datas_index"> + + + + + @@ -683,12 +662,6 @@ - - - - - @@ -696,6 +669,12 @@ t-as="datas" t-key="datas_index"> + + + + + @@ -796,12 +775,6 @@ - - - - - @@ -809,6 +782,12 @@ t-as="datas" t-key="datas_index"> + + + + + @@ -877,12 +856,6 @@ - - - - - @@ -890,6 +863,12 @@ 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 9e8790356..583bc064c 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 1b08486e8..39c712d79 100644 --- a/dynamic_accounts_report/static/src/js/tax_report.js +++ b/dynamic_accounts_report/static/src/js/tax_report.js @@ -82,16 +82,20 @@ class TaxReport extends owl.Component { const lastIndex = this.state.date_viewed.length - 1; this.state.date_viewed.splice(0, lastIndex); } - 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 - }; + 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 + }; } 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 cf292bea6..1a1c37784 100644 --- a/dynamic_accounts_report/static/src/js/trial_balance.js +++ b/dynamic_accounts_report/static/src/js/trial_balance.js @@ -101,12 +101,16 @@ class TrialBalance extends owl.Component { } } else { - if (val.target.name === 'start_date') { + 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.target.name === 'end_date') { + } 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 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 a974a02a3..f961280b7 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 e731c89e6..79ab902a7 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 43b5e6788..6dabd8819 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,8 +1147,7 @@ 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 f058ba079..d6bb8724f 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 456b3f945..f46152e46 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 8a84f16a1..652e3ec68 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 003cf5fa5..4a93f58af 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,189 +218,190 @@
- - - - - - - + - - - - - - - - - - - - - - + - + + + + + + + + + + + + + + + + - - - - - - - + + + + + +
- Plus - Non-current Assets + Current Liabilities
-
+ - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - + + + + + + Unknown + Partner + + - - - - + - - - - - - - - - - - + + + + + + + + + - - - - - - + - - + - - - + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- - 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 f7a0b5de7..017e1b715 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 dc10e0a9d..8ffa32ace 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 920d00cd5..7055e5b3d 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 @@
-
+