changeset be516fcc92bc in modules/sale_shipment_cost:default
details:
https://hg.tryton.org/modules/sale_shipment_cost?cmd=changeset&node=be516fcc92bc
description:
Store list instead of set in context
issue11140
review393951002
diffstat:
sale.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r cab0da9a99be -r be516fcc92bc sale.py
--- a/sale.py Thu Feb 03 22:32:27 2022 +0100
+++ b/sale.py Sun Apr 03 23:58:48 2022 +0200
@@ -211,7 +211,7 @@
@classmethod
@ModelView.button
def process(cls, sales):
- with Transaction().set_context(_shipment_cost_invoiced=set()):
+ with Transaction().set_context(_shipment_cost_invoiced=list()):
super().process(sales)
def _get_carrier_context(self):
@@ -352,7 +352,7 @@
if invoice_line:
invoice_line.origin = self
lines.append(invoice_line)
- shipment_cost_invoiced.add(shipment.id)
+ shipment_cost_invoiced.append(shipment.id)
return lines
def _get_invoice_line_quantity(self):