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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hi Rohit,
Maybe _where_calc method can help you. Try to trace the code, put the print statements which will print the query for the domain.
Run Odoo with the startup parameter:
--log-sql
enables DEBUG logging of SQL querying
You can do this either on the command-line or via a Configuration File.
See:
https://www.odoo.com/documentation/11.0/reference/cmdline.html
https://www.odoo.com/documentation/11.0/reference/cmdline.html#configuration-file
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký