Browse Source

Fix keychain api change on get_password

pull/158/head
hparfr 7 years ago
parent
commit
1afec33b05
  1. 2
      ovh_sms_client/__manifest__.py
  2. 2
      ovh_sms_client/models/sms_gateway.py

2
ovh_sms_client/__manifest__.py

@ -4,7 +4,7 @@
{ {
'name': 'OVH SMS Client', 'name': 'OVH SMS Client',
'version': '10.0.1.0.0',
'version': '10.0.1.0.1',
'license': 'AGPL-3', 'license': 'AGPL-3',
'depends': ['mail', 'depends': ['mail',
'base_sms_client', 'base_sms_client',

2
ovh_sms_client/models/sms_gateway.py

@ -40,7 +40,7 @@ class SmsSms(models.Model):
params = { params = {
'smsAccount': keychain_data['sms_account'], 'smsAccount': keychain_data['sms_account'],
'login': keychain_account['login'], 'login': keychain_account['login'],
'password': keychain_account.get_password(),
'password': keychain_account._get_password(),
'from': self.gateway_id.from_provider, 'from': self.gateway_id.from_provider,
'url': self.gateway_id.url, 'url': self.gateway_id.url,
'to': self._convert_to_e164(self.mobile), 'to': self._convert_to_e164(self.mobile),

Loading…
Cancel
Save