[FIX] mrp: ability to search BOM on BOM lines containing ...
In BOM, when performing an advanced search on "BOM Lines" contains "a name" all lines were returned, whatever the lines content. This was due to the simple fact no field 'name' was set on the mrp.bom.line model. We set "product_id" as _rec_name, it seems the more logical choice. opw-631335
This commit is contained in:
parent
e3ae3650de
commit
8e48eb625d
|
@ -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"""
|
||||
|
|
Loading…
Reference in New Issue