[FIX] account: assertTaxGridAmounts independent from demo data

Part of task 2124952

If another company uses the same tags, they showed up in the assert.
This commit is contained in:
wan
2021-02-17 08:39:28 +00:00
parent 3b086e75da
commit 7da284ea5b
@@ -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]