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}).

-- 
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/e6790556-79c0-4e6c-a95c-18333e8e244e%40googlegroups.com.

Reply via email to