From d50ef4ad86626e3ddec9985356dde452e96662ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=92scar=20Queralt=C3=B3?= Date: Mon, 25 Feb 2019 19:30:35 +0100 Subject: [PATCH] Call the copy method with a list of instances instead of ids issue8118 review74461002 --- stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock.py b/stock.py index 42ecfd1098..b796147022 100644 --- a/stock.py +++ b/stock.py @@ -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'