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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
1
Responder
7236
Vistas
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.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
1
jun 23
|
1837 | ||
|
1
may 23
|
1788 | ||
|
1
oct 22
|
3898 | ||
|
0
may 20
|
3048 | ||
|
0
may 20
|
2613 |