From 7da284ea5bf1875f50999f94d1367ce5f7d786bc Mon Sep 17 00:00:00 2001 From: wan Date: Wed, 30 Dec 2020 16:18:53 +0000 Subject: [PATCH] [FIX] account: assertTaxGridAmounts independent from demo data Part of task 2124952 If another company uses the same tags, they showed up in the assert. --- addons/account/tests/test_account_move_reconcile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/account/tests/test_account_move_reconcile.py b/addons/account/tests/test_account_move_reconcile.py index 4c17a415c42..3e2434b6ab7 100644 --- a/addons/account/tests/test_account_move_reconcile.py +++ b/addons/account/tests/test_account_move_reconcile.py @@ -212,8 +212,11 @@ class TestAccountMoveReconcile(AccountTestInvoicingCommon): FROM account_account_tag_account_move_line_rel rel JOIN account_move_line line ON line.id = rel.account_move_line_id WHERE line.tax_exigible IS TRUE + AND line.company_id = ANY(%(company_ids)s) GROUP BY rel.account_account_tag_id - ''') + ''', { + 'company_ids': self.env.companies.ids, + }) for tag_id, total_balance in self.cr.fetchall(): tag, expected_balance = expected_values[tag_id]