From 69e772570b95a29bffa4604156e0eef9017ac0df Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 10 Aug 2016 16:20:30 +0200 Subject: [PATCH] [FIX] purchase: copy PO procurement group When duplicating a PO, we should not copy the procurement group, otherwise the stock moves will be linked to the first picking. opw-685812 --- addons/purchase/purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 0a901c947b0..b73a6a01d4c 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -151,7 +151,7 @@ class PurchaseOrder(models.Model): help="This will determine picking type of incoming shipment") default_location_dest_id_usage = fields.Selection(related='picking_type_id.default_location_dest_id.usage', string='Destination Location Type',\ help="Technical field used to display the Drop Ship Address", readonly=True) - group_id = fields.Many2one('procurement.group', string="Procurement Group") + group_id = fields.Many2one('procurement.group', string="Procurement Group", copy=False) @api.model def name_search(self, name, args=None, operator='ilike', limit=100):