Skip to content

Commit

Permalink
[11.0] keychain: improve ACL and allow storing ssh keys as password (O…
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Pigeon (ACSONE) authored and pedrobaeza committed Oct 2, 2018
1 parent 72619f3 commit f9d6e82
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion keychain/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Keychain",
"summary": "Store accounts and credentials",
"version": "11.0.2.0.0",
"version": "11.0.3.0.0",
"category": "Uncategorized",
"website": "https://akretion.com/",
"author": "Akretion, Odoo Community Association (OCA)",
Expand Down
4 changes: 2 additions & 2 deletions keychain/models/keychain.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,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")
Expand Down
3 changes: 2 additions & 1 deletion keychain/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f9d6e82

Please sign in to comment.