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
- Účetnictví
- Sklad
- PoS
- Projekty
- MRP
This question has been flagged
2204
Zobrazení
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit se| Related Posts | Odpovědi | Zobrazení | Aktivita | |
|---|---|---|---|---|
|
|
1
pro 25
|
373 | ||
|
|
3
zář 25
|
3802 | ||
|
|
0
srp 25
|
1211 | ||
|
|
1
srp 25
|
3612 | ||
|
|
2
čvc 25
|
9227 |
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.