diff --git a/email_id_validation/README.rst b/email_id_validation/README.rst new file mode 100644 index 000000000..cd8873848 --- /dev/null +++ b/email_id_validation/README.rst @@ -0,0 +1,66 @@ +.. 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 +=========================================== +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/12.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: (V12) 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..8a28dd1a2 --- /dev/null +++ b/email_id_validation/__init__.py @@ -0,0 +1,22 @@ +# -*- 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..7f5abd002 --- /dev/null +++ b/email_id_validation/__manifest__.py @@ -0,0 +1,40 @@ +# -*- 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': '12.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': ['base', 'hr'], + 'external_dependencies': {'python': ['validate_email']}, + '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..4c26ecb7e --- /dev/null +++ b/email_id_validation/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 20.10.2023 +#### Version 12.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..d872e0547 --- /dev/null +++ b/email_id_validation/models/__init__.py @@ -0,0 +1,23 @@ +# -*- 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..7bcd644c8 --- /dev/null +++ b/email_id_validation/models/hr_employee.py @@ -0,0 +1,44 @@ +# -*- 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..7f519c968 --- /dev/null +++ b/email_id_validation/models/res_partner.py @@ -0,0 +1,43 @@ +# -*- 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/order_types_in_pos.png b/email_id_validation/static/description/assets/modules/order_types_in_pos.png new file mode 100644 index 000000000..2554ded45 Binary files /dev/null and b/email_id_validation/static/description/assets/modules/order_types_in_pos.png differ diff --git a/email_id_validation/static/description/assets/modules/pos_combo_products.png b/email_id_validation/static/description/assets/modules/pos_combo_products.png new file mode 100644 index 000000000..98673039e Binary files /dev/null and b/email_id_validation/static/description/assets/modules/pos_combo_products.png differ diff --git a/email_id_validation/static/description/assets/modules/pos_lot_expiry_warning.png b/email_id_validation/static/description/assets/modules/pos_lot_expiry_warning.png new file mode 100644 index 000000000..ed9d045ca Binary files /dev/null and b/email_id_validation/static/description/assets/modules/pos_lot_expiry_warning.png differ diff --git a/email_id_validation/static/description/assets/modules/pos_product_addons.png b/email_id_validation/static/description/assets/modules/pos_product_addons.png new file mode 100644 index 000000000..25d4d79f4 Binary files /dev/null and b/email_id_validation/static/description/assets/modules/pos_product_addons.png differ diff --git a/email_id_validation/static/description/assets/modules/pos_return.jpeg b/email_id_validation/static/description/assets/modules/pos_return.jpeg new file mode 100644 index 000000000..874a6d32a Binary files /dev/null and b/email_id_validation/static/description/assets/modules/pos_return.jpeg differ diff --git a/email_id_validation/static/description/assets/modules/remove_orders.png b/email_id_validation/static/description/assets/modules/remove_orders.png new file mode 100644 index 000000000..8096e2708 Binary files /dev/null and b/email_id_validation/static/description/assets/modules/remove_orders.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..dd965a70a 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..4850bbb58 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..302088340 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/banner.png b/email_id_validation/static/description/banner.png new file mode 100644 index 000000000..58c5701ad 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..991a99c4d 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..f366e6af4 --- /dev/null +++ b/email_id_validation/static/description/index.html @@ -0,0 +1,624 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+
+ +
+
+ +
+
+
+

+ Email Verification for Partner and Employee

+

+ Verify the Email of Partner and Employee is Valid or Not +

+ +
+
+ + + + +
+
+

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

+
+ +
+
+ +
+
+

+ 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