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

Inheritance – Traditional Class 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 old class/model, properties, methods and views in the new class/model. This concept is related to Object-Oriented Programming. In Odoo/ERP we extend […]