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
This commit is contained in:
Cédric Krier committed 2021-04-23 20:32:00 +02:00
1 parent 106005fa95
commit a3d68da88d
1 file changed
+1 -1
+1 -1
View File
@@ -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'