summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-05-02 12:39:02 +0000
committerNans Lefebvre <len@odoo.com>2019-05-02 12:39:11 +0000
commit050ad8e189f197ed18670ac73efe0413dd0df751 (patch)
tree7afb132733cf3951d7f7d63d5416d0bbc5c55e83 /addons/web/static/src/js/views/basic/basic_controller.js
parent222ef11adbc048e9540e32b3276846f681258a3d (diff)
[FIX] mail: clean context when running email action
The action_subtask method adds 'default_parent_id' to the context. If the creation or edition of a subtasks triggers an email creation, (e.g. if there is an automated action 'send email') the default 'default_parent_id' is still in the context. Therefore, it tries to create the email with an arbitrary foreign key (since it is an existing record on the project.task model), or crashes. Similar to 816f3861. opw 1978498 closes odoo/odoo#33111 Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions