Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
models.execute_kw(db, uid, password, 'res.partner', 'search', [[['is_company', '=', True], ['customer', '=', True]]])
when these type of external command runs, a postgres command also runs behind then scene which evaluate the result.
I want to know what command run in postgres when a odoo api function runs.
Run Odoo with the startup parameter:
enables DEBUG logging of SQL querying
You can do this either on the command-line or via a Configuration File.