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