Hello

I added new field "productcode" to template form.

This now field is now shown in view after adding this to 
"view/template_form.xml"

> <data>
>     <xpath expr="/form/field[@name='name']"
>         position="after">
>         <label name="productcode"/>
>         <field name="productcode"/>
>     </xpath>
> </data>
>

But I have problems adding this field to the tree view 
"view/template_form.xml"
This is now working:

> <?xml version="1.0"?>
> <!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
> this repository contains the full copyright notices and license terms. -->
> <data>
>     <xpath expr="/tree/field[@name='name']"
>         position="after">
>         <field name="productcode"/>
>     </xpath>
> </data>
>

When I add this field outside of my own module directly in 
product/view/template_tree.xml is also works. So I think something is wrong 
with my syntax. Would be nice to get some help. Thanks.



Reply via email to