El 20/11/16 a las 19:46, Jon Levy escribió: > > > On Sunday, November 20, 2016 at 2:55:03 PM UTC-5, Manuel Alejandro > Márquez Ortiz wrote: > > I am having a problem to extend a field of a model. > > > I am not sure what you mean by "extend a field of a model." If a > model is defined in another module, and you want to change the > attributes of one of its fields, the place to do it is in by > overriding the model's __setup__ method. For example, something like > AModel.the_field.states.update({'readonly': True}). > -- Thanks Jon, that's that I need! I want to change the attributes of one field of one existing model.
Regards. -- 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/bf04db28-57ac-b770-2efe-81047c6c023d%40gmail.com.