[FIX] web: translate apply/cancel daterange widget
There was a missing translation for apply/cancel button in daterangepicker widget. With this change, we provide the odoo translation to the library when initializing the picker. opw-2628117 closes odoo/odoo#78588 X-original-commit: 40f128baba53ce29c2d03b7370e54b5010edb9ef Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
This commit is contained in:
@@ -659,6 +659,7 @@ msgstr ""
|
||||
|
||||
#. module: web
|
||||
#. openerp-web
|
||||
#: code:addons/web/static/src/legacy/js/fields/basic_fields.js:0
|
||||
#: code:addons/web/static/src/search/filter_menu/custom_filter_item.xml:0
|
||||
#: code:addons/web/static/src/search/group_by_menu/custom_group_by_item.xml:0
|
||||
#, python-format
|
||||
@@ -926,6 +927,7 @@ msgstr ""
|
||||
#: code:addons/web/static/src/core/errors/error_dialogs.xml:0
|
||||
#: code:addons/web/static/src/legacy/js/core/dialog.js:0
|
||||
#: code:addons/web/static/src/legacy/js/core/dialog.js:0
|
||||
#: code:addons/web/static/src/legacy/js/fields/basic_fields.js:0
|
||||
#: code:addons/web/static/src/legacy/js/fields/upgrade_fields.js:0
|
||||
#: code:addons/web/static/src/legacy/js/views/calendar/calendar_quick_create.js:0
|
||||
#: code:addons/web/static/src/legacy/js/views/kanban/kanban_column.js:0
|
||||
|
||||
@@ -676,6 +676,8 @@ var FieldDateRange = InputField.extend({
|
||||
autoUpdateInput: false,
|
||||
timePickerIncrement: 5,
|
||||
locale: {
|
||||
applyLabel: _t('Apply'),
|
||||
cancelLabel: _t('Cancel'),
|
||||
format: this.isDateField ? time.getLangDateFormat() : time.getLangDatetimeFormat(),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user