Skip to content

Commit

Permalink
[FIX] website: seo - fix translation for seo modal
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JKE-be committed Dec 18, 2018
1 parent 8a1f9f0 commit 3cd7c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/website/static/src/js/menu/seo.js
Expand Up @@ -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],
Expand Down

0 comments on commit 3cd7c49

Please sign in to comment.