changeset ced55f66b846 in modules/account:default
details: https://hg.tryton.org/modules/account?cmd=changeset&node=ced55f66b846
description:
Search tax code line template using the tax code template model in test
diffstat:
tests/test_account.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r e3f7587a5d8b -r ced55f66b846 tests/test_account.py
--- a/tests/test_account.py Sun Oct 31 18:47:42 2021 +0100
+++ b/tests/test_account.py Sun Oct 31 19:18:58 2021 +0100
@@ -1549,6 +1549,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')
@@ -1607,7 +1608,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