From 19276549774023128da681821d6cf088ed34524b Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Thu, 6 Jul 2017 13:19:29 +0200 Subject: [FIX] web_editor: typo locale lost promise 7cb865f There was a lost promise which made website_form loaded before the languages informations (such as date format) was loaded. The server expect the format of the client thus that could lead to wrong or invalid dates. opw-749544 closes #18074 --- addons/web_editor/static/src/js/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web_editor/static/src/js') diff --git a/addons/web_editor/static/src/js/base.js b/addons/web_editor/static/src/js/base.js index e4e2fcd6cad..4368f6de274 100644 --- a/addons/web_editor/static/src/js/base.js +++ b/addons/web_editor/static/src/js/base.js @@ -36,7 +36,7 @@ data.ready = function () { // TODO find a better way to find if we are in the backend or not // We don't load translation if we are in the backend since it's already done by the webclient if (!$(document).find('.o_web_client').length) { - load_translations(); + return load_translations(); } }); } else if(all_ready.state() === "resolved") { // can add async template -- cgit v1.2.3