Hi,
I want to make editable lines of purchase orders with something like:
<record model="ir.ui.view" id="purchase_view_form">
<field name="model">purchase.purchase</field>
<field name="type">form</field>
<field name="inherit" ref="purchase.purchase_view_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath
expr="/form/notebook/page[@id="purchase"]/field[@name="lines"]/tree"
position="replace_attributes">
<tree string="Lines" sequence="sequence" fill="1"
editable="top"/>
</xpath>
</data>
]]>
</field>
</record>
But this returns Invalid XML view.
I guess because the validator (etree.RelaxNG) takes form.rng when in fact
is a nested tree. So, instead assigning tree.rng by debugging, the process
completes successfully.
Someone knows if this can be done in 2.2?
Thanks.
--
Bruno M. Villasanti
Thymbra
--
[email protected] mailing list