Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

Team,

I am implementing a saas like structure for local odoo installation.

Every installation will have a secret KEY and valid across that implementation...
I want to save that KEY at a place in Database where I can access on every user ( Admin, other users with different permissions, etc..) So same key to be valid on all users login.

I am not finding way to use self.env[..] method to save and retrieve this KEY field.

  1. Basically I have written a REGISTER form.. which inputs the KEY from user and here it is to be saved in Database..

  2. On every user login, I am validating this key if valid, I am allowing user to login or reject...


Thus, as per above 2 points,,, I want a proper way to save this field KEY and retreieve when I require..

I am not much comfirtable in using self.env and its very confusing for single field in global configuration....  so appreciate help on the same

Awaiting lines of code to make it work please team..

Thanks in advance..



Awatar
Odrzuć

Try to save it in the General settings or in the ir.config_parameter(system parameter menu?

Powiązane posty Odpowiedzi Widoki Czynność
0
mar 15
3820
2
maj 25
5241
0
sty 18
6165
0
wrz 22
2925
1
gru 21
3043