Count Odoo records
count_recordsCount Odoo records matching a domain filter without transferring record data, enabling quick size checks before queries or updates.
Instructions
Count the records matching a domain (cheap; no data is transferred).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Technical model name, e.g. 'res.partner', 'sale.order', 'account.move'. | |
| domain | No | Odoo domain: a list of [field, operator, value] conditions, optionally combined with '&', '|', '!' in prefix notation. Conditions are AND-ed by default. Example: [["customer_rank", ">", 0], ["country_id.code", "=", "IN"]]. Omit or pass [] to match all records. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||