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",
|
"name": "Web Notify Channel Message",
|
||||||
"summary": """
|
"summary": """
|
||||||
Send an instant notification to channel users when a new message is posted""",
|
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",
|
"license": "AGPL-3",
|
||||||
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
"author": "ForgeFlow, Odoo Community Association (OCA)",
|
||||||
"development_status": "Alpha",
|
"development_status": "Alpha",
|
||||||
|
|
|
@ -11,6 +11,8 @@ class ResUsers(models.Model):
|
||||||
title=None,
|
title=None,
|
||||||
sticky=False,
|
sticky=False,
|
||||||
target=None,
|
target=None,
|
||||||
|
action=None,
|
||||||
|
params=None,
|
||||||
):
|
):
|
||||||
if self.env.context.get("_notify_channel_message", False):
|
if self.env.context.get("_notify_channel_message", False):
|
||||||
return super(ResUsers, self.sudo())._notify_channel(
|
return super(ResUsers, self.sudo())._notify_channel(
|
||||||
|
@ -19,6 +21,8 @@ class ResUsers(models.Model):
|
||||||
title=title,
|
title=title,
|
||||||
sticky=sticky,
|
sticky=sticky,
|
||||||
target=target,
|
target=target,
|
||||||
|
action=action,
|
||||||
|
params=params,
|
||||||
)
|
)
|
||||||
return super()._notify_channel(
|
return super()._notify_channel(
|
||||||
type_message=type_message,
|
type_message=type_message,
|
||||||
|
@ -26,4 +30,6 @@ class ResUsers(models.Model):
|
||||||
title=title,
|
title=title,
|
||||||
sticky=sticky,
|
sticky=sticky,
|
||||||
target=target,
|
target=target,
|
||||||
|
action=action,
|
||||||
|
params=params,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue