In odoo we might occasionally need to separate records according to certain criteria. Certain modules offer this feature; in the list view, for example, the records are coloured differently to indicate their separation. #odoo17development Additionally, the records are shown in various colours according to the situations. Finding and identifying the records from the list based on […]
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. […]