diff --git a/addons/web_editor/controllers/bus.py b/addons/web_editor/controllers/bus.py index 67e329119cb..4bff8b037f5 100644 --- a/addons/web_editor/controllers/bus.py +++ b/addons/web_editor/controllers/bus.py @@ -18,8 +18,8 @@ class EditorCollaborationController(BusController): channels = list(channels) for channel in channels: if isinstance(channel, str): - match = re.match(r'editor_collaboration:(\w+(?:.\w+)*):(\w+):([\d]+)', channel) - if (match): + match = re.match(r'editor_collaboration:(\w+(?:\.\w+)*):(\w+):(\d+)', channel) + if match: model_name = match[1] field_name = match[2] res_id = int(match[3])