I'm trying to manipulate the sale
form by a module with inheritance in views. I have following XML for testing:
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_order_form" model="ir.ui.view">
<field name="name">sale.order.form.custom.120</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<data>
<field name="invoiced" position="replace"/>
<xpath
expr="//page[@string='Order Line']/field[@name='product_uom_qty']"
position="replace">
</xpath>
</data>
</field>
</record>
</data>
</openerp>
AFAIK that should remove the quantity field from the form. But it won't.
I tested the XPath expression wit a query tool. Should be fine.
Is there any debug/trace level to see what happens, when reading this XML to update the view ?
(Updates removed, as incorrect)