summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorOdoo's Mergebot <xmo+roboto@odoo.com>2019-09-20 17:13:28 +0200
committerGitHub <noreply@github.com>2019-09-20 17:13:28 +0200
commit8901146b911e2e9d56a0cb55529f6ff4567a2211 (patch)
tree4815d0784d4981bc935e172e2082fb0acd9c41e2 /addons/web/static/src/js/fields/basic_fields.js
parentc5fa4771fcec91c06a26d5103126a1373f962f0b (diff)
parentc49bd8dcdb014474f0af78485b8af1a0b9274571 (diff)
[IMP] web: multiple improvements on datepicker
* Changed the default value of datetime to "is between" with "today" as the default value (same day 00:00:00 to 23:59:59). * Changed the style of the "Close" button to match the one on the "primary buttons". * added increments to the minutes in daterange Minutes can now be chosen by increments of 5 instead of 10. Task 2068164 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#36775 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
-rw-r--r--addons/web/static/src/js/fields/basic_fields.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js
index c1d01022c68..a34d024b8e6 100644
--- a/addons/web/static/src/js/fields/basic_fields.js
+++ b/addons/web/static/src/js/fields/basic_fields.js
@@ -588,7 +588,7 @@ var FieldDateRange = InputField.extend({
timePicker: !this.isDateField,
timePicker24Hour: _t.database.parameters.time_format.search('%H') !== -1,
autoUpdateInput: false,
- timePickerIncrement: 10,
+ timePickerIncrement: 5,
locale: {
format: this.isDateField ? time.getLangDateFormat() : time.getLangDatetimeFormat(),
},