In an instance with a large number of res.company (100+), if I connect to the admin account with the xml rpc api I won't be able to see all the sale.order as all the companies are not added in the company_ids field of the admin user. I could add all the companies to the admin user, but is there a different way to access all the sale.order records with the xml-rpc api?
I tried connecting as the root user, but I suppose there is some security in place that prevent that.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
1939
Vues
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
2
nov. 19
|
4233 | ||
|
9
nov. 22
|
10475 | ||
|
0
sept. 24
|
1551 | ||
|
2
juil. 25
|
1546 | ||
|
3
juil. 25
|
1991 |
could you share what are you exactly doing?
I'm just trying to do a count on the sale orders through the external API for something like 40+ odoo instances. Since no user has all the companies as allowed companies I can't see them with a simple read through xml-rpc. My current working solution is to connect as the admin, do a read on all the companies and do a write to add them on the company_ids field of the admin. Then I can do search_count that return the correct values.
I'm just wondering if there is more efficient solutions that don't force me to rewrite on the admin user each time.