[IMP]MRP : Add Product Menu and BOM field is required
bzr revid: hsa@tinyerp.com-20120919105324-uqh8z188rtl34bva
This commit is contained in:
parent
819455b73c
commit
e971934854
|
@ -461,7 +461,8 @@ class mrp_production(osv.osv):
|
|||
'date_start': fields.datetime('Start Date', select=True, readonly=True),
|
||||
'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)]}),
|
||||
'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."),
|
||||
'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",
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
parent="base.menu_mrp_root"
|
||||
sequence="1"/>
|
||||
|
||||
<menuitem name="Master Data"
|
||||
<menuitem name="Products"
|
||||
id="menu_mrp_bom"
|
||||
parent="base.menu_mrp_root"
|
||||
sequence="5"/>
|
||||
|
@ -521,6 +521,10 @@
|
|||
id="menu_mrp_bom_form_action"
|
||||
parent="menu_mrp_bom"
|
||||
sequence="10"/>
|
||||
<menuitem name="Products"
|
||||
id="menu_procurement_partner_contact_form"
|
||||
action="product.product_normal_action_puchased"
|
||||
parent="menu_mrp_bom"/>
|
||||
<menuitem
|
||||
action="mrp_bom_form_action2"
|
||||
id="menu_mrp_bom_form_action2"
|
||||
|
@ -644,7 +648,7 @@
|
|||
<field name="date_planned"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="bom_id" domain="[('product_id','=',product_id)]" context="{'default_product_id': product_id}" on_change="bom_id_change(bom_id)"/>
|
||||
<field name="bom_id" domain="[('product_id','=',product_id)]" context="{'default_product_id': product_id}" on_change="bom_id_change(bom_id)" required="1"/>
|
||||
<field name="routing_id" class="oe_inline" groups="mrp.group_mrp_routings"/>
|
||||
<field name="user_id"/>
|
||||
<field name="origin"/>
|
||||
|
|
Loading…
Reference in New Issue