How to Make a Field Readonly in Odoo 17 | Odoo 17 Development Tutorial – CBMS Odoo ERP

How to Make a Field Readonly in Odoo 17 | Odoo 17 Development Tutorial – CBMS Odoo ERP

1
0 minutes, 26 seconds Read

In Odoo, you can make a field read-only through Python code or XML views, depending on where you want to enforce the read-only behavior.

When you set the readonly attribute to True in Python, it makes the field read-only across all views where it’s used. Conversely, when you set readonly=”1″ in XML views, it makes the field read-only only in the context of that particular view. #odoo17 #odoodevelopment #odoodevelopment

Connect With Us:
—————————————
➡️ Website:
➡️ Email: info@cybrosys.com
➡️ Twitter:
➡️ LinkedIn:
➡️ Facebook:
➡️ Instagram:
➡️ Pinterest:

#Field #Readonly #Odoo #Odoo #Development #Tutorial

Similar Posts

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *