[IMP]:resolve error at the time of creating new product by improving product form view for BoM and Minimum Stock Rules
bzr revid: ssu@tinyerp.com-20120427115547-qg0w7z632h3a8e0w
This commit is contained in:
@@ -981,9 +981,8 @@
|
||||
<field name="type">form</field>
|
||||
<field name="inherit_id" ref="product.product_normal_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<group name="store" position="after">
|
||||
<group name="misc" position="after">
|
||||
<group col="2" colspan="4">
|
||||
<separator string="Bill of Materials" colspan="4"/>
|
||||
<field name="bom_ids" nolabel="1" domain="[('bom_id','=',False)]">
|
||||
</field>
|
||||
</group>
|
||||
|
||||
@@ -275,9 +275,8 @@
|
||||
<field name="arch" type="xml">
|
||||
<group name="misc" position="after">
|
||||
<group col="2" colspan="4" attrs="{'invisible':[('type', '=', 'service')]}">
|
||||
<separator string="Minimum Stock Rules" colspan="4"/>
|
||||
<field name="orderpoint_ids" context="{'default_product_uom': uom_id}" nolabel="1">
|
||||
<tree string="Minimum Stock Rule" editable="bottom">
|
||||
<field name="orderpoint_ids" context="{'default_product_uom': uom_id, 'default_product_id': active_id}" nolabel="1">
|
||||
<tree string="Minimum Stock Rules" editable="bottom">
|
||||
<field name="warehouse_id" on_change="onchange_warehouse_id(warehouse_id)" widget="selection"/>
|
||||
<field name="location_id"/>
|
||||
<field name="product_min_qty"/>
|
||||
|
||||
@@ -398,8 +398,8 @@ class product_product(osv.osv):
|
||||
help="If real-time valuation is enabled for a product, the system will automatically write journal entries corresponding to stock moves." \
|
||||
"The inventory variation account set on the product category will represent the current inventory value, and the stock input and stock output account will hold the counterpart moves for incoming and outgoing products."
|
||||
, required=True),
|
||||
'minimum_stock_rule': fields.one2many('stock.warehouse.orderpoint','product_id','Minimum Stock Rules', help="This is Minimum Stock Rule"),
|
||||
'bill_of_material': fields.one2many('mrp.bom','product_id','Bill Of Materials', help="This is Bill of Materials"),
|
||||
'minimum_stock_rules': fields.one2many('stock.warehouse.orderpoint','product_id','Minimum Stock Rules', help="This is Minimum Stock Rule"),
|
||||
'bill_of_materials': fields.one2many('mrp.bom','bom_id','Bill Of Materials', help="This is Bill of Materials"),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
|
||||
@@ -116,12 +116,6 @@
|
||||
<field name="incoming_qty"/>
|
||||
<field name="outgoing_qty"/>
|
||||
</group>
|
||||
<group colspan="4">
|
||||
<field name="minimum_stock_rule" nolabel="1" context="{'default_product_id': active_id}"/>
|
||||
</group>
|
||||
<group colspan="4">
|
||||
<field name="bill_of_material" nolabel="1" context="{'default_product_id': active_id}"/>
|
||||
</group>
|
||||
<group colspan="2" col="2" name="lot" groups="stock.group_tracking_lot,stock.group_production_lot">
|
||||
<separator string="Lots" colspan="4"/>
|
||||
<field name="track_production" groups="stock.group_production_lot"/>
|
||||
|
||||
Reference in New Issue
Block a user