[FIX]from product's view if we click on Bill of Materials view it opens bill of...
authorKhushboo Bhatt (Open ERP) <kbh@tinyerp.com>
Thu, 4 Oct 2012 08:42:53 +0000 (14:12 +0530)
committerKhushboo Bhatt (Open ERP) <kbh@tinyerp.com>
Thu, 4 Oct 2012 08:42:53 +0000 (14:12 +0530)
bzr revid: kbh@tinyerp.com-20121004084253-hc1nibjcdkamocni

addons/mrp/mrp_view.xml

index abf0f82..c00582d 100644 (file)
         <record model="ir.actions.act_window" id="product_open_bom">
             <field name="context">{'default_product_id': active_id, 'search_default_product_id': active_id}</field>
             <field name="name">Bill of Materials</field>
+            <field name="domain">[('bom_id','=',False)]</field>
             <field name="res_model">mrp.bom</field>
         </record>