Hello your previous view was correct with position="after"
use this view.

<record model="ir.ui.view" id="view_inventory_line_form_inherit">
<field name="name">stock.inventory.line.form.inherit</field>
<field name="model">stock.inventory.line</field>
<field name="type">form</field>
<field name="inherit_id" ref="stock.view_inventory_line_form" />
<field name="arch" type="xml">
<form string="Stock Inventory Lines">
<field name="product_id" position="after" select="1" 
on_change="on_change_product_id(location_id,product_id,product_uom,product_template)"
 context="location=location_id,tmpl=product_template,uom=product_uom">
<field name="standard_price" />
</field>
</form>
</field>
</record>


standard_price should be child of product_id field.

------------------------
-- 
Regards,
Husen Daudi,
OpenERP=Easier, Adaptable, Affordable, Modular




-------------------- m2f --------------------

--
http://www.openerp.com/forum/viewtopic.php?p=25268#25268

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to