changeset 234bc43d9436 in modules/account_invoice:default
details:
https://hg.tryton.org/modules/account_invoice?cmd=changeset&node=234bc43d9436
description:
Always use proteus config argument in testing tools
issue10548
review338421002
diffstat:
tests/tools.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 7e61dbcfcfab -r 234bc43d9436 tests/tools.py
--- a/tests/tools.py Wed Jul 07 14:33:21 2021 +0200
+++ b/tests/tools.py Mon Jul 12 22:56:26 2021 +0200
@@ -28,7 +28,7 @@
def create_payment_term(config=None):
"Create a direct payment term"
- PaymentTerm = Model.get('account.invoice.payment_term')
+ PaymentTerm = Model.get('account.invoice.payment_term', config=config)
payment_term = PaymentTerm(name='Direct')
payment_term.lines.new(type='remainder')