hi!
I wanted to add a field to mrp.production.product.line and have it displayed
after the field product_qty. but i don't get it right. i tried many different
ways but they all lead to more than on product_qty field (2 or 3) in the view
(tree and form). I tried this for example:
<record model="ir.ui.view" id="mrp_production_product_form.view_2">
<field
name="name">mrp.production.product.line.form</field>
<field
name="model">mrp.production.product.line</field>
<field name="inherit_id"
ref="mrp_production_product_form.view" />
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Planned Products">
<field name="product_qty"
position="after">
<field
name="production_advice"/>
</field>
</form>
</field>
</record>
<record model="ir.ui.view" id="mrp_production_product_tree.view_2">
<field
name="name">mrp.production.product.line.tree</field>
<field
name="model">mrp.production.product.line</field>
<field name="inherit_id"
ref="mrp_production_product_tree.view" />
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Planned Products">
<field name="product_qty"
position="after">
<field
name="production_advice"/>
</field>
</tree>
</field>
</record>
in this case i have the field product_qty threetimes and my new created field
production_advice doesn't appear at all. if i just add the line with the new
field-view in mrp_view.xml there is no problem. any help?
knerz
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users