mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix mobile
This commit is contained in:
@@ -94,7 +94,7 @@ patch(UserMenu.prototype, {
|
||||
browser.clearTimeout(self.toggleTimer);
|
||||
if (self.user_lang !== lang_code) {
|
||||
const res = await self.orm.call("res.users", "write", [
|
||||
session.uid, {'lang': lang_code}
|
||||
session.user_id[0], {'lang': lang_code}
|
||||
]);
|
||||
location.reload();
|
||||
// 调用 action , 要先定义 self.action = useService("action")
|
||||
|
||||
Reference in New Issue
Block a user