Community mailing list archives

community@mail.odoo.com

Re: Make the whole record readonly in a specific state

by
Yassine TEIMI
- 05/30/2016 06:57:35
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 <mat@odoo.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

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--

Cordialement

Yassine TEIMI

Consultant & Odoo Project Manager
TEL : +212 6-87 71 41 18