Saturday, October 28, 2023
1 change · 17.0
New functionality added to Odoo
Odoo can now be configured to use a custom database notification function instead of the default mechanism for bus messages and scheduled job triggers. This gives organizations more control over how these internal notifications are handled, which can support custom security or infrastructure requirements without changing standard behavior by default.
Original PR description
This patch provides the possibility to implement a custom security layer on top of Odoo's imbus notification system and ir_cron live triggering system. The key addition is the `ODOO_NOTIFY_FUNCTION` environment variable (opt-in), which can now define a custom postgresql function to be called instead of the default `pg_notify` function. This allows for greater flexibility and control over the notification and triggering mechanisms within Odoo. This PR is a simplified version of the following one (already merged in previous versions): https://github.com/odoo/odoo/pull/130370 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr