From 8618f83336e4dd84e2951a2fea8814ac9b1dc3f2 Mon Sep 17 00:00:00 2001 From: RemiFr82 Date: Sun, 26 May 2024 16:37:41 +0200 Subject: [PATCH] [IMP] partner_contact_email2 --- partner_contact_email2/__init__.py | 6 +----- partner_contact_email2/models/__init__.py | 2 +- partner_contact_email2/models/res_partner.py | 5 ++--- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/partner_contact_email2/__init__.py b/partner_contact_email2/__init__.py index 1760fa4..0650744 100644 --- a/partner_contact_email2/__init__.py +++ b/partner_contact_email2/__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_email2/models/__init__.py b/partner_contact_email2/models/__init__.py index 46595e9..91fed54 100644 --- a/partner_contact_email2/models/__init__.py +++ b/partner_contact_email2/models/__init__.py @@ -1 +1 @@ -# from . import model \ No newline at end of file +from . import res_partner diff --git a/partner_contact_email2/models/res_partner.py b/partner_contact_email2/models/res_partner.py index a200bc4..84f26be 100644 --- a/partner_contact_email2/models/res_partner.py +++ b/partner_contact_email2/models/res_partner.py @@ -4,9 +4,8 @@ from odoo import models, fields, api, tools _logger = logging.getLogger(__name__) -class WizardTechnicalName(models.Model): - _name = "wizard.technical.name" - _description = "Wizard Display Name" +class ResPartner(models.Model): + _inherit = "res.partner" email2 = fields.Char("Email 2") email2_formatted = fields.Char(