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:
        

&nbsp; &nbsp;<record model="ir.ui.view" id="mrp_production_product_form.view_2">
&nbsp; &nbsp;&nbsp; &nbsp;<field 
name="name">mrp.production.product.line.form</field>
&nbsp; &nbsp;&nbsp; &nbsp;<field 
name="model">mrp.production.product.line</field>
&nbsp; &nbsp;&nbsp; &nbsp;<field name="inherit_id" 
ref="mrp_production_product_form.view" />
&nbsp; &nbsp;&nbsp; &nbsp;<field name="type">form</field>
&nbsp; &nbsp;&nbsp; &nbsp;<field name="arch" type="xml">
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<form string="Planned Products">
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<field name="product_qty" 
position="after">
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<field 
name="production_advice"/>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</field>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</form>
&nbsp; &nbsp;&nbsp; &nbsp;</field>
&nbsp; &nbsp;</record>
&nbsp; &nbsp;<record model="ir.ui.view" id="mrp_production_product_tree.view_2">
&nbsp; &nbsp;&nbsp; &nbsp;<field 
name="name">mrp.production.product.line.tree</field>
&nbsp; &nbsp;&nbsp; &nbsp;<field 
name="model">mrp.production.product.line</field>
&nbsp; &nbsp;&nbsp; &nbsp;<field name="inherit_id" 
ref="mrp_production_product_tree.view" />
&nbsp; &nbsp;&nbsp; &nbsp;<field name="type">tree</field>
&nbsp; &nbsp;&nbsp; &nbsp;<field name="arch" type="xml">
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<tree string="Planned Products">
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<field name="product_qty" 
position="after">
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<field 
name="production_advice"/>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</field>
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;</tree>
&nbsp; &nbsp;&nbsp; &nbsp;</field>
&nbsp; &nbsp;</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

Reply via email to