Community mailing list archives

Make the whole record readonly in a specific state

Yassine TEIMI
- 05/30/2016 05:01:44
Hi guys,

I want to make all fields readonly when my model comes to a specific state.

I tried to make a group on the whole form, and add an attrs, but it damaged the view.

When I overrided fields_view_get(), it doesn't consider any attrs-readonly defined on the xml, so it's like it imposes to define all readonly fields on the fields_view_get().

Is there a solution for that ?

Best regards.



Yassine TEIMI

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