Skip to Content
Menu
This question has been flagged

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
Discard

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

Related Posts Replies Views Activity
0
Mar 15
3820
2
May 25
5189
0
Jan 18
6164
0
Sep 22
2923
1
Dec 21
3039