changeset 8e0ae4c2a813 in modules/account_stock_shipment_cost:default
details:
https://hg.tryton.org/modules/account_stock_shipment_cost?cmd=changeset&node=8e0ae4c2a813
description:
Pass a list of shipment cost to Warning.format
diffstat:
account.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r eec85f97b771 -r 8e0ae4c2a813 account.py
--- a/account.py Sat Jul 24 23:27:23 2021 +0200
+++ b/account.py Wed Sep 08 09:42:31 2021 +0200
@@ -232,7 +232,7 @@
parties = shipment_cost.parties
all_shipments = shipment_cost.all_shipments
if not all_shipments:
- key = Warning.format('post no shipment', shipment_cost)
+ key = Warning.format('post no shipment', [shipment_cost])
if Warning.check(key):
raise NoShipmentWarning(
key,
@@ -245,7 +245,7 @@
continue
if other.parties & parties:
key = Warning.format(
- 'post same parties', shipment_cost)
+ 'post same parties', [shipment_cost])
if Warning.check(key):
raise SamePartiesWarning(
key,