From 3cd7c4939616fdd76a543738cc183ff02ad8efe1 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Tue, 18 Dec 2018 10:19:52 +0100 Subject: [PATCH] [FIX] website: seo - fix translation for seo modal Lang / Context is implicitely added in the query using this._rpc Before this commit if you set the title 'Title 1' for your website in the main langage and after edit the title as "Title 2" in another language, it was the main title that was replaced instead of the translation. Now we use this._rpc that bind automatically the context and so the current lang that we are editing. --- addons/website/static/src/js/menu/seo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/static/src/js/menu/seo.js b/addons/website/static/src/js/menu/seo.js index 899d3b8746df5..a0a2d0f6b6036 100644 --- a/addons/website/static/src/js/menu/seo.js +++ b/addons/website/static/src/js/menu/seo.js @@ -764,7 +764,7 @@ var SeoConfigurator = Dialog.extend({ if (!obj) { return $.Deferred().reject(); } else { - return rpc.query({ + return this._rpc({ model: obj.model, method: 'write', args: [[obj.id], data],