How to Count Records Using Search Count in Odoo 15 | Odoo 15 Development Tutorials – CBMS Odoo ERP

How to Count Records Using Search Count in Odoo 15 | Odoo 15 Development Tutorials – CBMS Odoo ERP

1
0 minutes, 32 seconds Read

The search_count() method returns the number of records matching the search domain. This method accepts a search domain as its arguments.
#odootechnicaltutorial

Video Contents
————————-
00:15 Introduction
00:16 search_count function use case
00:36 using search_count function to show the number of records

Syntax: Model.search_count(args) ? int
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.
#odoo15developmentvideos #odoo15videos

Connect With Us:

➡️Website:
➡️Email : info@cybrosys.com
➡️Twitter:
➡️LinkedIn:
➡️Facebook:
➡️Instagram:
➡️Pinterest:

#Count #Records #Search #Count #Odoo #Odoo #Development #Tutorials

Similar Posts

Comments

Leave a Reply

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