From c7e522253c870338345d632dc8b3618883382e32 Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Sat, 5 Jul 2025 16:45:05 +0530 Subject: [PATCH] July 05: [FIX] Bug Fixed 'base_accounting_kit' --- base_accounting_kit/__manifest__.py | 2 +- base_accounting_kit/doc/RELEASE_NOTES.md | 7 ++++++- base_accounting_kit/models/account_move.py | 5 ++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/base_accounting_kit/__manifest__.py b/base_accounting_kit/__manifest__.py index fead16ffc..cf75bc528 100644 --- a/base_accounting_kit/__manifest__.py +++ b/base_accounting_kit/__manifest__.py @@ -21,7 +21,7 @@ ############################################################################# { 'name': 'Odoo 17 Full Accounting Kit for Community', - 'version': '17.0.1.1.5', + 'version': '17.0.1.1.6', 'category': 'Accounting', 'summary': """Odoo 17 Accounting, Odoo 17 Accounting Reports, Odoo17 Accounting, Odoo Accounting, Odoo17 Financial Reports, Odoo17 Asset, Odoo17 Profit and Loss, PDC, Followups, Odoo17, Accounting, Odoo Apps, Reports""", 'description': """ Odoo 17 Accounting, The module used to manage the Full diff --git a/base_accounting_kit/doc/RELEASE_NOTES.md b/base_accounting_kit/doc/RELEASE_NOTES.md index 765615d1f..3a68618f3 100644 --- a/base_accounting_kit/doc/RELEASE_NOTES.md +++ b/base_accounting_kit/doc/RELEASE_NOTES.md @@ -33,4 +33,9 @@ #### 18.04.2025 #### Version 17.0.1.1.5 ##### UPDT -- Updated the visibility of the Effective Date in the Register Payment form. \ No newline at end of file +- Updated the visibility of the Effective Date in the Register Payment form. + +#### 02.07.2025 +#### Version 17.0.1.1.6 +##### UPDT +- Trial Balance report enhanced to include transactions from selected branch companies in addition to the main company. \ No newline at end of file diff --git a/base_accounting_kit/models/account_move.py b/base_accounting_kit/models/account_move.py index 191fbe8b8..1bdd4f9e6 100644 --- a/base_accounting_kit/models/account_move.py +++ b/base_accounting_kit/models/account_move.py @@ -224,7 +224,10 @@ class AccountInvoiceLine(models.Model): if state and state.lower() != 'all': domain += [('parent_state', '=', state)] if context.get('company_id'): - domain += [('company_id', '=', context['company_id'])] + company_branches = self.env['res.company'].browse([context['company_id']]).mapped('child_ids').ids + company_branches.append(context['company_id']) + common_ids = list(set(context['allowed_company_ids']) & set(company_branches)) + domain += [('company_id', 'in', common_ids)] elif context.get('allowed_company_ids'): domain += [('company_id', 'in', self.env.companies.ids)] else: