Tuesday, November 12, 2024
1 change · saas-17.4
Enhancements to existing features
Odoo can now temporarily skip creating device activity logs for specific sessions, such as support work or system-generated PDF requests. This reduces unnecessary or confusing log entries for users while keeping the opt-out limited to the intended session and time window.
Original PR description
In certain scenarios, we don't want to create logs. For example, the activity of the support staff or the generation of a pdf with wkhtmltopdf will create device logs which are not necessary and which can be annoying for users. To deactivate the generation of device logs for a given session (and for a limited time), the `res.device.log` model offers the option of generating a token which must be placed in the cookies (with the name `no_trace`). Using this cookie with another session does not work. Requests generated directly by the platform could use this mechanism and the support staff would have a way of generating this token in order to use it.