changeset c43421a33c58 in modules/account:6.0 details: https://hg.tryton.org/modules/account?cmd=changeset&node=c43421a33c58 description: Search tax code line template using the tax code template model in test (grafted from ced55f66b846d7393555ee7468a58434e30d9188) diffstat:
tests/test_account.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (20 lines): diff -r c226665b242b -r c43421a33c58 tests/test_account.py --- a/tests/test_account.py Sun Oct 31 18:46:32 2021 +0100 +++ b/tests/test_account.py Sun Oct 31 19:18:58 2021 +0100 @@ -1542,6 +1542,7 @@ AccountTemplate = pool.get('account.account.template') TaxTemplate = pool.get('account.tax.template') TaxCodeTemplate = pool.get('account.tax.code.template') + TaxCodeTemplateLine = pool.get('account.tax.code.line.template') UpdateChart = pool.get('account.update_chart', type='wizard') Type = pool.get('account.account.type') Account = pool.get('account.account') @@ -1600,7 +1601,7 @@ tax_code.template_override = True tax_code.save() - template_tax_code_line, = TaxCodeLine.search([], limit=1) + template_tax_code_line, = TaxCodeTemplateLine.search([], limit=1) tax_code_line, = TaxCodeLine.search( [('template', '=', template_tax_code_line.id)]) tax_code_line.template_override = True