[IMP]Add Products below BOM
bzr revid: hsa@tinyerp.com-20120924133244-8czsc0bs1mtx0af3
This commit is contained in:
+1
-1
@@ -462,7 +462,7 @@ class mrp_production(osv.osv):
|
||||
'date_finished': fields.datetime('End Date', select=True, readonly=True),
|
||||
|
||||
'bom_id': fields.many2one('mrp.bom', 'Bill of Material', domain=[('bom_id','=',False)], readonly=True, states={'draft':[('readonly',False)]},
|
||||
help="Bills of Materials allow you to define the list of required raw materials required to make a finished product."),
|
||||
help="Bill of Materials allow you to define the list of required raw materials to make a finished product."),
|
||||
'routing_id': fields.many2one('mrp.routing', string='Routing', on_delete='set null', readonly=True, states={'draft':[('readonly',False)]},
|
||||
help="The list of operations (list of work centers) to produce the finished product. The routing is mainly used to compute work center costs during operations and to plan future loads on work centers based on production plannification."),
|
||||
'picking_id': fields.many2one('stock.picking', 'Picking List', readonly=True, ondelete="restrict",
|
||||
|
||||
+11
-2
@@ -513,7 +513,16 @@
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="product_supply_method_produce" model="ir.actions.act_window">
|
||||
<field name="name">Products</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">product.product</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">kanban,tree,form</field>
|
||||
<field name="context" eval="{'search_default_supply_method': 'produce'}"/>
|
||||
<field name="view_id" ref="product.product_kanban_view"/>
|
||||
</record>
|
||||
<!-- BOM menus -->
|
||||
|
||||
<menuitem
|
||||
@@ -523,7 +532,7 @@
|
||||
sequence="10"/>
|
||||
<menuitem name="Products"
|
||||
id="menu_mrp_product_form"
|
||||
action="product.product_normal_action_puchased"
|
||||
action="product_supply_method_produce"
|
||||
parent="menu_mrp_bom"/>
|
||||
<menuitem
|
||||
action="mrp_bom_form_action2"
|
||||
|
||||
Reference in New Issue
Block a user