diff --git a/keychain/models/keychain.py b/keychain/models/keychain.py index e0f78717e..c03a1fb36 100644 --- a/keychain/models/keychain.py +++ b/keychain/models/keychain.py @@ -48,12 +48,12 @@ class KeychainAccount(models.Model): help="'prod', 'dev', etc. or empty (for all)" ) login = fields.Char(help="Login") - clear_password = fields.Char( + clear_password = fields.Text( help="Password. Leave empty if no changes", inverse='_inverse_set_password', compute='_compute_password', store=False) - password = fields.Char( + password = fields.Text( help="Password is derived from clear_password", readonly=True) data = fields.Text(help="Additionnal data as json") diff --git a/keychain/security/ir.model.access.csv b/keychain/security/ir.model.access.csv index 5b3de013f..ec8115e4f 100644 --- a/keychain/security/ir.model.access.csv +++ b/keychain/security/ir.model.access.csv @@ -1,2 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_keychain_account,access_keychain_account,model_keychain_account,,0,0,0,0 +access_keychain_account,access_keychain_account,model_keychain_account,,1,0,0,0 +access_keychain_account_admin,access_keychain_account_admin,model_keychain_account,base.group_system,1,1,1,1