You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
586 B

  1. # coding: utf-8
  2. # Copyright (C) 2015 Sébastien BEAU <sebastien.beau@akretion.com>
  3. # Valentin CHEMIERE <valentin.chemiere@akretion.com>
  4. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  5. from odoo import models, fields
  6. OVH_KEYCHAIN_NAMESPACE = 'ovh_provider'
  7. class Keychain(models.Model):
  8. _inherit = 'keychain.account'
  9. namespace = fields.Selection(
  10. selection_add=[(OVH_KEYCHAIN_NAMESPACE, 'Ovh_sms')])
  11. def _ovh_provider_init_data(self):
  12. return {'sms_account': ""}
  13. def _ovh_provider_validate_data(self, data):
  14. return True