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:
1 parent
106005fa95
commit
a3d68da88d
1 file changed
+1
-1
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user