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
- Contabilitate
- Inventar
- PoS
- Proiect
- MRP
Această întrebare a fost marcată
2200
Vizualizări
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Înscrie-te| Related Posts | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
|
1
dec. 25
|
370 | ||
|
|
3
sept. 25
|
3796 | ||
|
|
0
aug. 25
|
1209 | ||
|
|
1
aug. 25
|
3604 | ||
|
|
2
iul. 25
|
9217 |
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.