mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_notify: if not target then take self.partner_id
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user