summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2017-07-12 15:43:22 +0200
committerGoffin Simon <sig@odoo.com>2017-07-12 16:12:43 +0200
commit2d54dec94002ce68a868ac82bfe0ae38cd010e6d (patch)
treeabe3ca83f7b42274c3b269ddb6b37b37ab336bf5 /addons/website/static/src
parentf5753886b200fa81c7f055dc6db4452070b8e3c9 (diff)
[FIX] website: Impossibe to open website admin with some languages
When clicking on the app website admin with the arabic language, it raised an error because this.date_from.format('YYYY-MM-DD') in function fetch_data returned an arabic date "٢٠١٧-٠٧-٠٥". opw:751960
Diffstat (limited to 'addons/website/static/src')
-rw-r--r--addons/website/static/src/js/website.backendDashboard.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website/static/src/js/website.backendDashboard.js b/addons/website/static/src/js/website.backendDashboard.js
index 5caad853fcf..18307bba466 100644
--- a/addons/website/static/src/js/website.backendDashboard.js
+++ b/addons/website/static/src/js/website.backendDashboard.js
@@ -54,8 +54,8 @@ var Dashboard = Widget.extend(ControlPanelMixin, {
fetch_data: function() {
var self = this;
return ajax.jsonRpc('/website/fetch_dashboard_data', 'call', {
- 'date_from': this.date_from.format('YYYY-MM-DD'),
- 'date_to': this.date_to.format('YYYY-MM-DD'),
+ 'date_from': this.date_from.year()+'-'+(this.date_from.month()+1)+'-'+this.date_from.date(),
+ 'date_to': this.date_to.year()+'-'+(this.date_to.month()+1)+'-'+this.date_to.date(),
}).done(function(result) {
self.data = result;
self.dashboards_data = result.dashboards;