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

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.

#Odoo #Odoo14 #OdooTechnical #Odoo14Technical

#Add #SQL #Constraints #Model #Odoo #Technical #Video

Similar Posts

Leave a Reply

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