I need to store an Api Key that can be updated and is accessed anywhere in odoo not depending of the recordset/model like self.env.user or the timezone. I cannot update the context because it is a frozen dict. If its possible an example would be nice.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
2202
Weergaven
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden| Gerelateerde posts | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
|
|
1
dec. 25
|
372 | ||
|
|
3
sep. 25
|
3799 | ||
|
|
0
aug. 25
|
1210 | ||
|
|
1
aug. 25
|
3611 | ||
|
|
2
jul. 25
|
9219 |
can store inside the user record itself ? or in system parameters ?
No I cannot save it into user, because it can be different users and the same value. System parameters won't do. If I got it from system parameters its the same if I store it in the model for the API. I would like to save it in the context or env so I do not need to fetch it ever time from the model.