How to Count Records Using search_count in Odoo 16 | search_count() method in Odoo 16 – CBMS Odoo ERP

The search_count() method returns the number of records matching the search domain. This method accepts a search domain as its argument.Syntax: Model.search_count(args)? int #odoo16 #odootutorials Eg: self.search_count([(‘product_tmpl_id’, ‘=’, record.product_tmpl_id.id),(‘active’, ‘=’, True), ])This returns the set of records satisfying the domain conditions given as the arguments inside the model. #odoodevelopment #odoo #odoobeginers Connect With Us: ————————————— […]

Model Constraints SQL Constraints in Odoo 16 | _sql_constraints | Odoo 16 Development Tutorial – CBMS Odoo ERP

Odoo helps to set validations to recordsets with the help of python and model constraints. Here this video, it explains how to add SQL constraints to set validations. They usually are of different types like a unique constraint, check, and Not null. #odoo16 #odoodevelopment #odootutorials Connect With Us: ———————- ➡️Website: ➡️Email: info@cybrosys.com ➡️Twitter: ➡️LinkedIn: ➡️Facebook: […]

What Is the Main Difference Between @api.onchange and @api.depends in Odoo 14 | Odoo Custom Module – CBMS Odoo ERP

In this video, we are discussing the difference between @api.onchange and @api.depends in odoo14 #api #decoratorsinodoo #odoo #odoo14 #odootutorials Difference between onchange and depends How to use @api.onchange in odoo How to use @api.depends in odoo #Main #Difference #api.onchange #api.depends #Odoo #Odoo #Custom #Module