[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
This commit is contained in:
Nicolas Martinelli
2016-08-10 16:20:30 +02:00
parent 19116cc878
commit 69e772570b
+1 -1
View File
@@ -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):