diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-02-08 19:19:57 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-02-08 19:19:57 +0100 |
| commit | 728bb2a28ec84514e3fd63a3732822ed34c028a8 (patch) | |
| tree | 84436a2f2e785ed3737f8b3c494dc4b03cf8de49 /addons/web/static/src | |
| parent | 0c42a607ece06b6295ba9d2c71bd8862e4e253ae (diff) | |
| parent | 9553240adc4a29d7b61d63708a53cbb612c0e123 (diff) | |
[MERGE] forward port branch 11.0 up to 9553240adc4
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/views/calendar/calendar_renderer.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/calendar/calendar_renderer.js b/addons/web/static/src/js/views/calendar/calendar_renderer.js index a92951dce9b..aeada42de55 100644 --- a/addons/web/static/src/js/views/calendar/calendar_renderer.js +++ b/addons/web/static/src/js/views/calendar/calendar_renderer.js @@ -359,6 +359,11 @@ return AbstractRenderer.extend({ this.$calendar = this.$(".o_calendar_widget"); + // This seems like a workaround but apparently passing the locale + // in the options is not enough. We should initialize it beforehand + var locale = moment.locale(); + $.fullCalendar.locale(locale); + //Documentation here : http://arshaw.com/fullcalendar/docs/ var fc_options = $.extend({}, this.state.fc_options, { eventDrop: function (event) { @@ -410,6 +415,7 @@ return AbstractRenderer.extend({ }, height: 'parent', unselectAuto: false, + locale: locale, // reset locale when fullcalendar has already been instanciated before now }); this.$calendar.fullCalendar(fc_options); |
