2015-05-25 16:00 GMT+02:00 TPH <[email protected]>: > 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.
Do you load xml views? Example: https://bitbucket.org/zikzakmedia/trytond-product_base_code/src/49d141a2f70e69fecd10beabaa684a32cee621e5/tryton.cfg?at=default https://bitbucket.org/zikzakmedia/trytond-product_base_code/src/49d141a2f70e69fecd10beabaa684a32cee621e5/product.xml?at=default -- Raimon Esteve // Tryton y OpenERP en la nube: http://www.zzsaas.com // Documentación: http://doc.zzsaas.com www.zikzakmedia.com
