diff --git a/email_id_validation/README.rst b/email_id_validation/README.rst new file mode 100644 index 000000000..a329a4e2c --- /dev/null +++ b/email_id_validation/README.rst @@ -0,0 +1,66 @@ +.. image:: https://img.shields.io/badge/licence-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 +=========================================== + +With this plugin, you can validate the E-mail ID entered in Partner/Employee form. This app will help +you to maintain a consistent and reliable address details for your Partner/Employee. + + +Installation +============ + +- www.odoo.com/documentation/13.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.html) + +Credits +======= +* Developer: RAHUL C K @ Cybrosys + +Contacts +-------- +* Mail Contact : odoo@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..5f036a407 --- /dev/null +++ b/email_id_validation/__manifest__.py @@ -0,0 +1,37 @@ +# -*- 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': '13.0.1.0.0', + 'category': 'Discuss', + 'summary': """Check Whether E-mail ID Is Valid for Partner and Employee""", + 'description': """Check Whether E-mail ID Is Valid for Partner and Employee""", + 'author': "Cybrosys Techno Solutions", + 'company': "Cybrosys Techno Solutions", + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'hr'], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'external_dependencies': {'python': ['validate_email', 'py3DNS']}, + '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..408ec2c0d --- /dev/null +++ b/email_id_validation/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 25.07.2023 +#### Version 13.0.1.0.0 +#### ADD +- Initial commit for Email Verification for Partner and Employee \ No newline at end of file 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..6a88a8ff0 --- /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 Only Use 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..a0d907f2c --- /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 Only Use Valid Email Address.' + 'Email Address "%s" Is Invalid ' + 'Or Does Not Exist.') % self.work_email) \ No newline at end of file diff --git a/email_id_validation/static/description/banner.png b/email_id_validation/static/description/banner.png new file mode 100644 index 000000000..c4d6845fc 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..6ff788512 Binary files /dev/null and b/email_id_validation/static/description/icon.png differ diff --git a/email_id_validation/static/description/images/calculator_in_pos.png b/email_id_validation/static/description/images/calculator_in_pos.png new file mode 100644 index 000000000..4c192dc10 Binary files /dev/null and b/email_id_validation/static/description/images/calculator_in_pos.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/custom_gantt_view.png b/email_id_validation/static/description/images/custom_gantt_view.png new file mode 100644 index 000000000..edc204b88 Binary files /dev/null and b/email_id_validation/static/description/images/custom_gantt_view.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/dynamic_partner_fields.png b/email_id_validation/static/description/images/dynamic_partner_fields.png new file mode 100644 index 000000000..bb21eb8d8 Binary files /dev/null and b/email_id_validation/static/description/images/dynamic_partner_fields.png differ diff --git a/email_id_validation/static/description/images/dynamic_product_fields.png b/email_id_validation/static/description/images/dynamic_product_fields.png new file mode 100644 index 000000000..f7c406cfc Binary files /dev/null and b/email_id_validation/static/description/images/dynamic_product_fields.png differ diff --git a/email_id_validation/static/description/images/export_stockinfo_xls.png b/email_id_validation/static/description/images/export_stockinfo_xls.png new file mode 100644 index 000000000..a8dade6e9 Binary files /dev/null and b/email_id_validation/static/description/images/export_stockinfo_xls.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..973c41d8e 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..11f1f8308 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..7a4efdf0e Binary files /dev/null and b/email_id_validation/static/description/images/image_2.png differ diff --git a/email_id_validation/static/description/images/project_custom_gantt.png b/email_id_validation/static/description/images/project_custom_gantt.png new file mode 100644 index 000000000..eba731e73 Binary files /dev/null and b/email_id_validation/static/description/images/project_custom_gantt.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..2747b0a91 --- /dev/null +++ b/email_id_validation/static/description/index.html @@ -0,0 +1,402 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+
+
+
+ +
+
+
+

+ Email Verification for Partner and Employee

+

+ Check Whether E-mail ID Is Valid for Partner and Employee +

+ +
+
+ + + +
+
+

+ Overview +

+
+ +
+

+ Validate Employee and Partner Email ID

+
+

+ +
+ + +
+
+

+ Features +

+
+ +
+
+

+ Community & Enterprise Support

+

+ Available in Odoo 13.0 Community and Enterprise.

+
+
+
+
+
+ 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

+
+ +
+
+
+ +
+
+

Trading

+

Easily procure and sell your products.

+
+
+
+
+ +
+
+

Manufacturing

+

Plan, track and schedule your operations.

+
+
+
+
+ +
+
+

Restaurant

+

Run your bar or restaurant methodical.

+
+
+
+
+ +
+
+

POS

+

Easy configuring and convivial selling.

+
+
+
+
+ +
+
+

E-commerce & Website

+

Mobile friendly, awe-inspiring product pages.

+
+
+
+
+ +
+
+

Hotel Management

+

An all-inclusive hotel management application.

+
+
+
+
+ +
+
+

Education

+

A Collaborative platform for educational management.

+
+
+
+
+ +
+
+

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