From a3d68da88d83e8aefeb16862ccae9dd69e889f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 23 Apr 2021 20:32:00 +0200 Subject: [PATCH] Save the modified packages The root_packages on the shipment may be a new list of instances if meanwhile the local cache of the shipment instance has been cleared by reaching its size limit. issue10319 review346001002 --- stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock.py b/stock.py index 761fe6cf16..7340756f29 100644 --- a/stock.py +++ b/stock.py @@ -178,7 +178,7 @@ class CreateDPDShipping(Wizard): for package, label, parcel in zip_longest(packages, labels, parcels): package.shipping_label = fields.Binary.cast(label.getvalue()) package.shipping_reference = parcel.parcelLabelNumber - Package.save(shipment.root_packages) + Package.save(packages) shipment.save() return 'end'