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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- 项目
- MRP
此问题已终结
1
回复
7892
查看
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.
| 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|
|
1
6月 23
|
2854 | ||
|
|
1
5月 23
|
2812 | ||
|
|
1
10月 22
|
5001 | ||
|
|
0
5月 20
|
3844 | ||
|
|
0
5月 20
|
3274 |