forked from OCA/connector-telephony
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug OCA#117 CSV import is now working, with the kind help of Sylv…
…ain Garancher (Syleam)
- Loading branch information
1 parent
82bdd8d
commit 35eb076
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
from . import res_company | ||
from . import res_partner | ||
from . import phone_common | ||
from . import ir_fields_converter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |