Community mailing list archives
Re: Make the whole record readonly in a specific stateby
Yes, I declared 'reporting_state' as invisible, and used attrs directly on the fields. .Thanks.
2016-05-30 11:37 GMT+01:00 Martin Trigaux <email@example.com>:
On 30/05/16 12:07, Yassine Teimi wrote: > I did a group on all fields inside the form tag, like: > >> > ... > > > > Is that correct ? I don't think the readonly attribute will be propagated to the child of a group, should probably be set directly on the fields. Also you need to have the field `reporting_state` to be present in the view (even in invisible) for the attrs to be evaluated. -- Martin Trigaux Odoo https://odoo.com https://github.com/mart-e
Consultant & Odoo Project Manager
TEL : +212 6-87 71 41 18