Community mailing list archives

community@mail.odoo.com

Make the whole record readonly in a specific state

by
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.

--

Cordialement

Yassine TEIMI

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