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.

23 lines
574 B

  1. # coding: utf-8
  2. # Copyright 2017 OpenSynergy Indonesia <https://opensynergy-indonesia.com>
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from openerp import models, fields
  5. TWILIO_KEYCHAIN_NAMESPACE = "twilio_provider"
  6. class Keychain(models.Model):
  7. _inherit = "keychain.account"
  8. namespace = fields.Selection(
  9. selection_add=[
  10. (TWILIO_KEYCHAIN_NAMESPACE, "twilio_sms"),
  11. ],
  12. )
  13. def _twilio_provider_init_data(self):
  14. return {}
  15. def _twilio_provider_validate_data(self, data):
  16. return True