diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 3ca55e3efb0..fabeeca0fe3 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -367,6 +367,7 @@ class mrp_bom(osv.osv): class mrp_bom_line(osv.osv): _name = 'mrp.bom.line' _order = "sequence" + _rec_name = "product_id" def _get_child_bom_lines(self, cr, uid, ids, field_name, arg, context=None): """If the BOM line refers to a BOM, return the ids of the child BOM lines"""