Hi,
I need to make all the fields in the entire form read-only when the state is done.I know we can do it by adding attrs="{'readonly':[('state','=','done']}" for each field. But i am looking for another method.i tried by adding record rule.But it doesn't work at all.
https://www.odoo.com/forum/help-1/question/is-there-any-way-that-i-can-make-a-entire-form-readonly-132701
https://www.odoo.com/forum/help-1/question/how-to-disable-edit-form-when-state-is-done-of-form-121296