Browse Source

keychain: add _get_password() method to backend

pull/1168/head
andreparames 7 years ago
parent
commit
c305dc1307
  1. 8
      keychain/models/keychain_backend.py

8
keychain/models/keychain_backend.py

@ -90,3 +90,11 @@ class KeychainBackend(models.AbstractModel):
record.data = account.get_data()
else:
record.data = {}
@api.multi
def _get_password(self):
self.ensure_one()
if self.keychain_account_id:
return self.keychain_account_id._get_password()
else:
return False
Loading…
Cancel
Save