On 30/03/12 12:54 -0700, Bruno M. Villasanti (Thymbra) wrote:
> 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=&quot;purchase&quot;]/field[@name=&quot;lines&quot;]/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.

This is strange because tree is define in form.rnc

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpXl47lpHiy8.pgp
Description: PGP signature

Reply via email to