From 4a188586d7b363b89f56c6c556e28eb6e1cb2ecc Mon Sep 17 00:00:00 2001 From: "dat.vh" Date: Tue, 23 Apr 2019 10:50:08 +0700 Subject: [PATCH] Remove copyright in init + ref code. --- partner_email_check/__init__.py | 3 +-- partner_email_check/__manifest__.py | 6 +++--- partner_email_check/models/__init__.py | 3 +-- partner_email_check/models/res_partner.py | 7 +++---- partner_email_check/tests/__init__.py | 3 +-- partner_email_check/tests/test_partner_email_check.py | 4 ++-- 6 files changed, 11 insertions(+), 15 deletions(-) diff --git a/partner_email_check/__init__.py b/partner_email_check/__init__.py index 08f2caeae..31660d6a9 100644 --- a/partner_email_check/__init__.py +++ b/partner_email_check/__init__.py @@ -1,4 +1,3 @@ -# Copyright 2017 Komit -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from . import models diff --git a/partner_email_check/__manifest__.py b/partner_email_check/__manifest__.py index 17ae6eb4a..b7bf9c00f 100644 --- a/partner_email_check/__manifest__.py +++ b/partner_email_check/__manifest__.py @@ -1,12 +1,12 @@ -# Copyright 2017 Komit -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +# Copyright 2019 Komit +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { 'name': 'Email Format Checker', 'version': '11.0.1.0.0', 'summary': 'Validate email address field', 'author': "Komit, Odoo Community Association (OCA)", - 'website': 'http://komit-consulting.com', + 'website': 'https://github.com/OCA/partner-contact', 'category': 'Tools', 'depends': ['base'], 'installable': True, diff --git a/partner_email_check/models/__init__.py b/partner_email_check/models/__init__.py index 178e231f4..c6cc3b329 100644 --- a/partner_email_check/models/__init__.py +++ b/partner_email_check/models/__init__.py @@ -1,4 +1,3 @@ -# Copyright 2017 Komit -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from . import res_partner diff --git a/partner_email_check/models/res_partner.py b/partner_email_check/models/res_partner.py index 0395ad615..6e47d5c2d 100644 --- a/partner_email_check/models/res_partner.py +++ b/partner_email_check/models/res_partner.py @@ -1,5 +1,5 @@ -# Copyright 2017 Komit -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +# Copyright 2019 Komit +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). import logging from odoo import api, models, _ @@ -31,5 +31,4 @@ class ResPartner(models.Model): def email_check(self, email): if validate_email(email): return True - else: - raise UserError(_('Invalid e-mail!')) + raise UserError(_('Invalid e-mail!')) diff --git a/partner_email_check/tests/__init__.py b/partner_email_check/tests/__init__.py index 2984d6742..5f0137fa7 100644 --- a/partner_email_check/tests/__init__.py +++ b/partner_email_check/tests/__init__.py @@ -1,4 +1,3 @@ -# Copyright 2017 Komit -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from . import test_partner_email_check diff --git a/partner_email_check/tests/test_partner_email_check.py b/partner_email_check/tests/test_partner_email_check.py index ca2293637..5a9cea843 100644 --- a/partner_email_check/tests/test_partner_email_check.py +++ b/partner_email_check/tests/test_partner_email_check.py @@ -1,5 +1,5 @@ -# Copyright 2017 Komit -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +# Copyright 2019 Komit +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo.exceptions import ValidationError from odoo.tests.common import TransactionCase