From ab5fcb29650349fa641c6130bf6dcbdc1ec28a07 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 4 Jul 2018 10:18:21 +0200 Subject: [PATCH] [FIX]purchase: A duplicated shipment is not associated with the original PO When duplicating a shipment, the shipment was not linked to the original PO. opw:1854387 --- addons/purchase/models/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/models/stock.py b/addons/purchase/models/stock.py index f02fddd8078..13517893217 100644 --- a/addons/purchase/models/stock.py +++ b/addons/purchase/models/stock.py @@ -16,7 +16,7 @@ class StockMove(models.Model): _inherit = 'stock.move' purchase_line_id = fields.Many2one('purchase.order.line', - 'Purchase Order Line', ondelete='set null', index=True, readonly=True, copy=False) + 'Purchase Order Line', ondelete='set null', index=True, readonly=True) created_purchase_line_id = fields.Many2one('purchase.order.line', 'Created Purchase Order Line', ondelete='set null', readonly=True, copy=False)