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 […]

How to Use Constraint and SQL Constraint? | Model Constraints & SQL Constraints in Odoo 15 – CBMS Odoo ERP

Odoo provided constraints with which we can add validations to Odoo models. Basically, Odoo provides two ways to apply constraints, namely python constraints, and SQL constraints. In this video, we’ll be discussing what are SQL constraints in odoo, how we can apply them to our models, and different methods used in SQL constraints. Video Chapters […]

How to Add SQL Constraints in a Model | Odoo Technical Video – CBMS Odoo ERP

In this video we will discuss how to use sql constrains in odoo. SQL constraints are defined through the model attribute _sql_constraints. The latter is assigned to a list of triples of strings (name, sql_definition, message), where name is a valid SQL constraint name, sql_definition is a table_constraint expression, and message is the error message. […]

Model Constraints – Python Constraints in Odoo – CBMS Odoo ERP

Odoo Python Constraints ( api.constraints ) helps to validate specific fields given as it’s parameters. It will return a message if the data is invalid.api.constraints trigger a python method where the validation conditions are checked. Get the module from our repository: In this videos, you are going to learn odoo python constraints Related videos: Computed […]

Inheritance – Traditional Prototype Inheritance in Odoo 13 – CBMS Odoo ERP

In Odoo/OpenERP we can inherit or use existing modules object/class/model and views. We can also inherit a single field of existing modules. What is Inheritance? Inheritance means we are going to use or inherit the old class/model, properties, methods, and views in the new class/model. This concept is related to Object-Oriented Programming. In Odoo/ERP we […]