-
-
Notifications
You must be signed in to change notification settings - Fork 856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
11.0 mig partner email check #543
Conversation
* Add new module partner-email-check Validate email input
Hey @denislour, thank you for your Pull Request. It looks like some users haven't signed our Contributor License Agreement, yet.
Appreciation of efforts, |
09fe32f
to
17cabff
Compare
17cabff
to
9f2dc25
Compare
@yajo, I included commits from previous branches. |
@@ -0,0 +1,56 @@ | |||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow the guideline: https://raw.githubusercontent.com/OCA/maintainer-tools/master/template/module/README.rst
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor adjustments, LGTM over all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's test this one. Rebuilding for testing
partner_email_check/__manifest__.py
Outdated
'version': '11.0.1.0.0', | ||
'summary': 'Validate email address field', | ||
'author': "Komit, Odoo Community Association (OCA)", | ||
'website': 'http://komit-consulting.com', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change URL as described in https://github.com/OCA/maintainer-tools/blob/master/template/module/__openerp__.py#L9
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also you can remove copyright info on "__init__.py" After some remarks LGTM |
partner_email_check/__init__.py
Outdated
@@ -0,0 +1,4 @@ | |||
# Copyright 2017 Komit <http://komit-consulting.com> | |||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use https: on the license lines of all files.
def email_check(self, email): | ||
if validate_email(email): | ||
return True | ||
else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for the else. If you do not return on the previous line, you can raise an error.
This PR has the |
@denislour Please take up the comments, or answer them. Then I will be able to merge the PR. |
@NL66278 Sr for my delay, I updated this PR. |
Very nice feature to include in Odoo core in v13 @fgi-odoo Like: https://github.com/odoo/odoo/tree/12.0/addons/phone_validation |
Migrate
partner_email_check
to version 11.0 from version 10.0.