Skip to content

Commit

Permalink
Merge 62b8818 into 09efe68
Browse files Browse the repository at this point in the history
  • Loading branch information
zamberjo committed Dec 16, 2015
2 parents 09efe68 + 62b8818 commit 2f6c189
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mrp_bom_reference_selection/models/mrp_bom_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ def _compute_child_bom_lines(self):
bom_id = bom_obj._bom_find(
product_tmpl_id=record.product_id.product_tmpl_id.id,
product_id=record.product_id.id)
record.child_line_ids = bom_id and [
(6, 0, child_id) for child_id in
bom_obj.browse(bom_id).bom_line_ids.ids
] or False
record.child_line_ids = [
(6, 0, bom_obj.browse(bom_id).bom_line_ids.ids)
]

child_line_ids = fields.One2many(
relation='mrp.bom.line', compute='_compute_child_bom_lines',
Expand Down

0 comments on commit 2f6c189

Please sign in to comment.