Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2716 Visualizzazioni

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.

Avatar
Abbandona
Risposta migliore

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:


Avatar
Abbandona
Autore Risposta migliore

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.


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
set 24
1730
2
ago 25
3984
1
apr 24
2545
2
ott 23
3812
1
lug 21
6585