From 7afaf2c277bddb7338f59c87c838799e2c619d12 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Tue, 18 Dec 2018 09:19:52 +0000 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. closes odoo/odoo#29596 --- 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 899d3b8746d..a0a2d0f6b60 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],