How to get the count of records based on a certain criteria.If i need to get the number of recordsets having particular value in its field.
example-If i need to get number of records having a particular name in its name field.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How to get the count of records based on a certain criteria.If i need to get the number of recordsets having particular value in its field.
example-If i need to get number of records having a particular name in its name field.
Hi,
To get the number of records satisfying the given criteria you can the search_count.
total_len = self.env['model_name'].search_count([('document_type', '=', 'entry')])
Thanks
Thanks
Good !!
Is this possible for qweb view?
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
RekisteröidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
How to install odoo 10 in ubuntu 20.04?
Ratkaistu
|
|
1
syysk. 23
|
2726 | |
|
3
toukok. 23
|
5381 | ||
|
7
huhtik. 23
|
48664 | ||
Barcode scanner from mobile
Ratkaistu
|
|
1
jouluk. 22
|
7561 | |
How to set a domain for a field in XML?
Ratkaistu
|
|
4
jouluk. 23
|
26224 |