diff --git a/import_images_from_zip_file/README.rst b/import_images_from_zip_file/README.rst new file mode 100644 index 000000000..1f1745861 --- /dev/null +++ b/import_images_from_zip_file/README.rst @@ -0,0 +1,41 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-green.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Import Images From Zip File +=========================== +* This module is used to import images from zip file on the basis of various parameters + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.odoo.com/documentation/user/15.0/legal/licenses/licenses.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: (V17) Mruthul Raj, Contact: odoo@cybrosys.com + +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 `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/import_images_from_zip_file/__init__.py b/import_images_from_zip_file/__init__.py new file mode 100644 index 000000000..7c388d7ed --- /dev/null +++ b/import_images_from_zip_file/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Mruthul Raj @cybrosys(odoo@cybrosys.com) +# +# 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 +from . import wizard diff --git a/import_images_from_zip_file/__manifest__.py b/import_images_from_zip_file/__manifest__.py new file mode 100644 index 000000000..4cf5dc7a5 --- /dev/null +++ b/import_images_from_zip_file/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Mruthul Raj @cybrosys(odoo@cybrosys.com) +# +# 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': "Import Images From Zip File", + 'version': '17.0.1.0.0', + 'category': 'Extra Tools', + 'summary': """Used to Import Images""", + 'description': """This module allows to import images from zip file on the basis of + various parameters""", + 'author': "Cybrosys Techno Solutions", + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['sale_management', 'contacts', 'hr'], + 'data': [ + 'security/ir.model.access.csv', + 'views/product_template_views.xml', + 'views/product_product_views.xml', + 'views/res_partner_views.xml', + 'views/hr_employee_views.xml', + 'wizard/import_image.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/import_images_from_zip_file/doc/RELEASE_NOTES.md b/import_images_from_zip_file/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..5e32fb50a --- /dev/null +++ b/import_images_from_zip_file/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 31.05.2025 +#### Version 17.0.1.0.0 +#### ADD +- Initial commit for Import Images From Zip File diff --git a/import_images_from_zip_file/models/__init__.py b/import_images_from_zip_file/models/__init__.py new file mode 100644 index 000000000..2a190bfe5 --- /dev/null +++ b/import_images_from_zip_file/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Mruthul Raj @cybrosys(odoo@cybrosys.com) +# +# 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 product_product +from . import product_template +from . import res_partner diff --git a/import_images_from_zip_file/models/hr_employee.py b/import_images_from_zip_file/models/hr_employee.py new file mode 100644 index 000000000..b9aca07d6 --- /dev/null +++ b/import_images_from_zip_file/models/hr_employee.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Mruthul Raj @cybrosys(odoo@cybrosys.com) +# +# 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 odoo import models, _ + + +class HrEmployee(models.Model): + """This class extends the 'hr.employee' model to add functionality for + importing images via a wizard.""" + _inherit = 'hr.employee' + + def action_open_import_image_wizard(self): + """Opens the 'Import Image' wizard form view.""" + return { + 'type': 'ir.actions.act_window', + 'name': _('Import Image'), + 'res_model': 'import.image', + 'views': [[False, 'form']], + 'target': 'new', + 'context': { + 'default_parent_model': self._name, + 'default_model_template': self._name, + 'parent_model': self._name, + } + } diff --git a/import_images_from_zip_file/models/product_product.py b/import_images_from_zip_file/models/product_product.py new file mode 100644 index 000000000..e07863952 --- /dev/null +++ b/import_images_from_zip_file/models/product_product.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Mruthul Raj @cybrosys(odoo@cybrosys.com) +# +# 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 odoo import models, _ + + +class ProductProduct(models.Model): + """This class extends the 'product.product' model to add functionality + for importing images via a wizard.""" + _inherit = 'product.product' + + def action_open_import_image_wizard(self): + """Opens the 'Import Image' wizard form view.""" + return { + 'type': 'ir.actions.act_window', + 'name': _('Import Image'), + 'res_model': 'import.image', + 'views': [[False, 'form']], + 'target': 'new', + 'context': { + 'default_parent_model': self._name, + 'default_model_template': self._name, + 'parent_model': self._name, + } + } diff --git a/import_images_from_zip_file/models/product_template.py b/import_images_from_zip_file/models/product_template.py new file mode 100644 index 000000000..d5f45afa1 --- /dev/null +++ b/import_images_from_zip_file/models/product_template.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Mruthul Raj @cybrosys(odoo@cybrosys.com) +# +# 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 odoo import models, _ + + +class ProductTemplate(models.Model): + """This class extends the 'product.template' model to add functionality + for importing images via a wizard.""" + _inherit = 'product.template' + + def action_open_import_image_wizard(self): + """Opens the 'Import Image' wizard form view.""" + return { + 'type': 'ir.actions.act_window', + 'name': _('Import Image'), + 'res_model': 'import.image', + 'views': [[False, 'form']], + 'target': 'new', + 'context': { + 'default_parent_model': self._name, + 'default_model_template': self._name, + 'parent_model': self._name, + } + } diff --git a/import_images_from_zip_file/models/res_partner.py b/import_images_from_zip_file/models/res_partner.py new file mode 100644 index 000000000..aae1604ee --- /dev/null +++ b/import_images_from_zip_file/models/res_partner.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Mruthul Raj @cybrosys(odoo@cybrosys.com) +# +# 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 odoo import models, _ + + +class ResPartner(models.Model): + """This class extends the 'res.partner' model to add functionality + for importing images via a wizard.""" + _inherit = 'res.partner' + + def action_open_import_image_wizard(self): + """Opens the 'Import Image' wizard form view.""" + return { + 'type': 'ir.actions.act_window', + 'name': _('Import Image'), + 'res_model': 'import.image', + 'views': [[False, 'form']], + 'target': 'new', + 'context': { + 'default_parent_model': self._name, + 'default_model_template': self._name, + 'parent_model': self._name, + } + } diff --git a/import_images_from_zip_file/security/ir.model.access.csv b/import_images_from_zip_file/security/ir.model.access.csv new file mode 100644 index 000000000..8dc661314 --- /dev/null +++ b/import_images_from_zip_file/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_import_images_from_zip_file_users,access.import.images.from.zip.file,model_import_image,base.group_user,1,1,1,1 diff --git a/import_images_from_zip_file/static/description/assets/icons/capture (1).png b/import_images_from_zip_file/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/capture (1).png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/check.png b/import_images_from_zip_file/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/check.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/chevron.png b/import_images_from_zip_file/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/chevron.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/cogs.png b/import_images_from_zip_file/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/cogs.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/consultation.png b/import_images_from_zip_file/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/consultation.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/ecom-black.png b/import_images_from_zip_file/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/ecom-black.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/education-black.png b/import_images_from_zip_file/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/education-black.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/hotel-black.png b/import_images_from_zip_file/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/hotel-black.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/img.png b/import_images_from_zip_file/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/img.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/license.png b/import_images_from_zip_file/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/license.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/lifebuoy.png b/import_images_from_zip_file/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/lifebuoy.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/logo.png b/import_images_from_zip_file/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/logo.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/manufacturing-black.png b/import_images_from_zip_file/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/manufacturing-black.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/photo-capture.png b/import_images_from_zip_file/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/photo-capture.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/pos-black.png b/import_images_from_zip_file/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/pos-black.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/puzzle.png b/import_images_from_zip_file/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/puzzle.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/restaurant-black.png b/import_images_from_zip_file/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/restaurant-black.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/service-black.png b/import_images_from_zip_file/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/service-black.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/trading-black.png b/import_images_from_zip_file/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/trading-black.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/training.png b/import_images_from_zip_file/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/training.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/update.png b/import_images_from_zip_file/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/update.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/user.png b/import_images_from_zip_file/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/user.png differ diff --git a/import_images_from_zip_file/static/description/assets/icons/wrench.png b/import_images_from_zip_file/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/icons/wrench.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/Cybrosys R.png b/import_images_from_zip_file/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/misc/Cybrosys R.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/categories.png b/import_images_from_zip_file/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/misc/categories.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/check-box.png b/import_images_from_zip_file/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/misc/check-box.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/compass.png b/import_images_from_zip_file/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/misc/compass.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/corporate.png b/import_images_from_zip_file/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/misc/corporate.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/customer-support.png b/import_images_from_zip_file/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/misc/customer-support.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/cybrosys-logo.png b/import_images_from_zip_file/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/misc/cybrosys-logo.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/email.svg b/import_images_from_zip_file/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/import_images_from_zip_file/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/import_images_from_zip_file/static/description/assets/misc/features.png b/import_images_from_zip_file/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/misc/features.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/logo.png b/import_images_from_zip_file/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/misc/logo.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/phone.svg b/import_images_from_zip_file/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/import_images_from_zip_file/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/import_images_from_zip_file/static/description/assets/misc/pictures.png b/import_images_from_zip_file/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/misc/pictures.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/pie-chart.png b/import_images_from_zip_file/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/misc/pie-chart.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/right-arrow.png b/import_images_from_zip_file/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/misc/right-arrow.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/star (1) 2.svg b/import_images_from_zip_file/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/import_images_from_zip_file/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/import_images_from_zip_file/static/description/assets/misc/star.png b/import_images_from_zip_file/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/misc/star.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/support (1) 1.svg b/import_images_from_zip_file/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/import_images_from_zip_file/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/import_images_from_zip_file/static/description/assets/misc/support-email.svg b/import_images_from_zip_file/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/import_images_from_zip_file/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/import_images_from_zip_file/static/description/assets/misc/support.png b/import_images_from_zip_file/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/misc/support.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/tick-mark.svg b/import_images_from_zip_file/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/import_images_from_zip_file/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/import_images_from_zip_file/static/description/assets/misc/whatsapp 1.svg b/import_images_from_zip_file/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/import_images_from_zip_file/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/import_images_from_zip_file/static/description/assets/misc/whatsapp.png b/import_images_from_zip_file/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/misc/whatsapp.png differ diff --git a/import_images_from_zip_file/static/description/assets/misc/whatsapp.svg b/import_images_from_zip_file/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/import_images_from_zip_file/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/import_images_from_zip_file/static/description/assets/modules/1.png b/import_images_from_zip_file/static/description/assets/modules/1.png new file mode 100644 index 000000000..d0f36b007 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/1.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/2.png b/import_images_from_zip_file/static/description/assets/modules/2.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/2.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/3.png b/import_images_from_zip_file/static/description/assets/modules/3.png new file mode 100644 index 000000000..3c3ff1afb Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/3.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/4.png b/import_images_from_zip_file/static/description/assets/modules/4.png new file mode 100644 index 000000000..3fae4631e Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/4.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/5.gif b/import_images_from_zip_file/static/description/assets/modules/5.gif new file mode 100644 index 000000000..2a5f8e659 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/5.gif differ diff --git a/import_images_from_zip_file/static/description/assets/modules/5.png b/import_images_from_zip_file/static/description/assets/modules/5.png new file mode 100755 index 000000000..272ec20f9 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/5.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/6.png b/import_images_from_zip_file/static/description/assets/modules/6.png new file mode 100644 index 000000000..7f2815273 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/6.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/barcode_image.png b/import_images_from_zip_file/static/description/assets/modules/barcode_image.png new file mode 100644 index 000000000..cfb5be33c Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/barcode_image.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/biometric_image.png b/import_images_from_zip_file/static/description/assets/modules/biometric_image.png new file mode 100644 index 000000000..a0969fcb5 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/biometric_image.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/export_image.png b/import_images_from_zip_file/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..492980ad0 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/export_image.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/l2.png b/import_images_from_zip_file/static/description/assets/modules/l2.png new file mode 100644 index 000000000..f40a0756d Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/l2.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/l3.png b/import_images_from_zip_file/static/description/assets/modules/l3.png new file mode 100644 index 000000000..5738a486e Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/l3.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/l4.png b/import_images_from_zip_file/static/description/assets/modules/l4.png new file mode 100644 index 000000000..8d99e8c68 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/l4.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/l5.png b/import_images_from_zip_file/static/description/assets/modules/l5.png new file mode 100644 index 000000000..3415917c2 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/l5.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/l6.png b/import_images_from_zip_file/static/description/assets/modules/l6.png new file mode 100644 index 000000000..c7ea331ee Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/l6.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/login_image.png b/import_images_from_zip_file/static/description/assets/modules/login_image.png new file mode 100644 index 000000000..4fbe85ac1 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/login_image.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/payroll_image.png b/import_images_from_zip_file/static/description/assets/modules/payroll_image.png new file mode 100644 index 000000000..7f2815273 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/payroll_image.png differ diff --git a/import_images_from_zip_file/static/description/assets/modules/sale_image.png b/import_images_from_zip_file/static/description/assets/modules/sale_image.png new file mode 100644 index 000000000..004c61a9e Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/modules/sale_image.png differ diff --git a/import_images_from_zip_file/static/description/assets/screenshots/1.png b/import_images_from_zip_file/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..11a221bac Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/screenshots/1.png differ diff --git a/import_images_from_zip_file/static/description/assets/screenshots/2.png b/import_images_from_zip_file/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..da440c3b8 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/screenshots/2.png differ diff --git a/import_images_from_zip_file/static/description/assets/screenshots/3.png b/import_images_from_zip_file/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..c19598d9e Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/screenshots/3.png differ diff --git a/import_images_from_zip_file/static/description/assets/screenshots/4.png b/import_images_from_zip_file/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..098ed2dcc Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/screenshots/4.png differ diff --git a/import_images_from_zip_file/static/description/assets/screenshots/5.png b/import_images_from_zip_file/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..655922f35 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/screenshots/5.png differ diff --git a/import_images_from_zip_file/static/description/assets/screenshots/6.png b/import_images_from_zip_file/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..0760417e9 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/screenshots/6.png differ diff --git a/import_images_from_zip_file/static/description/assets/screenshots/hero.gif b/import_images_from_zip_file/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..8bbef0bc4 Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/screenshots/hero.gif differ diff --git a/import_images_from_zip_file/static/description/assets/screenshots/output.gif b/import_images_from_zip_file/static/description/assets/screenshots/output.gif new file mode 100644 index 000000000..a69a66cdb Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/screenshots/output.gif differ diff --git a/import_images_from_zip_file/static/description/assets/screenshots/v15-hero.gif b/import_images_from_zip_file/static/description/assets/screenshots/v15-hero.gif new file mode 100644 index 000000000..50db12bec Binary files /dev/null and b/import_images_from_zip_file/static/description/assets/screenshots/v15-hero.gif differ diff --git a/import_images_from_zip_file/static/description/banner.jpg b/import_images_from_zip_file/static/description/banner.jpg new file mode 100644 index 000000000..24d45efba Binary files /dev/null and b/import_images_from_zip_file/static/description/banner.jpg differ diff --git a/import_images_from_zip_file/static/description/icon.png b/import_images_from_zip_file/static/description/icon.png new file mode 100644 index 000000000..c57095c0b Binary files /dev/null and b/import_images_from_zip_file/static/description/icon.png differ diff --git a/import_images_from_zip_file/static/description/index.html b/import_images_from_zip_file/static/description/index.html new file mode 100644 index 000000000..ff2c48a4e --- /dev/null +++ b/import_images_from_zip_file/static/description/index.html @@ -0,0 +1,773 @@ + + + + + + + Import Images From Zip File + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Import Images From Zip File +

+

+ This module will help you to import images from zip file on the basis of various parameters. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Import employee images by name or ID number.

+
+
+
+
+
+
+ +
+
+

+ Import product template images by name, internal reference, or barcode.

+
+
+
+
+
+
+ +
+
+

+ Import product variant images by internal reference or barcode.

+
+
+
+
+
+
+ +
+
+

+ Import partner images by name.

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

+ Click the Import Image button +

+
+
+
+
+
+
+ +
+
+

+ Choose Name or Identification number and upload your zip file and click on Import + Images button.

+
+
+
+
+
+
+ +
+
+

+ Click on Import Image in Contacts.

+
+
+
+
+
+
+ +
+
+

+ Upload your zip file and click on Import Images button.

+
+
+
+
+
+
+ +
+
+

+ Click on Import Images in product.

+
+
+
+
+
+
+ +
+
+

+ Choose the options and upload your zip file and then click on Import Images.

+
+
+
+
+
+
+ +
+
+

+ This is a sample zip upload.

+
+
+
+
+
+
+
    +
  • + Import product template images by name, internal + reference, or barcode. +
  • +
  • + Import product variant images by internal reference or + barcode. + +
  • +
  • + Import partner images by name. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:17th May 2025 +
+

+ Initial Commit for Import Images From Zip File

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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

+
+
+
+
+
+
+

+ Support

+
+
+
+
+
+
+
+ +
+ Need + Help? +

Got + questions or need help? Get in touch.

+
odoo@cybrosys.com +
+
+
+
+
+
+
+
+ +
+ WhatsApp +

Say hi to + us on WhatsApp!

+
+91 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/import_images_from_zip_file/views/hr_employee_views.xml b/import_images_from_zip_file/views/hr_employee_views.xml new file mode 100644 index 000000000..8087af9c8 --- /dev/null +++ b/import_images_from_zip_file/views/hr_employee_views.xml @@ -0,0 +1,14 @@ + + + + + hr.employee.view.tree.inherit.import.images.from.zip.file + hr.employee + + +
+
+
+
+
diff --git a/import_images_from_zip_file/views/product_product_views.xml b/import_images_from_zip_file/views/product_product_views.xml new file mode 100644 index 000000000..ead56df92 --- /dev/null +++ b/import_images_from_zip_file/views/product_product_views.xml @@ -0,0 +1,14 @@ + + + + + product.product.view.tree.inherit.import.images.from.zip.file + product.product + + +
+
+
+
+
diff --git a/import_images_from_zip_file/views/product_template_views.xml b/import_images_from_zip_file/views/product_template_views.xml new file mode 100644 index 000000000..8908a5618 --- /dev/null +++ b/import_images_from_zip_file/views/product_template_views.xml @@ -0,0 +1,28 @@ + + + + + product.template.view.tree.inherit.import.images.from.zip.file + product.template + + +
+
+
+
+ + + product.template.view.tree.inherit.import.images.from.zip.file + product.template + + + +
+
+
+
+
+
diff --git a/import_images_from_zip_file/views/res_partner_views.xml b/import_images_from_zip_file/views/res_partner_views.xml new file mode 100644 index 000000000..6c05dc844 --- /dev/null +++ b/import_images_from_zip_file/views/res_partner_views.xml @@ -0,0 +1,17 @@ + + + + + res.partner.view.tree.inherit.import.images.from.zip.file + res.partner + + + +
+
+
+
+
+
diff --git a/import_images_from_zip_file/wizard/__init__.py b/import_images_from_zip_file/wizard/__init__.py new file mode 100644 index 000000000..028af6858 --- /dev/null +++ b/import_images_from_zip_file/wizard/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Mruthul Raj @cybrosys(odoo@cybrosys.com) +# +# 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 import_image diff --git a/import_images_from_zip_file/wizard/import_image.py b/import_images_from_zip_file/wizard/import_image.py new file mode 100644 index 000000000..c0f15a096 --- /dev/null +++ b/import_images_from_zip_file/wizard/import_image.py @@ -0,0 +1,121 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Mruthul Raj @cybrosys(odoo@cybrosys.com) +# +# 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 . +# +############################################################################### +import base64 +import tempfile +import io +import zipfile +from odoo import fields, models, _ +from odoo.exceptions import ValidationError + + +class ImportImage(models.TransientModel): + _name = "import.image" + _description = 'Import Image Wizard' + + file = fields.Binary(string="Zip", help="Binary file") + product_template_selection = fields.Selection([ + ('name', "Name"), ('internal_reference', "Internal Reference"), + ('barcode', "Barcode")], string="Based On", default='name', + help="Choose what type of reference the image files are named after", ) + res_partner_selection = fields.Selection([('name', "Name")], string="Based On", default='name', + help="Choose what type of reference the " + "image files are named after") + product_product_selection = fields.Selection([('internal_reference', "Internal Reference"), ('barcode', "Barcode")], + default='internal_reference', + help="Choose what type of reference the image files are named after", + string="Based on") + hr_employee_selection = fields.Selection([('name', "Name"), ('identification_no', "Identification No")], + default="name", + help="Choose what type of reference the image files are named after", + string="Based on") + model_template = fields.Selection([('product.template', "Product Template"), + ('product.product', "Product Product"), ('hr.employee', "Employee"), + ('res.partner', "Partner")], default='product.template', + help="Choose what type of reference the image files are named after", + string="Model Template", readonly=True) + + def action_import(self): + """Function for importing images + :type : list(str) + :returns: action definition to open wizard view + """ + if not self.file: + raise ValidationError(_('Please choose a zip file')) + model = self.model_template + file = base64.decodebytes(self.file) + fileobject = tempfile.NamedTemporaryFile(delete=False) + fname = fileobject.name + fileobject.write(file) + fileobject.close() + file_zip = self.file + main_file = open(fname, 'r+b') + data = main_file.read() + main_file.write(base64.b64decode(file_zip)) + pos = data.find(b'\x50\x4b\x05\x06') + main_file.seek(pos + 22) + try: + with zipfile.ZipFile(main_file, 'r') as zip_file: + path_list = [] + converted_string_list = [] + for name in zip_file.namelist(): + path_list.append(name) + converted_string_list.append(zip_file.read(name)) + binary_file_list = [] + for binary_file in converted_string_list: + binary_file_list.append(base64.b64encode + (io.BytesIO(binary_file).read())) + main_file.close() + if self.model_template == "product.template": + reference = self.product_product_selection + elif self.model_template == "product.product": + reference = self.product_product_selection + elif self.model_template == "res.partner": + reference = self.res_partner_selection + else: + reference = self.hr_employee_selection + for binary_image, record_reference \ + in zip(binary_file_list, path_list): + if reference == 'name' and model != 'product.product': + record = self.env[model].search( + [('name', 'ilike', record_reference.split('.', 1)[0])]) + if reference == 'internal_reference' \ + and model != 'hr.employee': + record = self.env[model].search( + [('default_code', 'ilike', record_reference.split('.', 1)[0])]) + if reference == 'barcode' and model != 'res.partner' \ + and model != 'hr.employee': + record = self.env[model].search( + [('barcode', 'ilike', record_reference.split('.', 1)[0])]) + if reference == 'identification_no' \ + and model != 'res.partner' \ + and model != 'product.product' \ + and model != 'product.template': + record = self.env[model].search( + [('identification_id', 'ilike', record_reference.split('.', 1)[0])]) + record.image_1920 = binary_image + + return { + 'type': 'ir.actions.client', + 'tag': 'reload', + } + except zipfile.BadZipfile: + raise ValidationError(_('Please upload a zip file')) diff --git a/import_images_from_zip_file/wizard/import_image.xml b/import_images_from_zip_file/wizard/import_image.xml new file mode 100644 index 000000000..c71a5349a --- /dev/null +++ b/import_images_from_zip_file/wizard/import_image.xml @@ -0,0 +1,40 @@ + + + + + import.image.view.form + import.image + +
+ + + + + + + + + + +
+
+
+
+
+ + Import Images + import.image + form + + new + +