0 Edit Close Delete Flag want to make form readonly based on condition Edit Close Delete Flag odoo 1 January 2025 Unsubscribe Subscribe Comment Share Post Comment Discard 2 Answers 0 odoo 2 January 2025 Best Answer ADD ATTR READONLY TO YOUR XML FILE <sheet> <field name="state"/> <field name="fields" attrs="{'readonly': [('state', '!=', 'nil')]}"/></sheet> Comment Share Post Comment Discard 0 odoo 1 January 2025 Best Answer Hi,You have to add readonly condition to every node/fields in the form, you cannot generically add it to sheet tag.Either you can apply to all fields directly or using python methods, you can do it.Thanks Comment Share 1 Comment Post Comment Discard odoo - 5 January 2025 Delete Convert as a answer yes bro, This worked