changeset 5dfce1f43389 in modules/account_invoice:default
details:
https://hg.tryton.org/modules/account_invoice?cmd=changeset&node=5dfce1f43389
description:
Use standard format for invoice payment term warning
diffstat:
invoice.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 445db5742671 -r 5dfce1f43389 invoice.py
--- a/invoice.py Sun Oct 31 10:27:03 2021 +0100
+++ b/invoice.py Sun Oct 31 16:08:15 2021 +0100
@@ -1022,7 +1022,7 @@
for date, amount in term_lines:
if self.type == 'out' and date < today:
lang = Lang.get()
- warning_key = 'invoice_payment_term_%d' % self.id
+ warning_key = Warning.format('invoice_payment_term', [self])
if Warning.check(warning_key):
raise InvoicePaymentTermDateWarning(warning_key,
gettext('account_invoice'