Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4370 Visualizzazioni

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..



Avatar
Abbandona

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

Post correlati Risposte Visualizzazioni Attività
0
mar 15
3931
2
mag 25
7233
0
gen 18
6388
0
set 22
3140
1
dic 21
3204