mirror of https://github.com/OCA/web.git
[MIG] web_notify_channel_message: Migration to 18.0
parent
0208338ae0
commit
12f9bafeda
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue