diff options
| author | Michael Mattiello (mcm) <mcm@odoo.com> | 2020-02-21 09:15:40 +0000 |
|---|---|---|
| committer | Michael Mattiello (mcm) <mcm@odoo.com> | 2020-02-21 11:21:03 +0000 |
| commit | 3ecea2c934063f93e3d9bcabc020ff090abf69b0 (patch) | |
| tree | c440b600dd84e77d33597f23f6aa6743e4eea8c1 /addons/web_tour/static/src | |
| parent | cfabde8386de05e7dbc22e6757e0927531f15ba4 (diff) | |
[FIX] web_tour: listen on date range picker event
When applying the selected date range using the widget the
tip wasn't consumed. This commit fixes it by listening on the
event triggered when clicking on button apply.
closes odoo/odoo#45916
X-original-commit: 150d69f70a505efa298c66119eced29d8caa3699
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'addons/web_tour/static/src')
| -rw-r--r-- | addons/web_tour/static/src/js/tip.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web_tour/static/src/js/tip.js b/addons/web_tour/static/src/js/tip.js index e299df9b538..0247545242e 100644 --- a/addons/web_tour/static/src/js/tip.js +++ b/addons/web_tour/static/src/js/tip.js @@ -312,6 +312,10 @@ Tip.getConsumeEventType = function ($element) { var type = $(this).attr("type"); return !type || !!type.match(/^(email|number|password|search|tel|text|url)$/); })) { + // FieldDateRange triggers a special event when using the widget + if ($element.hasClass("o_field_date_range")) { + return "apply.daterangepicker input"; + } return "input"; } else if ($element.hasClass('ui-draggable-handle')) { return "drag"; |
