From f4d7adc07df84c50c4b5dcf6b9d343dd192b04b5 Mon Sep 17 00:00:00 2001 From: Kaynnan Lemes Date: Wed, 14 Jun 2023 07:23:54 -0300 Subject: [PATCH] [MIG] account_consolidation: - Updated the Accounting > Adviser to Accounting > Accounting - Updated the flag for generated journal entries to 'auto_post' --- account_consolidation/readme/USAGE.rst | 4 ++-- account_consolidation/wizard/consolidation_base.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/account_consolidation/readme/USAGE.rst b/account_consolidation/readme/USAGE.rst index a20daebe..c2bf4e90 100644 --- a/account_consolidation/readme/USAGE.rst +++ b/account_consolidation/readme/USAGE.rst @@ -1,12 +1,12 @@ To consolidate subsidiaries in your consolidation company, you should use -'Consolidation : consolidate' wizard in Accounting > Adviser. +'Consolidation : consolidate' wizard in Accounting > Accounting. You have to select the month until which every account move will be processed, and select if you want to consolidate all the moves or only posted ones. This will generate a journal entry in YTD (Year-To-Date) mode on your consolidation company for each subsidiary. Those entries are flagged as -'auto_reverse', so they will actually be reversed when you run the +'auto_post', so they will actually be reversed when you run the consolidation the next time. The generated journal entries are unposted, allowing you to modify or delete it to diff --git a/account_consolidation/wizard/consolidation_base.py b/account_consolidation/wizard/consolidation_base.py index c13788a5..613a3a3a 100644 --- a/account_consolidation/wizard/consolidation_base.py +++ b/account_consolidation/wizard/consolidation_base.py @@ -11,7 +11,7 @@ class AccountConsolidationBase(models.AbstractModel): @api.model def _default_company(self): - return self.env.user.company_id + return self.env.company @api.model def _get_consolidation_profiles(self):