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

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

0 minutes, 30 seconds Read

In Odoo, making a field required can indeed be done through both Python code and XML views, and differences in how the required attribute behaves depending on whether it’s set in Python or XML.

When you set the required attribute to True in Python code, it indeed makes the field required across all views where it’s used. #odoo17

Conversely,  when  you set required=”1″ in XML views, it makes the field required only in the context of that particular view.
#odootutorials #odoodevelopment

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

#Field #Mandatory #Odoo #Odoo #Development #Tutorial

Similar Posts

Leave a Reply

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