Skip to content

Commit

Permalink
[FIX] purchase: duplicate procurement
Browse files Browse the repository at this point in the history
The fields `purchase_line_id` on a procurement should not be copied.
Otherwise, issue arise in reordering rules.

opw-1859349
  • Loading branch information
nim-odoo committed Jun 19, 2018
1 parent dfc37d3 commit 3e2f85e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/purchase/models/purchase.py
Expand Up @@ -868,7 +868,7 @@ def _get_action(self):
class ProcurementOrder(models.Model):
_inherit = 'procurement.order'

purchase_line_id = fields.Many2one('purchase.order.line', string='Purchase Order Line')
purchase_line_id = fields.Many2one('purchase.order.line', string='Purchase Order Line', copy=False)
purchase_id = fields.Many2one(related='purchase_line_id.order_id', string='Purchase Order')

@api.multi
Expand Down

0 comments on commit 3e2f85e

Please sign in to comment.