[FIX] Issue #105 switch the user to non language

This commit is contained in:
Chintan Ambaliya 2018-08-30 16:06:31 +05:30
parent 9fc7c5a96b
commit 325caf822e

View File

@ -161,8 +161,9 @@ var UserProfile = Widget.extend({
method: 'search_read',
args: [[["code", "=", session.user_context.lang]], ['name', 'direction']],
}).then(function(lang_data){
if (lang_data.length) {
var img_src = session.url('/web/image', {
model:'res.lang',
model: 'res.lang',
field: 'image',
id: lang_data[0].id,
});
@ -186,6 +187,7 @@ var UserProfile = Widget.extend({
link1.href = '/web/static/lib/rtl/flectra-rtl-custom.css';
head.appendChild(link1);
}
}
});
$avatar.attr('src', avatar_src);
});