Skip to content

Commit

Permalink
[FIX] mrp_bom_reference_selection: Fix typo when initializing child_l…
Browse files Browse the repository at this point in the history
…ine_ids

Fixed error when showing BoM Structure without any reference.
  • Loading branch information
Zambu committed Jan 29, 2016
1 parent f056ddf commit 11be32c
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 11be32c

Please sign in to comment.