[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
This commit is contained in:
Goffin Simon
2018-07-04 11:42:41 +02:00
parent 578edc0458
commit ab5fcb2965
+1 -1
View File
@@ -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)