diff --git a/partner_contact_phones2/__init__.py b/partner_contact_phones2/__init__.py index 1760fa4..0650744 100644 --- a/partner_contact_phones2/__init__.py +++ b/partner_contact_phones2/__init__.py @@ -1,5 +1 @@ -# -*- coding: utf-8 -*- -# from . import controllers -# from . import models -# from . import wizards -# from .hooks import pre_init_hook, post_init_hook, uninstall_hook +from . import models diff --git a/partner_contact_phones2/models/__init__.py b/partner_contact_phones2/models/__init__.py index 46595e9..91fed54 100644 --- a/partner_contact_phones2/models/__init__.py +++ b/partner_contact_phones2/models/__init__.py @@ -1 +1 @@ -# from . import model \ No newline at end of file +from . import res_partner diff --git a/partner_contact_phones2/models/res_partner.py b/partner_contact_phones2/models/res_partner.py index 8f7e422..4b1f9a8 100644 --- a/partner_contact_phones2/models/res_partner.py +++ b/partner_contact_phones2/models/res_partner.py @@ -5,7 +5,7 @@ _logger = logging.getLogger(__name__) class ResPartner(models.Model): - _name = "res.partner" + _inherit = "res.partner" phone2 = fields.Char("Phone 2", unaccent=False) mobile2 = fields.Char("Mobile 2", unaccent=False)