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. closes odoo/odoo#140089 Signed-off-by: Fabien Meghazi (fme) <fme@odoo.com>