summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2017-04-18 14:24:04 +0200
committerChristophe Matthieu <chm@odoo.com>2017-04-19 14:48:06 +0200
commit69ae6e2912aaf6190d9856f04069d725ef5ad5a4 (patch)
tree88b8a00bd5db483912ca6d0faee9e3241daa4914 /addons/web/static/tests/fields/basic_fields_tests.js
parent7ff8aa73e17b281b3e2bc4c7275d020eab0204e7 (diff)
[FIX] web: use correct timezone for date fields
before this commit when toggling allday flag in calendar form view, it was possible to have one day error. The input datetime is wrong when the user don't use the datepicker widget (insert date by keypress instead of click on datepicker) sometimes, the value could be null (crash because try to clone false)
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
-rw-r--r--addons/web/static/tests/fields/basic_fields_tests.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/static/tests/fields/basic_fields_tests.js b/addons/web/static/tests/fields/basic_fields_tests.js
index 7d7aabb5617..1dd84ce3dd4 100644
--- a/addons/web/static/tests/fields/basic_fields_tests.js
+++ b/addons/web/static/tests/fields/basic_fields_tests.js
@@ -1041,7 +1041,10 @@ QUnit.module('basic_fields', {
'</tree>',
translateParameters: { // Avoid issues due to localization formats
date_format: '%m/%d/%Y',
- }
+ },
+ session: {
+ tzOffset: 0
+ },
});
var $cell = list.$('tr.o_data_row td:not(.o_list_record_selector)').first();