How to Load Field to PoS in Odoo 14 – CBMS Odoo ERP

If we add a new field in the backend and want them to be displayed in POS, we can use the load_fields method in the ‘PosModel’ initialization function. eg:- var models = require(‘point_of_sale.models’); models.load_fields(‘model’, ‘field_name’); In order to upload the new model to POS, we use load_models(models, options). Load the odoo model when the point […]

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