From 83df6ee2f7943cf3fa53383c3f98d18e057dcef4 Mon Sep 17 00:00:00 2001 From: Jordi Ballester Alomar Date: Wed, 9 Jan 2019 13:58:40 +0100 Subject: [PATCH] [FIX] account_financial_report: multicompany+layout behaviour (#498) * Fix wizards for proper multicompany behaviour. * Fix layout issue --- account_financial_report/__manifest__.py | 2 +- account_financial_report/readme/HISTORY.rst | 7 ++++ .../report/general_ledger.py | 1 - .../report/templates/aged_partner_balance.xml | 4 +-- .../report/templates/general_ledger.xml | 4 +-- .../report/templates/journal_ledger.xml | 4 +-- .../report/templates/open_items.xml | 4 +-- .../report/templates/trial_balance.xml | 4 +-- .../report/templates/vat_report.xml | 4 +-- .../wizard/aged_partner_balance_wizard.py | 20 ++++++++++-- .../aged_partner_balance_wizard_view.xml | 4 +-- .../wizard/general_ledger_wizard.py | 29 +++++++++++++++-- .../wizard/general_ledger_wizard_view.xml | 8 ++--- .../wizard/journal_ledger_wizard.py | 23 ++++++++++--- .../wizard/open_items_wizard.py | 20 ++++++++++-- .../wizard/open_items_wizard_view.xml | 2 -- .../wizard/trial_balance_wizard.py | 32 +++++++++++++++++-- .../wizard/trial_balance_wizard_view.xml | 5 +-- .../wizard/vat_report_wizard.py | 12 ++++++- .../wizard/vat_report_wizard_view.xml | 2 +- 20 files changed, 143 insertions(+), 48 deletions(-) diff --git a/account_financial_report/__manifest__.py b/account_financial_report/__manifest__.py index 5ddf2a5c..1371b92b 100644 --- a/account_financial_report/__manifest__.py +++ b/account_financial_report/__manifest__.py @@ -4,7 +4,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Account Financial Reports', - 'version': '11.0.2.4.0', + 'version': '11.0.2.4.1', 'category': 'Reporting', 'summary': 'OCA Financial Reports', 'author': 'Camptocamp SA,' diff --git a/account_financial_report/readme/HISTORY.rst b/account_financial_report/readme/HISTORY.rst index b501c36d..4062d70c 100644 --- a/account_financial_report/readme/HISTORY.rst +++ b/account_financial_report/readme/HISTORY.rst @@ -1,3 +1,10 @@ +11.0.2.4.1 (2019-01-08) +~~~~~~~~~~~~~~~~~~~~~~~ + +* Handle better multicompany behaviour +* Improve how title appears in the reports + + 11.0.2.3.1 (2018-11-29) ~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/account_financial_report/report/general_ledger.py b/account_financial_report/report/general_ledger.py index 7c882aff..20db5299 100644 --- a/account_financial_report/report/general_ledger.py +++ b/account_financial_report/report/general_ledger.py @@ -254,7 +254,6 @@ class GeneralLedgerReportCompute(models.TransientModel): self._inject_partner_values() if not self.filter_partner_ids: self._inject_partner_values(only_empty_partner=True) - # Add unaffected earnings account if (not self.filter_account_ids or self.unaffected_earnings_account.id in diff --git a/account_financial_report/report/templates/aged_partner_balance.xml b/account_financial_report/report/templates/aged_partner_balance.xml index ef00fe00..eff0b6f2 100644 --- a/account_financial_report/report/templates/aged_partner_balance.xml +++ b/account_financial_report/report/templates/aged_partner_balance.xml @@ -17,9 +17,9 @@ Aged Partner Balance - - -
+
-

+

diff --git a/account_financial_report/report/templates/general_ledger.xml b/account_financial_report/report/templates/general_ledger.xml index 2656e016..ff03ca33 100644 --- a/account_financial_report/report/templates/general_ledger.xml +++ b/account_financial_report/report/templates/general_ledger.xml @@ -19,9 +19,9 @@ General Ledger - - -
+
-

+

diff --git a/account_financial_report/report/templates/journal_ledger.xml b/account_financial_report/report/templates/journal_ledger.xml index c321a6d4..8d04fb35 100644 --- a/account_financial_report/report/templates/journal_ledger.xml +++ b/account_financial_report/report/templates/journal_ledger.xml @@ -16,9 +16,9 @@ Journal Ledger - - -
+
-

+

diff --git a/account_financial_report/report/templates/open_items.xml b/account_financial_report/report/templates/open_items.xml index 5f1c0269..193c2d73 100644 --- a/account_financial_report/report/templates/open_items.xml +++ b/account_financial_report/report/templates/open_items.xml @@ -17,9 +17,9 @@ Open Items - - -
+
-

+

diff --git a/account_financial_report/report/templates/trial_balance.xml b/account_financial_report/report/templates/trial_balance.xml index c2cdf593..869ba9e3 100644 --- a/account_financial_report/report/templates/trial_balance.xml +++ b/account_financial_report/report/templates/trial_balance.xml @@ -19,9 +19,9 @@ Trial Balance - - -
+
-

+

diff --git a/account_financial_report/report/templates/vat_report.xml b/account_financial_report/report/templates/vat_report.xml index 2291e3f3..a7b963eb 100644 --- a/account_financial_report/report/templates/vat_report.xml +++ b/account_financial_report/report/templates/vat_report.xml @@ -14,9 +14,9 @@