summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/special_fields.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2017-04-26 16:12:25 +0200
committerGéry Debongnie <ged@odoo.com>2017-04-28 11:32:05 +0200
commit340baef44a66a90b70688e62303ec6f2b85f3d61 (patch)
tree3f9ab0c4b07f58502cb1cdd7ba5d1f6e0dbacfb5 /addons/web/static/src/js/fields/special_fields.js
parente7a11878aa6430261358a3b2a1906398a2d3b852 (diff)
[FIX] web: FieldTimezoneMismatch does not work
The FieldTimezoneMismatch was redone, but an error was done after the last code review. With this commit, we fix the mistake (a function is properly called) and improve the test to make sure we catch such a regression later.
Diffstat (limited to 'addons/web/static/src/js/fields/special_fields.js')
-rw-r--r--addons/web/static/src/js/fields/special_fields.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/special_fields.js b/addons/web/static/src/js/fields/special_fields.js
index 50f5e293eb7..7f4c7378882 100644
--- a/addons/web/static/src/js/fields/special_fields.js
+++ b/addons/web/static/src/js/fields/special_fields.js
@@ -41,7 +41,7 @@ var FieldTimezoneMismatch = FieldSelection.extend({
*/
_render: function () {
this._super.apply(this, arguments);
- this._renderTimezoneMismatch.bind(this);
+ this._renderTimezoneMismatch();
},
/**
* Display the time in the user timezone (reload each second)