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.

17 lines
563 B

  1. # -*- coding: utf-8 -*-
  2. # © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  4. from odoo import models, api
  5. class IrFieldsConverter(models.AbstractModel):
  6. _inherit = 'ir.fields.converter'
  7. @api.model
  8. def _str_to_phone(self, model, field, value):
  9. return super(IrFieldsConverter, self)._str_to_char(model, field, value)
  10. @api.model
  11. def _str_to_fax(self, model, field, value):
  12. return super(IrFieldsConverter, self)._str_to_char(model, field, value)