diff --git a/email_id_validation/README.rst b/email_id_validation/README.rst new file mode 100644 index 000000000..62a4b105a --- /dev/null +++ b/email_id_validation/README.rst @@ -0,0 +1,62 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Email Verification for Partner and Employee +=========================================== +Check whether a given E-mail ID is valid or not in Partner and Employee form. + +Installation +============ + +- www.odoo.com/documentation/14.0/setup/install.html +- Install our custom addon + +Configuration +============= +You must install following packages to work the App properly: +* pip install validate_email +* pip install py3DNS + +NOTE: Since the Plugin performs verification through online you must be connected to the internet while +checking the ID + +Features +======== +* Email address of partners in odoo will remain valid and maintain reliability in address details. +* Invalid email address will not be able to store in email field. + +Company +======== +* `Cybrosys Techno Solutions `__ + +License +======= +GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) +(http://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +======= +* Developer: (V14) RAHUL C K , Contact : odoo@cybrosys.com + +Contacts +======== +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +=========== +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com. + +Further information +=================== +HTML Description: ``__ diff --git a/email_id_validation/__init__.py b/email_id_validation/__init__.py new file mode 100644 index 000000000..d835cf9c5 --- /dev/null +++ b/email_id_validation/__init__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Rahul CK() +# you can modify it under the terms of the GNU AFFERO GENERAL +# PUBLIC LICENSE (AGPL v3), Version 3. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC +# LICENSE (AGPL v3) along with this program. +# If not, see . +# +############################################################################## +from . import models diff --git a/email_id_validation/__manifest__.py b/email_id_validation/__manifest__.py new file mode 100644 index 000000000..c52216dfe --- /dev/null +++ b/email_id_validation/__manifest__.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Rahul CK() +# you can modify it under the terms of the GNU AFFERO GENERAL +# PUBLIC LICENSE (AGPL v3), Version 3. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC +# LICENSE (AGPL v3) along with this program. +# If not, see . +# +############################################################################## +{ + 'name': "Email Verification for Partner and Employee", + 'version': '14.0.1.0.0', + 'category': 'Discuss', + 'summary': """Check Whether A Given E-mail ID Is Valid Or Not""", + 'description': """Check Whether A Given E-mail ID Is Valid Or Not In + Partner And Employee Form""", + 'author': "Cybrosys Techno Solutions", + 'company': "Cybrosys Techno Solutions", + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['hr', 'contacts'], + 'external_dependencies': {'python': ['validate_email', 'py3DNS']}, + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/email_id_validation/doc/RELEASE_NOTES.md b/email_id_validation/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..33dc4541b --- /dev/null +++ b/email_id_validation/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 20.10.2023 +#### Version 14.0.1.0.0 +#### ADD +- Initial commit for Email Verification for Partner and Employee diff --git a/email_id_validation/models/__init__.py b/email_id_validation/models/__init__.py new file mode 100644 index 000000000..177ad1a7e --- /dev/null +++ b/email_id_validation/models/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Rahul CK() +# you can modify it under the terms of the GNU AFFERO GENERAL +# PUBLIC LICENSE (AGPL v3), Version 3. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC +# LICENSE (AGPL v3) along with this program. +# If not, see . +# +############################################################################## +from . import hr_employee +from . import res_partner diff --git a/email_id_validation/models/hr_employee.py b/email_id_validation/models/hr_employee.py new file mode 100644 index 000000000..2000a3558 --- /dev/null +++ b/email_id_validation/models/hr_employee.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Rahul CK() +# you can modify it under the terms of the GNU AFFERO GENERAL +# PUBLIC LICENSE (AGPL v3), Version 3. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC +# LICENSE (AGPL v3) along with this program. +# If not, see . +# +############################################################################## +from validate_email import validate_email +from odoo import api, models, _ +from odoo.exceptions import ValidationError + + +class HrEmployee(models.Model): + """Inherited module to execute a function when work_email + record is saved""" + _inherit = 'hr.employee' + + @api.constrains('work_email') + def _check_work_email(self): + """ + Check the work email is valid or not + """ + if self.work_email: + is_valid = validate_email(self.work_email, check_mx=False, + verify=True, debug=False, + smtp_timeout=10) + if is_valid is not True: + raise ValidationError(_('You can use only valid email address.' + 'Email address "%s" is invalid ' + 'or does not exist.') % self.work_email) diff --git a/email_id_validation/models/res_partner.py b/email_id_validation/models/res_partner.py new file mode 100644 index 000000000..dbf175317 --- /dev/null +++ b/email_id_validation/models/res_partner.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Rahul CK() +# you can modify it under the terms of the GNU AFFERO GENERAL +# PUBLIC LICENSE (AGPL v3), Version 3. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC +# LICENSE (AGPL v3) along with this program. +# If not, see . +# +############################################################################## +from validate_email import validate_email +from odoo import api, models, _ +from odoo.exceptions import ValidationError + + +class ResPartner(models.Model): + """Inherited module to execute a function when partner email + record is saved""" + _inherit = 'res.partner' + + @api.constrains('email') + def _check_email(self): + """ + Check the email is valid or not + """ + if self.email: + is_valid = validate_email(self.email, check_mx=False, verify=True, + debug=False, smtp_timeout=10) + if is_valid is not True: + raise ValidationError(_('You can use only valid email address.' + 'Email address "%s" is invalid ' + 'or does not exist.') % self.email) diff --git a/email_id_validation/static/description/banner.png b/email_id_validation/static/description/banner.png new file mode 100644 index 000000000..6a9f1bd98 Binary files /dev/null and b/email_id_validation/static/description/banner.png differ diff --git a/email_id_validation/static/description/cybro_logo.png b/email_id_validation/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/email_id_validation/static/description/cybro_logo.png differ diff --git a/email_id_validation/static/description/icon.png b/email_id_validation/static/description/icon.png new file mode 100644 index 000000000..b5a68c5cd Binary files /dev/null and b/email_id_validation/static/description/icon.png differ diff --git a/email_id_validation/static/description/images/1.png b/email_id_validation/static/description/images/1.png new file mode 100644 index 000000000..1217263a6 Binary files /dev/null and b/email_id_validation/static/description/images/1.png differ diff --git a/email_id_validation/static/description/images/2.png b/email_id_validation/static/description/images/2.png new file mode 100644 index 000000000..6f604a403 Binary files /dev/null and b/email_id_validation/static/description/images/2.png differ diff --git a/email_id_validation/static/description/images/3.png b/email_id_validation/static/description/images/3.png new file mode 100644 index 000000000..6f28da108 Binary files /dev/null and b/email_id_validation/static/description/images/3.png differ diff --git a/email_id_validation/static/description/images/4.png b/email_id_validation/static/description/images/4.png new file mode 100644 index 000000000..3afc14722 Binary files /dev/null and b/email_id_validation/static/description/images/4.png differ diff --git a/email_id_validation/static/description/images/5.png b/email_id_validation/static/description/images/5.png new file mode 100644 index 000000000..cea66b05f Binary files /dev/null and b/email_id_validation/static/description/images/5.png differ diff --git a/email_id_validation/static/description/images/6.png b/email_id_validation/static/description/images/6.png new file mode 100644 index 000000000..0c9bb377e Binary files /dev/null and b/email_id_validation/static/description/images/6.png differ diff --git a/email_id_validation/static/description/images/checked.png b/email_id_validation/static/description/images/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/email_id_validation/static/description/images/checked.png differ diff --git a/email_id_validation/static/description/images/cybrosys.png b/email_id_validation/static/description/images/cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/email_id_validation/static/description/images/cybrosys.png differ diff --git a/email_id_validation/static/description/images/hero.gif b/email_id_validation/static/description/images/hero.gif new file mode 100644 index 000000000..0b5904bfc Binary files /dev/null and b/email_id_validation/static/description/images/hero.gif differ diff --git a/email_id_validation/static/description/images/image_1.png b/email_id_validation/static/description/images/image_1.png new file mode 100644 index 000000000..b394bfd63 Binary files /dev/null and b/email_id_validation/static/description/images/image_1.png differ diff --git a/email_id_validation/static/description/images/image_2.png b/email_id_validation/static/description/images/image_2.png new file mode 100644 index 000000000..2ba4b8f05 Binary files /dev/null and b/email_id_validation/static/description/images/image_2.png differ diff --git a/email_id_validation/static/description/index.html b/email_id_validation/static/description/index.html new file mode 100644 index 000000000..fc24d77ef --- /dev/null +++ b/email_id_validation/static/description/index.html @@ -0,0 +1,634 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+ +
+
+
+

+ Email Verification for Partner and Employee

+

+ Check whether a given E-mail ID is valid or not in Partner and + Employee form. +

+ +
+
+ + + +
+
+

+ Overview +

+
+ +
+

+ Validate Employee and Partner Email ID

+
+

+ +
+ + +
+
+

+ Features +

+
+ +
+
+

+ Community, Enterprise and Odoo.sh Support

+

+ Available in Odoo 14.0 Community, Enterprise and Odoo.sh.

+
+
+
+
+
+ Validate Employee and customer Email address +

+ Email address of partners in odoo will remain valid and + maintain reliability in address details.

+

+ The validation will be available in partner email as well + as employee work email.

+

+ Error popup will be shown when an invalid email is + detected.

+
+
+ +
+
+

+ Screenshots +

+
+
+

+ Customer Form

+ +
+ +
+

+ Employee Form +

+ +
+ +
+ +
+
+

Suggested Products

+
+ + +
+
+ + + +
+

+ Our Service

+
+ +
+
+
+

+ Our Industries

+
+ +
+
+
+
+ Odoo Industry +
+
+
+

+ + Trading

+

+ Easily procure and sell your products.

+
+
+
+
+
+ Odoo Industry +
+
+
+

+ + Manufacturing

+

+ Plan, track and schedule your operations.

+
+
+
+
+
+ Odoo Industry +
+
+
+

+ + Restaurant

+

+ Run your bar or restaurant methodical.

+
+
+
+
+
+ Odoo Industry +
+
+
+

+ + POS

+

+ Easy configuring and convivial selling.

+
+
+
+
+
+ Odoo Industry +
+
+
+

+ + E-commerce & Website

+

+ Mobile friendly, awe-inspiring product + pages.

+
+
+
+
+
+ Odoo Industry +
+
+
+

+ + Hotel Management

+

+ An all-inclusive hotel management + application.

+
+
+
+
+
+ Odoo Industry +
+
+
+

+ + Education

+

+ A Collaborative platform for educational + management.

+
+
+
+
+
+ Odoo Industry +
+
+
+

+ + Service Management

+

+ Keep track of services and invoice + accordingly.

+
+
+
+
+
+
+
+
+

+ Need Any Help?

+
+

If you have anything to share + with us based on your use of this module, please let us + know. We are ready to offer our support.

+
+

Email us

+

odoo@cybrosys.com

+
+
+

Contact Us

+ www.cybrosys.com +
+
+
+
+
+
+
+
+
+ +
+ + + + + + + + +
+
+
+
+
\ No newline at end of file