Re: [tryton] Add field to product

2012-04-25 Thread Dr . Rafael SepĂșlveda
I've made it work by creating a 'product.py', 'product.xml' and import it from '__init__.py'. Also add the new xml to '__tryton__.py'. The 'product.py' file has a Template class where the variable is checked. It's not functional, but it's a start. :) Thanks. On Tue, Apr 24, 2012 at 2:44 AM,

Re: [tryton] Add field to product

2012-04-25 Thread Craig Barnes
There are examples in the standard set of modules where models have been extended. Company extending Party is a good example. hth On 25/04/2012, Dr. Rafael SepĂșlveda rsepulv...@gmail.com wrote: I've made it work by creating a 'product.py', 'product.xml' and import it from '__init__.py'. Also

[tryton] Add field to product

2012-04-24 Thread rsepulveda
Is there a way to add a custom field to the product template using a new module? I want to add some custom fields to the products (also categories, and some other) by a custom module. I need it to store more information for the products, like several images that will be exported to a online

Re: [tryton] Add field to product

2012-04-24 Thread Jean Cavallo
Hello, Is there a way to add a custom field to the product template using a new module? Did you try creating a class inheriting from Template which _name would be product.template ? I think it should make your model replace the default one. Jean -- tryton@googlegroups.com mailing list