summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread_cache/thread_cache.js
diff options
context:
space:
mode:
authorjev-odoo <jev@odoo.com>2020-05-28 13:32:51 +0000
committerjev-odoo <jev@odoo.com>2020-05-29 13:24:42 +0000
commitaf949fc27df9cea6c6228b9e0a209ba6a5988220 (patch)
tree954bbf3c3e77b3b55fba94892ace6c112631a298 /addons/mail/static/src/models/thread_cache/thread_cache.js
parent16fabc82277a5ff77271a17078865d0c7ea4bf70 (diff)
[FIX] stock: correctly apply scheduled_date
Inverse fields are stored in a `set` and `set` is not ordered. It depends on the memory address of its elements which change each time the registry is rebuilt. Inverse `_set_move_ids_without_package` set the .move_lines on the record Inverse `_set_scheduled_date` set the scheduled_date on the move_lines If `_set_scheduled_date` is called first, then the record doesn't contain any move_lines, the scheduled date is ignored and set to default (now) This fix ensures that if a scheduled_date is set, it is applied after `_set_move_ids_without_package`. OPW-2212391 closes odoo/odoo#52173 X-original-commit: 7f59fc89afd403534cc7ab9d06c2c6b458666a03 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_cache/thread_cache.js')
0 files changed, 0 insertions, 0 deletions