[FIX] mrp: duplicated find bom buttons
authorMartin Trigaux <mat@openerp.com>
Mon, 4 Aug 2014 09:42:40 +0000 (11:42 +0200)
committerMartin Trigaux <mat@openerp.com>
Mon, 4 Aug 2014 12:43:28 +0000 (14:43 +0200)
commit4152e99bbdd56f45b24fe71af6e4f58dd33358fb
treed26c28264ac4ab9b7f4496f605e43bb8261deb9e
parent6231427f0a14c2ac25836318ee32e17b5b5a8d59
[FIX] mrp: duplicated find bom buttons

The product_id field is not required on a mrp.bom (while product_tmpl_id is). When searching for BOMs linked to a product.product, we should display the one specific to this product and the ones linked to the template (but not linked to another variant).
addons/mrp/mrp_view.xml
addons/mrp/product.py