summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_renderer.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2018-03-07 09:23:24 +0100
committerAaron Bohy <aab@odoo.com>2018-03-08 12:39:21 +0100
commit3809fc891f5b4794493b6ad4ed4bc4000c9a416e (patch)
treedee43b1c44ffe4e41fd1fe16991f2722a38c9b49 /addons/web/static/src/js/views/basic/basic_renderer.js
parentb4f8ca0a34c9d30a1bbbf4dfced5848d200cb66c (diff)
[FIX] web,mail: always reload widget mail_activity
Before this rev., the field widget 'mail_activity' kept an internal cache of fetched activities (like the 'mail_thread' and 'mail_followers'). However, for activities, this cache may cause issues. For instance, create a new lead in 'My pipeline', schedule a 'Meeting' activity on that lead (it opens the Calendar view so that real meetings can be created), create a meeting 2 weeks from now, go back to the lead form view: the activity still diplays that the meeting is today (when the view is refreshed, the correct date is displayed). This rev. removes the internal cache for this field widget, as the activities can easily be updated in business flows (unlike messages or followers). This rev. also fixes a bug in the BasicModel, where the res_ids of a list datapoint was altered in place to return a list of x2many commands instead of the list of ids when being stringified. This caused a traceback when opening a lead with activities, as soon as the internal cache had been removed.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions