跳至內容
選單
此問題已被標幟
2 回覆
1580 瀏覽次數

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.


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
9月 24
917
1
3月 24
1216
1
4月 25
1861
2
10月 23
2521
1
7月 21
5337