Skip to content
Permalink
Browse files

[FIX] mrp: x2many field with origin

  • Loading branch information...
rco-odoo committed May 14, 2019
1 parent 34967ca commit 4c201c1e9e04e8a3d23ba7a111901795f1f01e27
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/mrp/models/mrp_abstract_workorder.py
@@ -172,7 +172,7 @@ def _generate_lines_values(self, move, qty_to_consume):
"""
lines = []
is_tracked = move.product_id.tracking != 'none'
if move in self.move_raw_ids:
if move in self.move_raw_ids._origin:
# Get the inverse_name (many2one on line) of raw_workorder_line_ids
initial_line_values = {self.raw_workorder_line_ids._get_raw_workorder_inverse_name(): self.id}
else:

0 comments on commit 4c201c1

Please sign in to comment.
You can’t perform that action at this time.