event_registration.py 386 B

1234567891011121314
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from odoo import models
  4. class Registration(models.Model):
  5. _inherit = 'event.registration'
  6. def _sms_get_number_fields(self):
  7. """ This method returns the fields to use to find the number to use to
  8. send an SMS on a record. """
  9. return ['mobile', 'phone']