Call the copy method with a list of instances instead of ids

issue8118
review74461002
This commit is contained in:
Òscar Queraltó committed 2019-02-25 19:30:35 +01:00
1 parent 31e7a513dc
commit d50ef4ad86
1 file changed
+1 -1
+1 -1
View File
@@ -214,7 +214,7 @@ class SplitShipment(Wizard):
Move.delete(
[m for m in shipment.inventory_moves if m.state == 'draft'])
shipment, = Shipment.copy([shipment.id], default={'moves': None})
shipment, = Shipment.copy([shipment], default={'moves': None})
Move.write(list(self.start.moves), {'shipment': str(shipment)})
return 'end'