From 12f9bafedab2668877ffc9c4f7ad416bb8c1d819 Mon Sep 17 00:00:00 2001 From: JasminSForgeFlow Date: Thu, 19 Dec 2024 10:39:06 +0530 Subject: [PATCH] [MIG] web_notify_channel_message: Migration to 18.0 --- web_notify_channel_message/__manifest__.py | 2 +- web_notify_channel_message/models/res_users.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/web_notify_channel_message/__manifest__.py b/web_notify_channel_message/__manifest__.py index 352638eb4..7eee0e4f2 100644 --- a/web_notify_channel_message/__manifest__.py +++ b/web_notify_channel_message/__manifest__.py @@ -6,7 +6,7 @@ "name": "Web Notify Channel Message", "summary": """ Send an instant notification to channel users when a new message is posted""", - "version": "17.0.1.0.0", + "version": "18.0.1.0.0", "license": "AGPL-3", "author": "ForgeFlow, Odoo Community Association (OCA)", "development_status": "Alpha", diff --git a/web_notify_channel_message/models/res_users.py b/web_notify_channel_message/models/res_users.py index 8b0a794b2..570af514e 100644 --- a/web_notify_channel_message/models/res_users.py +++ b/web_notify_channel_message/models/res_users.py @@ -11,6 +11,8 @@ class ResUsers(models.Model): title=None, sticky=False, target=None, + action=None, + params=None, ): if self.env.context.get("_notify_channel_message", False): return super(ResUsers, self.sudo())._notify_channel( @@ -19,6 +21,8 @@ class ResUsers(models.Model): title=title, sticky=sticky, target=target, + action=action, + params=params, ) return super()._notify_channel( type_message=type_message, @@ -26,4 +30,6 @@ class ResUsers(models.Model): title=title, sticky=sticky, target=target, + action=action, + params=params, )