[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
This commit is contained in:
Jeremy Kersten
2018-12-18 09:22:49 +00:00
parent e1990d267c
commit 7afaf2c277
+1 -1
View File
@@ -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],