Skip to content

Commit c426133

Browse files
committed
[FIX] account: cash with multiple COA
- Set multi company - Create 2 new companies - Set a chart of account for company 1 (ex Belgium) - Set another chart of account for company 2 (ex UK) This is because the generation of accounts from templates doesn't restrict the accounts to the current one. opw-690796
1 parent a4143da commit c426133

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

addons/account/models/chart_template.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,9 @@ def generate_account_reconcile_model(self, tax_template_ref, acc_template_ref, c
399399
:rtype: dict
400400
"""
401401
self.ensure_one()
402-
account_reconcile_models = self.env['account.reconcile.model.template'].search([])
402+
account_reconcile_models = self.env['account.reconcile.model.template'].search([
403+
('account_id.chart_template_id', '=', self.id)
404+
])
403405
for account_reconcile_model in account_reconcile_models:
404406
vals = {
405407
'name': account_reconcile_model.name,

0 commit comments

Comments
 (0)