0 Edit Close Delete Flag How to make Readonly states based on condition Edit Close Delete Flag odoo 21 October 2022 Unsubscribe Subscribe Odoo15readonlystates Comment Share Post Comment Discard 2 Answers 0 odoo 21 October 2022 Best Answer Hi Ashutosh,Try this,field name = "state" attrs="{'readonly': [('state', '=', 'resolved')]}"Thanks Comment Share 1 Comment Post Comment Discard odoo - 21 October 2022 Delete Convert as a answer I tried this one .. particular this state is getting readonly .. I need all the states to be readonly 0 odoo 21 October 2022 Best Answer Hi Ashutosh,Try this,field name = "state" attrs="{'readonly': [('state', 'in', ('resolved','new','in progress')]}"Thanks Comment Share Post Comment Discard