summaryrefslogtreecommitdiff
path: root/addons/web/static/src/css
diff options
context:
space:
mode:
authorlen-odoo <len@odoo.com>2018-11-27 15:41:08 +0000
committerlen-odoo <len@odoo.com>2018-11-28 09:11:28 +0000
commitd1490e27774193487df81733fdabf5f3d1f97f55 (patch)
tree508f652d81ae4782c7d3e13342c0ad546740a3e4 /addons/web/static/src/css
parent2e109db01b23077044e89bcffd8802c2f95c291d (diff)
[FIX] mail: do not have _get_message_needaction crash on empty task list
Suppose that a Task is added on a task via a studio customisation. Then the _get_message_needaction method gets called on the onchange of the toplevel task, which triggers another call to _get_message_needaction. During that update, we get a self with a model.newID; its ids field is empty, so the list of tasks res itself is empty. As a result the method crashes on a malformed query. This can in turn prevent the completion of some higher-level operation, e.g. a state change on the task. opw 1909043 closes odoo/odoo#29084
Diffstat (limited to 'addons/web/static/src/css')
0 files changed, 0 insertions, 0 deletions