> > Why using a Property field? > > The only way to store a value in configuration, no ? And it allows to choose an existing product category.
> Only field of a model can be evaluated by PYSON. > There is the PYSON.Id but it will require that you create the category > in XML. > I'll try this. It seems easier and without property :-) > > You can call the default_ method from the getter method. > But you need to have both because the getter will be called only once > the record is saved/created. > I didn't thought this way :-) > > > I think the creation of categories from XML could be a good option. > Indeed. Thanks for your help ! -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/9d36c8dc-25f4-4a96-b6cc-f29356f626b7%40googlegroups.com.