Is there a logging configuration enabling the logging of all SQL queries issued by OpenERP to a file?
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ờ
OpenERP does not provide a mechanism specifically to log SQL queries, but it has a generic logging feature. By adding --log-level=debug_sql
to the command line used to launch OpenERP it will print the normal debugging messages + the sql commands. You can redirect that output to a file if you want.
You could also configure PostgreSQL to log the queries. I would personally prefer that solution if the goal is to optimize the database usage.
my immediate goat is tracing a change, without installing the audit_trail addon. But I left the question generic since there are many cases in which this can be useful.
You can use the new auto-track feature of v7. Check _track
on the object or the track_visibility
attribute on fields. Example on Opportunities; if you change the value of some fields: responsible, expected revenue... it's automatically logged in open chatter (and user can follow some actions)
but where is the _track or track_visibility attibute?how to set them?
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ýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 4 15
|
3756 | ||
|
0
thg 6 25
|
2 | ||
|
1
thg 6 23
|
15240 | ||
|
1
thg 1 22
|
2415 | ||
|
0
thg 11 21
|
2915 |
Do you specifically not want to do this in the database?
good question... It sometimes happen that I have access to the openerp config, but not as easily to the postgresql config (need to file a request to a DBA...), so something on the openerp side is preferred.