changeset 0dbe01fd2e53 in modules/sale_shipment_cost:6.2
details: 
https://hg.tryton.org/modules/sale_shipment_cost?cmd=changeset&node=0dbe01fd2e53
description:
        Store list instead of set in context

        issue11140
        review393951002
        (grafted from be516fcc92bc4043051123e3abc617a7a7a5f993)
diffstat:

 sale.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r ee32bbebee02 -r 0dbe01fd2e53 sale.py
--- a/sale.py   Wed Feb 16 23:49:50 2022 +0100
+++ b/sale.py   Sun Apr 03 23:58:48 2022 +0200
@@ -212,7 +212,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):
@@ -343,7 +343,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):

Reply via email to