diff --git a/gstin_pan_api/README.rst b/gstin_pan_api/README.rst new file mode 100644 index 000000000..b37e03079 --- /dev/null +++ b/gstin_pan_api/README.rst @@ -0,0 +1,41 @@ +GSTIN Search By PAN +=================== +* Search GSTIN information using PAN + +Installation +============ + - www.odoo.com/documentation/15.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/13.0/legal/licenses/licenses.html) + +Company +------- +* 'Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: +(v15) Sreerag E @ 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 +========== +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/gstin_pan_api/__init__.py b/gstin_pan_api/__init__.py new file mode 100644 index 000000000..cb92eb97a --- /dev/null +++ b/gstin_pan_api/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-September Cybrosys Technologies (). +# Author: SREERAG E () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +from . import models +from . import wizards diff --git a/gstin_pan_api/__manifest__.py b/gstin_pan_api/__manifest__.py new file mode 100644 index 000000000..4e57d482d --- /dev/null +++ b/gstin_pan_api/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-September Cybrosys Technologies (). +# Author: SREERAG E () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +{ + 'name': 'GSTIN Search By PAN', + 'version': '15.0.1.0.0', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'maintainer': 'Cybrosys Techno Solutions', + 'category': 'Technical', + 'summary': 'Through PAN Number get the multiples GST Number Details', + 'description': """ + Through PAN Number get the multiples GST Number Details + """, + 'depends': ['base', 'l10n_in', 'gstin_verification_api'], + 'data': [ + 'security/ir.model.access.csv', + 'wizards/pan_config.xml', + 'views/res_partner.xml' + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/gstin_pan_api/doc/RELEASE_NOTES.md b/gstin_pan_api/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..4b45fed40 --- /dev/null +++ b/gstin_pan_api/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 20.09.2022 +#### Version 15.0.1.0.0 +##### ADD +- Initial Commit diff --git a/gstin_pan_api/models/__init__.py b/gstin_pan_api/models/__init__.py new file mode 100644 index 000000000..634e345fd --- /dev/null +++ b/gstin_pan_api/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-September Cybrosys Technologies (). +# Author: SREERAG E () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +from . import res_partner diff --git a/gstin_pan_api/models/res_partner.py b/gstin_pan_api/models/res_partner.py new file mode 100644 index 000000000..6491e2718 --- /dev/null +++ b/gstin_pan_api/models/res_partner.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-September Cybrosys Technologies (). +# Author: SREERAG E () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +import re +from odoo import models, fields, api +from odoo.exceptions import ValidationError + + +class ResPartner(models.Model): + _inherit = 'res.partner' + _description = "Adding the PAN field and GSTIN details" + + pan_response_ids = fields.One2many('pan.response.data', 'res_partner_id', + string='PAN Response') + pan = fields.Char(string="PAN") + + @api.onchange('pan') + def validate_pan(self): + """ + Validating the PAN format + """ + val = str(self.pan) + self.pan = val.upper() + regex = "[A-Z]{5}[0-9]{4}[A-Z]{1}" + pattern = re.compile(regex) + if not ((re.search(pattern, self.pan) and + len(self.pan) == 10)): + raise ValidationError("Invalid PAN format !") + + +class PanResponse(models.Model): + _name = 'pan.response.data' + _description = "For fetching the GSTIN info using PAN" + + res_partner_id = fields.Many2one('res.partner', string="Contact", + readonly=True) + gstin_id = fields.Char(string='GSTIN', readonly=True) + address = fields.Text(string='Address', readonly=True) + sl_no = fields.Integer(readonly=True) diff --git a/gstin_pan_api/security/ir.model.access.csv b/gstin_pan_api/security/ir.model.access.csv new file mode 100644 index 000000000..12c8cdbef --- /dev/null +++ b/gstin_pan_api/security/ir.model.access.csv @@ -0,0 +1,9 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink + +access_pan_api_wizard,access.pan.api.wizard,model_pan_api_wizard,base.group_user,1,1,1,1 +access_pan_response_data,access.pan.response.data,model_pan_response_data,base.group_user,1,1,1,1 + + + + + diff --git a/gstin_pan_api/static/description/assets/icons/check.png b/gstin_pan_api/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/check.png differ diff --git a/gstin_pan_api/static/description/assets/icons/chevron.png b/gstin_pan_api/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/chevron.png differ diff --git a/gstin_pan_api/static/description/assets/icons/cogs.png b/gstin_pan_api/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/cogs.png differ diff --git a/gstin_pan_api/static/description/assets/icons/consultation.png b/gstin_pan_api/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/consultation.png differ diff --git a/gstin_pan_api/static/description/assets/icons/ecom-black.png b/gstin_pan_api/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/ecom-black.png differ diff --git a/gstin_pan_api/static/description/assets/icons/education-black.png b/gstin_pan_api/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/education-black.png differ diff --git a/gstin_pan_api/static/description/assets/icons/hotel-black.png b/gstin_pan_api/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/hotel-black.png differ diff --git a/gstin_pan_api/static/description/assets/icons/license.png b/gstin_pan_api/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/license.png differ diff --git a/gstin_pan_api/static/description/assets/icons/lifebuoy.png b/gstin_pan_api/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/lifebuoy.png differ diff --git a/gstin_pan_api/static/description/assets/icons/logo.png b/gstin_pan_api/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/logo.png differ diff --git a/gstin_pan_api/static/description/assets/icons/manufacturing-black.png b/gstin_pan_api/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/manufacturing-black.png differ diff --git a/gstin_pan_api/static/description/assets/icons/pos-black.png b/gstin_pan_api/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/pos-black.png differ diff --git a/gstin_pan_api/static/description/assets/icons/puzzle.png b/gstin_pan_api/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/puzzle.png differ diff --git a/gstin_pan_api/static/description/assets/icons/restaurant-black.png b/gstin_pan_api/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/restaurant-black.png differ diff --git a/gstin_pan_api/static/description/assets/icons/service-black.png b/gstin_pan_api/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/service-black.png differ diff --git a/gstin_pan_api/static/description/assets/icons/trading-black.png b/gstin_pan_api/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/trading-black.png differ diff --git a/gstin_pan_api/static/description/assets/icons/training.png b/gstin_pan_api/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/training.png differ diff --git a/gstin_pan_api/static/description/assets/icons/update.png b/gstin_pan_api/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/update.png differ diff --git a/gstin_pan_api/static/description/assets/icons/user.png b/gstin_pan_api/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/user.png differ diff --git a/gstin_pan_api/static/description/assets/icons/wrench.png b/gstin_pan_api/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/gstin_pan_api/static/description/assets/icons/wrench.png differ diff --git a/gstin_pan_api/static/description/assets/modules/1.png b/gstin_pan_api/static/description/assets/modules/1.png new file mode 100644 index 000000000..db0acc183 Binary files /dev/null and b/gstin_pan_api/static/description/assets/modules/1.png differ diff --git a/gstin_pan_api/static/description/assets/modules/2.gif b/gstin_pan_api/static/description/assets/modules/2.gif new file mode 100644 index 000000000..2a5f8e659 Binary files /dev/null and b/gstin_pan_api/static/description/assets/modules/2.gif differ diff --git a/gstin_pan_api/static/description/assets/modules/3.png b/gstin_pan_api/static/description/assets/modules/3.png new file mode 100644 index 000000000..3ad04ecfd Binary files /dev/null and b/gstin_pan_api/static/description/assets/modules/3.png differ diff --git a/gstin_pan_api/static/description/assets/modules/4.png b/gstin_pan_api/static/description/assets/modules/4.png new file mode 100644 index 000000000..5238bdeab Binary files /dev/null and b/gstin_pan_api/static/description/assets/modules/4.png differ diff --git a/gstin_pan_api/static/description/assets/modules/5.png b/gstin_pan_api/static/description/assets/modules/5.png new file mode 100644 index 000000000..fb65048fe Binary files /dev/null and b/gstin_pan_api/static/description/assets/modules/5.png differ diff --git a/gstin_pan_api/static/description/assets/modules/6.png b/gstin_pan_api/static/description/assets/modules/6.png new file mode 100644 index 000000000..b58f04eb3 Binary files /dev/null and b/gstin_pan_api/static/description/assets/modules/6.png differ diff --git a/gstin_pan_api/static/description/assets/screenshots/hero.png b/gstin_pan_api/static/description/assets/screenshots/hero.png new file mode 100644 index 000000000..2cfe683bb Binary files /dev/null and b/gstin_pan_api/static/description/assets/screenshots/hero.png differ diff --git a/gstin_pan_api/static/description/assets/screenshots/screenshot-1.png b/gstin_pan_api/static/description/assets/screenshots/screenshot-1.png new file mode 100644 index 000000000..d98f1b119 Binary files /dev/null and b/gstin_pan_api/static/description/assets/screenshots/screenshot-1.png differ diff --git a/gstin_pan_api/static/description/assets/screenshots/screenshot-2.png b/gstin_pan_api/static/description/assets/screenshots/screenshot-2.png new file mode 100644 index 000000000..70222ad6e Binary files /dev/null and b/gstin_pan_api/static/description/assets/screenshots/screenshot-2.png differ diff --git a/gstin_pan_api/static/description/assets/screenshots/screenshot-2.png~ b/gstin_pan_api/static/description/assets/screenshots/screenshot-2.png~ new file mode 100644 index 000000000..e6c9587ba Binary files /dev/null and b/gstin_pan_api/static/description/assets/screenshots/screenshot-2.png~ differ diff --git a/gstin_pan_api/static/description/assets/screenshots/screenshot-3.png b/gstin_pan_api/static/description/assets/screenshots/screenshot-3.png new file mode 100644 index 000000000..c00aa323e Binary files /dev/null and b/gstin_pan_api/static/description/assets/screenshots/screenshot-3.png differ diff --git a/gstin_pan_api/static/description/assets/screenshots/screenshot-4.png b/gstin_pan_api/static/description/assets/screenshots/screenshot-4.png new file mode 100644 index 000000000..8b940f384 Binary files /dev/null and b/gstin_pan_api/static/description/assets/screenshots/screenshot-4.png differ diff --git a/gstin_pan_api/static/description/assets/screenshots/screenshot-5.png b/gstin_pan_api/static/description/assets/screenshots/screenshot-5.png new file mode 100644 index 000000000..5ce883621 Binary files /dev/null and b/gstin_pan_api/static/description/assets/screenshots/screenshot-5.png differ diff --git a/gstin_pan_api/static/description/banner.png b/gstin_pan_api/static/description/banner.png new file mode 100644 index 000000000..e4909878a Binary files /dev/null and b/gstin_pan_api/static/description/banner.png differ diff --git a/gstin_pan_api/static/description/icon.png b/gstin_pan_api/static/description/icon.png new file mode 100644 index 000000000..f94becd8b Binary files /dev/null and b/gstin_pan_api/static/description/icon.png differ diff --git a/gstin_pan_api/static/description/index.html b/gstin_pan_api/static/description/index.html new file mode 100644 index 000000000..a187c5a99 --- /dev/null +++ b/gstin_pan_api/static/description/index.html @@ -0,0 +1,595 @@ + + +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ GSTIN Search by PAN

+

+ Get GST Numbers Details using PAN Number +

+ +
+
+ + + +
+
+

+ Overview +

+
+ +
+

+ Service Provider : Masters India IT Solutions Private Limited

+ 1. This module uses the GSTIN Search by PAN API provided by https://www.mastersindia.co/ for fetching the GSTIN information using PAN
+ 2. This is a Paid API Service. Need to Purchase the Service from the Provider to get the 'Client ID' and 'Client Secret'.
+ 3. You can avail their service from this link https://www.mastersindia.co/gst-number-verification-api-bulk-utility/ +

+
+
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Search GST Numbers with address using PAN

+
+
+ +
+
+ +
+
+

+ Enterprise and Community compatible

+
+
+ +
+
+ +
+
+

+ PAN field on the Customer form

+
+
+ + +
+ +
+
+

+ Screenshots +

+
+
+

+ Field for storing PAN

+

+ A field for storing the PAN added in the partner form. This can be useful while fetching the + multiple GSTIN information of the partner using the "Verify PAN" button.

+ +
+ +
+

+ Validate PAN

+

+ PAN format validation has added so that we can avoid invalid requests to API +

+ +
+ +
+

+ PAN number is automatically populated in the popup, it can be edited before requesting the API +

+ +
+ +
+

+ Successful Notification

+

+ A notification is raised when the request is successful +

+ +
+ +
+

+ GSTIN Data

+

+ Fetched GSTIN information are displayed under "GSTIN Data" tab. +

+ +
+ +
+ +
+
+

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?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
diff --git a/gstin_pan_api/views/res_partner.xml b/gstin_pan_api/views/res_partner.xml new file mode 100644 index 000000000..dad180c4b --- /dev/null +++ b/gstin_pan_api/views/res_partner.xml @@ -0,0 +1,37 @@ + + + + GSTIN PAN API + res.partner + + + +