Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
1817 มุมมอง

I need to know if it is possible in Odoo SH for PostgreSQL to log all the queries executed by the database. This is required as we may be audited for any changes made. From what I understand, in PostgreSQL, one can modify the configuration file to enable logging. However, I am unsure if Odoo SH grants sufficient permissions for this configuration.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You can edit the configuration file for every branch on Odoo.sh - not all changes are applied but changes to logging levels are.

Use the SHELL tab on your branch, then find the configuration file at ~/.config/odoo/odoo.conf

A file like this will give you SQL output:


See https://www.odoo.com/documentation/17.0/developer/reference/cli.html#cmdoption-odoo-bin-log-level for an explanation of the different log levels.


Output:


อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Thank you very much for your response. This would provide all the changes entered from Odoo, but in the event that someone makes a query directly from the shell, is there a way to leave a log from Postgres to capture all these changes? This is mainly for auditing purposes.


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 24
1110
1
มี.ค. 24
1584
1
เม.ย. 25
2174
CVE-2023-44487 vulnerability แก้ไขแล้ว
2
ต.ค. 23
2781
1
ก.ค. 21
5578