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
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
1
Reply
7090
Views
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Jun 23
|
1559 | ||
|
1
May 23
|
1487 | ||
|
1
Oct 22
|
3685 | ||
|
0
May 20
|
2894 | ||
|
0
May 20
|
2494 |