summaryrefslogtreecommitdiff
path: root/addons/project/models
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2021-04-21 11:57:13 +0000
committerThibault Delavallée <tde@odoo.com>2021-04-23 08:00:43 +0000
commit206685760abbc725765a1f4a5002c2a90abc0af8 (patch)
tree38a8785fcbbb6f1e904b4b6a50b4de7e691b6fe0 /addons/project/models
parent681eb75aeab02b9f904f85a3c60abd7c4a3c5269 (diff)
[FW][FIX] mail, various: fix document access link computation
Purpose of this commit is to fix computation of access link. In some cases msg_vals modification leads to invalid URL computation, notably for frontend or backend differentiation for target recipients. Followup of odoo/odoo#63292 . Task ID-2513724 COM PR odoo/odoo#69607 ENT PR odoo/enterprise#17849 X-Original-Commit: odoo/odoo@2015ef463c9ac7c7f89d543745c02a2d1528acf2
Diffstat (limited to 'addons/project/models')
-rw-r--r--addons/project/models/project.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/project/models/project.py b/addons/project/models/project.py
index 8801fd6586d..d55d6b0278c 100644
--- a/addons/project/models/project.py
+++ b/addons/project/models/project.py
@@ -1215,7 +1215,7 @@ class Task(models.Model):
access button to portal users and portal customers. If they are notified
they should probably have access to the document. """
groups = super(Task, self)._notify_get_groups(msg_vals=msg_vals)
- msg_vals = msg_vals or {}
+ local_msg_vals = dict(msg_vals or {})
self.ensure_one()
project_user_group_id = self.env.ref('project.group_project_user').id
@@ -1227,7 +1227,7 @@ class Task(models.Model):
new_group = ('group_project_user', group_func, {})
if not self.user_id and not self.stage_id.fold:
- take_action = self._notify_get_action_link('assign', **msg_vals)
+ take_action = self._notify_get_action_link('assign', **local_msg_vals)
project_actions = [{'url': take_action, 'title': _('I take it')}]
new_group[2]['actions'] = project_actions