Skip to content

Commit

Permalink
Fix bug OCA#117 CSV import is now working, with the kind help of Sylv…
Browse files Browse the repository at this point in the history
…ain Garancher (Syleam)
  • Loading branch information
alexis-via authored and Nikul-OSI committed Feb 12, 2024
1 parent 95f9755 commit d5009a3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions base_phone/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
from . import res_company
from . import res_partner
from . import phone_common
from . import ir_fields_converter
17 changes: 17 additions & 0 deletions base_phone/models/ir_fields_converter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import models, api


class IrFieldsConverter(models.AbstractModel):
_inherit = 'ir.fields.converter'

@api.model
def _str_to_phone(self, model, field, value):
return super(IrFieldsConverter, self)._str_to_char(model, field, value)

@api.model
def _str_to_fax(self, model, field, value):
return super(IrFieldsConverter, self)._str_to_char(model, field, value)

0 comments on commit d5009a3

Please sign in to comment.