diff --git a/email_id_validation/README.rst b/email_id_validation/README.rst new file mode 100644 index 000000000..04d441d12 --- /dev/null +++ b/email_id_validation/README.rst @@ -0,0 +1,58 @@ +.. 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 Validation 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/15.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) + +Bug Tracker +=========== +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Credits +======= +* Developer: RAHUL C K @ Cybrosys, Contact : odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +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. 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..a5e2dca20 --- /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 Validation for Partner and Employee", + '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""", + 'version': '15.0.1.0.0', + 'author': "Cybrosys Techno Solutions", + 'company': "Cybrosys Techno Solutions", + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'category': 'Discuss', + 'depends': ['base', 'hr', 'contacts'], + '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..dcbe2d37b --- /dev/null +++ b/email_id_validation/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 25.07.2023 +#### Version 15.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/assets/icons/check.png b/email_id_validation/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/email_id_validation/static/description/assets/icons/check.png differ diff --git a/email_id_validation/static/description/assets/icons/chevron.png b/email_id_validation/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/email_id_validation/static/description/assets/icons/chevron.png differ diff --git a/email_id_validation/static/description/assets/icons/cogs.png b/email_id_validation/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/email_id_validation/static/description/assets/icons/cogs.png differ diff --git a/email_id_validation/static/description/assets/icons/consultation.png b/email_id_validation/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/email_id_validation/static/description/assets/icons/consultation.png differ diff --git a/email_id_validation/static/description/assets/icons/ecom-black.png b/email_id_validation/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/email_id_validation/static/description/assets/icons/ecom-black.png differ diff --git a/email_id_validation/static/description/assets/icons/education-black.png b/email_id_validation/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/email_id_validation/static/description/assets/icons/education-black.png differ diff --git a/email_id_validation/static/description/assets/icons/hotel-black.png b/email_id_validation/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/email_id_validation/static/description/assets/icons/hotel-black.png differ diff --git a/email_id_validation/static/description/assets/icons/license.png b/email_id_validation/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/email_id_validation/static/description/assets/icons/license.png differ diff --git a/email_id_validation/static/description/assets/icons/lifebuoy.png b/email_id_validation/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/email_id_validation/static/description/assets/icons/lifebuoy.png differ diff --git a/email_id_validation/static/description/assets/icons/logo.png b/email_id_validation/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/email_id_validation/static/description/assets/icons/logo.png differ diff --git a/email_id_validation/static/description/assets/icons/manufacturing-black.png b/email_id_validation/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/email_id_validation/static/description/assets/icons/manufacturing-black.png differ diff --git a/email_id_validation/static/description/assets/icons/pos-black.png b/email_id_validation/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/email_id_validation/static/description/assets/icons/pos-black.png differ diff --git a/email_id_validation/static/description/assets/icons/puzzle.png b/email_id_validation/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/email_id_validation/static/description/assets/icons/puzzle.png differ diff --git a/email_id_validation/static/description/assets/icons/restaurant-black.png b/email_id_validation/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/email_id_validation/static/description/assets/icons/restaurant-black.png differ diff --git a/email_id_validation/static/description/assets/icons/service-black.png b/email_id_validation/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/email_id_validation/static/description/assets/icons/service-black.png differ diff --git a/email_id_validation/static/description/assets/icons/trading-black.png b/email_id_validation/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/email_id_validation/static/description/assets/icons/trading-black.png differ diff --git a/email_id_validation/static/description/assets/icons/training.png b/email_id_validation/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/email_id_validation/static/description/assets/icons/training.png differ diff --git a/email_id_validation/static/description/assets/icons/update.png b/email_id_validation/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/email_id_validation/static/description/assets/icons/update.png differ diff --git a/email_id_validation/static/description/assets/icons/user.png b/email_id_validation/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/email_id_validation/static/description/assets/icons/user.png differ diff --git a/email_id_validation/static/description/assets/icons/wrench.png b/email_id_validation/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/email_id_validation/static/description/assets/icons/wrench.png differ diff --git a/email_id_validation/static/description/assets/modules/budget_image.png b/email_id_validation/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..b50130c7d Binary files /dev/null and b/email_id_validation/static/description/assets/modules/budget_image.png differ diff --git a/email_id_validation/static/description/assets/modules/credit_image.png b/email_id_validation/static/description/assets/modules/credit_image.png new file mode 100644 index 000000000..3ad04ecfd Binary files /dev/null and b/email_id_validation/static/description/assets/modules/credit_image.png differ diff --git a/email_id_validation/static/description/assets/modules/employee_image.png b/email_id_validation/static/description/assets/modules/employee_image.png new file mode 100644 index 000000000..30ad58232 Binary files /dev/null and b/email_id_validation/static/description/assets/modules/employee_image.png differ diff --git a/email_id_validation/static/description/assets/modules/export_image.png b/email_id_validation/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..492980ad0 Binary files /dev/null and b/email_id_validation/static/description/assets/modules/export_image.png differ diff --git a/email_id_validation/static/description/assets/modules/gantt_image.png b/email_id_validation/static/description/assets/modules/gantt_image.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/email_id_validation/static/description/assets/modules/gantt_image.png differ diff --git a/email_id_validation/static/description/assets/modules/quotation_image.png b/email_id_validation/static/description/assets/modules/quotation_image.png new file mode 100644 index 000000000..499b1a72f Binary files /dev/null and b/email_id_validation/static/description/assets/modules/quotation_image.png differ diff --git a/email_id_validation/static/description/assets/screenshots/hero.gif b/email_id_validation/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..c90f3e6ea Binary files /dev/null and b/email_id_validation/static/description/assets/screenshots/hero.gif differ diff --git a/email_id_validation/static/description/assets/screenshots/image_1.png b/email_id_validation/static/description/assets/screenshots/image_1.png new file mode 100644 index 000000000..3a8689d75 Binary files /dev/null and b/email_id_validation/static/description/assets/screenshots/image_1.png differ diff --git a/email_id_validation/static/description/assets/screenshots/image_2.png b/email_id_validation/static/description/assets/screenshots/image_2.png new file mode 100644 index 000000000..6e64c984d Binary files /dev/null and b/email_id_validation/static/description/assets/screenshots/image_2.png differ diff --git a/email_id_validation/static/description/assets/screenshots/image_3.png b/email_id_validation/static/description/assets/screenshots/image_3.png new file mode 100644 index 000000000..e01ad6f33 Binary files /dev/null and b/email_id_validation/static/description/assets/screenshots/image_3.png differ diff --git a/email_id_validation/static/description/banner.png b/email_id_validation/static/description/banner.png new file mode 100644 index 000000000..1272619b1 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..984303ee0 Binary files /dev/null and b/email_id_validation/static/description/icon.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..2c4133473 --- /dev/null +++ b/email_id_validation/static/description/index.html @@ -0,0 +1,597 @@ + +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+
+
+
+ +
+
+
+

+ Email Validation for Partner and Employee

+

+ Maintain Valid Email Address for Partner and Employee +

+ +
+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ This module assists in maintaining valid email address of contacts in odoo. +

+ +
+
+ +
+
+

+ Configuration +

+
+ +
+

+ You must install following packages to work the App properly: +

+

+ - pip install validate_email
+ - pip install py3DNS +

+ +
+
+ +
+
+

+ Features +

+
+ +
+
+

+ Community & Enterprise Support

+

+ Available in Odoo 15.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

+ +
Since the Plugin performs verification through online you must be connected to the internet while + checking the ID
+
+ +
+ + + +
+
+

Suggested Products

+
+ + +
+
+ + + +
+
+
+

Our Services

+
+
+ +
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + + +
+
+
+

Our Industries

+
+
+ +
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+ +
+
+ + + + + +
+
+
+

Need Help?

+
+
+
+ + +
+ +
+ +
+ +
+ WhatsApp +
+
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file