diff --git a/addons/purchase/test/purchase_order_cancel_draft.yml b/addons/purchase/test/purchase_order_cancel_draft.yml index 78208166e41..da4961d7ae7 100644 --- a/addons/purchase/test/purchase_order_cancel_draft.yml +++ b/addons/purchase/test/purchase_order_cancel_draft.yml @@ -130,6 +130,6 @@ - !python {model: purchase.order}: | from tools.translate import _ - self.copy(cr, uid, ref("purchase_order_pendrive1")) - self.unlink(cr, uid, [ref("purchase_order_pendrive1")]) + copy_id = self.copy(cr, uid, ref("purchase_order_pendrive1")) + self.unlink(cr, uid, [copy_id]) \ No newline at end of file