diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-12-18 11:50:59 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-12-24 12:59:46 +0100 |
| commit | d8605b7993d3073e976bba0bba1e61a3f54510f1 (patch) | |
| tree | d3e063a7add58ed64eaa7f31edae07056ce75f14 /addons/web/static/src/xml/base.xml | |
| parent | 4be1a8cc7df7a04a7db60fba2038921067b791d8 (diff) | |
[FIX] im_livechat: matching rule in cache
The problem was that the matching rule was evaluated before sending the html
page, and the script was inserted in the page according to the matching rule
(it wasn't inserted if the rule was 'hide_button'). However, the matching rule
wasn't re-evaluated if the page was already in the cache. The page content thus
might depend on a matching rule computed for someone else in that case.
Rather than inserting the script according to the matching rule, we insert it
only if there is an operator available. We then ask for the matching rule in
the livechat widget, by RPC, and we reject its willStart deferred if the rule
says so. We also re-check for operator availability in the same RPC.
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions
