Model Constraints & Python Constraints in Odoo15 | api.constrains() | Odoo 15 Development Tutorials – CBMS Odoo ERP

Model Constraints & Python Constraints in Odoo15 | api.constrains() | Odoo 15 Development Tutorials – CBMS Odoo ERP

Odoo helps you to set validations to recordsets with the help of python and model constraints. Mainly there are two ways in which constraints can be set to variants in Odoo. They are python and SQL constraints.
#odoo15developmentvideos

Basically python constraints are set in odoo using the class decorator api.constrains() which takes in the field name as arguments and applies the validation conditions to the fields specified inside the method.
#pythonconstraints

In this video, we’ll be discussing how we can apply such constraints to our odoo models and fields.
#odoo15technicalvideos

#Model #Constraints #Python #Constraints #Odoo15 #api.constrains #Odoo #Development #Tutorials

Similar Posts

Comments

Leave a Reply

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