diff --git a/addons/bus/models/bus.py b/addons/bus/models/bus.py index 5f98a77fd8e..874008a6ff9 100644 --- a/addons/bus/models/bus.py +++ b/addons/bus/models/bus.py @@ -123,7 +123,7 @@ class ImDispatch: # it will handle a longpolling request if not odoo.evented: current = threading.current_thread() - current.daemon = True + current._daemonic = True # rename the thread to avoid tests waiting for a longpolling current.name = f"openerp.longpolling.request.{current.ident}"