Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
7254 Переглядів

I need to call some functions in models from js, But as a SUPERUSER like sudo() in the python script. Do any options to call as a superuser? there is an another option like call a custom function and there can execute the original function as superuser and return the result. But I need to know whether that is possible from odoo js file.

Аватар
Відмінити
Найкраща відповідь

No there is no option to call a function as superuser.
Client has session_id and server Http layer interpret it and get a user from it implicitly. so web client only calls a function as a login user.  
even for public user server assigned session_id, it will be useful to track user activity/chat/browsing history.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
черв. 23
1856
1
трав. 23
1805
1
жовт. 22
3916
0
трав. 20
3054
0
трав. 20
2634