I made some mistakes in the description above, so here again:

Working with Tryton 3.2

I want to add a new field "product_code" to "product.template" because most 
Information I need is in "product.template", not in "product.product" which 
is now a "variant". So I want to find product.template with a product_code.

I add this field an have it now in my product view.

To search now in tree view with filter I need to add "product_code" to 
"product/view/template_tree.xml".

If I directly edit "*product*/view/template_tree.xml" it *works*.

If I add te following code to "*mymodule*/view/template_tree.xml" it is 
*not* 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>

 

I can't find the reason why.


Reply via email to