Skip to Content
Menu
This question has been flagged
1497 Views

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. 

Avatar
Discard

can store inside the user record itself ? or in system parameters ?

Author

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.

Related Posts Replies Views Activity
1
Nov 24
1482
1
Nov 24
1187
2
Sep 24
1046
1
Aug 24
2450
3
Aug 24
2683