Hi guys,
I've been trying a few things to add a new field into a Many2one through xpath but I'm not sure why its not working. My model code:
class aa_test(models.Model): _inherit = 'sale.order' hoogte = fields.Integer() breedte = fields.Integer() aantal = fields.Integer()
My view (xml):
<openerp> <data> <record id="sale.view_order_form_inherit" model="ir.ui.view"> <field name="name">sale.order.form.inherit</field> <field name="model">sale.order</field> <field name="inherit_id" ref="sale.view_order_form"/> <field name="arch" type="xml"> <xpath expr="//field[@name='order_line']" position="inside"> <field name="hoogte"/> </xpath> </field> </record> </data> </openerp>
en I change the position="inside" to position="before" I will see the field showing up before my One2many, when I put it on inside it wont be added to the One2many. I'm adding to the view under sales > Quotations to the One2many order_line. See this example image to see what I want.
Why is the before working but not the inside? Is my xpath expressions invalid?
Thanks,
Yenthe