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 […]
Readonly is used to make a field non-editable. We can make a field readonly either by using Python or xml. #odoo16 In python we can make a field readonly by setting its attribute readonly to True in the field definition and in XML by giving readonly as 1 we can make a field readonly. #odoodevelopment #odootutorials […]
In Odoo 16, the “Readonly” attribute provides developers and administrators with the ability to control the accessibility of fields, ensuring that specific data remains unchangeable while still being visible to users. #odootutorials This attribute can be particularly useful in scenarios where you want to restrict editing privileges to maintain data integrity or to enforce business […]
Readonly fields are fields that cannot be edited from the front-end UI. These fields will be having a default value that will not be able to be edited. #odoodevelopmentvideos #odoo15videos In this video, we’ll be discussing how we can create a field read-only using python and XML methods. #odooxml Connect With Us: ———————— ➡️Website: ➡️Email […]