summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorAdrien Dieudonne <adr@odoo.com>2017-08-22 13:48:15 +0200
committerAdrien Dieudonne <adr@odoo.com>2017-08-22 14:03:12 +0200
commit717b472ef9ad6d2998cbefb4aafe2d1199e6235d (patch)
treeb116ff0b0251814f8b2df3f29590951628c2e5b8 /addons/web/static/src/js
parent0ea1d8c496ccef40953ecaeaadb1c81d27880100 (diff)
[FIX] web: calendar: first day of the week
Before this commit, the calendar view showed Sunday as the first day of the week. Now it depends on the user lang. This is the same behavior that we had before the refactoring of views.
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/views/calendar/calendar_model.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/calendar/calendar_model.js b/addons/web/static/src/js/views/calendar/calendar_model.js
index 5be6b74e1de..c8b9fd574b2 100644
--- a/addons/web/static/src/js/views/calendar/calendar_model.js
+++ b/addons/web/static/src/js/views/calendar/calendar_model.js
@@ -373,6 +373,7 @@ return AbstractModel.extend({
monthNamesShort: moment.monthsShort(),
dayNames: moment.weekdays(),
dayNamesShort: moment.weekdaysShort(),
+ firstDay: moment().startOf('week').isoWeekday(),
};
},
_getRangeDomain: function () {