How to Count Records Using search_count in Odoo 16 | search_count() method in Odoo 16
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:
—————————————
➡️ Website: https://www.cybrosys.com/
➡️ Email: info@cybrosys.com
➡️ Twitter: https://twitter.com/cybrosys
➡️ LinkedIn: https://www.linkedin.com/company/cybrosys/
➡️ Facebook: https://www.facebook.com/cybrosystechnologies
➡️ Instagram: https://www.instagram.com/cybrosystech/
➡️ Pinterest: https://pinterest.com/cybrosys/