[MIG] web_notify: if not target then take self.partner_id

This commit is contained in:
Benoit Aimont
2023-02-28 10:13:34 +01:00
committed by trisdoan
parent 3c35299657
commit 812eb9ac8f

View File

@@ -86,7 +86,7 @@ class ResUsers(models.Model):
_("Sending a notification to another user is forbidden.")
)
if not target:
target = self.env.user.partner_id
target = self.partner_id
bus_message = {
"type": type_message,
"message": message,