diff --git a/import_bill_of_materials_in_mrp/README.rst b/import_bill_of_materials_in_mrp/README.rst new file mode 100644 index 000000000..fb293ad2c --- /dev/null +++ b/import_bill_of_materials_in_mrp/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: AGPL-3 + +Import Bill Of Materials +======================== +Import Bill Of Materials using CSV or Excel files + +Configuration +============= +* Check the Import BOM field in users + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +* Developers: (V17) Developer Anurudh P + 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 `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/import_bill_of_materials_in_mrp/__init__.py b/import_bill_of_materials_in_mrp/__init__.py new file mode 100644 index 000000000..04783c2b0 --- /dev/null +++ b/import_bill_of_materials_in_mrp/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Anurudh P () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import wizards diff --git a/import_bill_of_materials_in_mrp/__manifest__.py b/import_bill_of_materials_in_mrp/__manifest__.py new file mode 100644 index 000000000..692e8406a --- /dev/null +++ b/import_bill_of_materials_in_mrp/__manifest__.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Anurudh P () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': 'Import Bill Of Materials', + 'version': '17.0.1.0.0', + 'category': 'Manufacturing', + 'summary': """Import Bill of materials using CSV, Excel file""", + 'description': 'Using this module we can import bom by searching' + ' the products in diffrent ways in csv or excel files', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'stock', 'mrp'], + 'data': { + 'security/ir.model.access.csv', + 'security/import_bom_security.xml', + 'views/bom_import_menu_view.xml', + 'wizards/bom_import_view.xml', + 'wizards/success_message_view.xml', + }, + 'assets': { + 'web.assets_backend': [ + 'import_bill_of_materials_in_mrp/static/src/css/style.css' + ], + }, + 'external_dependencies': { + 'python': [ + 'openpyxl' + ], + }, + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} + diff --git a/import_bill_of_materials_in_mrp/doc/RELEASE_NOTES.md b/import_bill_of_materials_in_mrp/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..bf739278a --- /dev/null +++ b/import_bill_of_materials_in_mrp/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 14.05.2024 +#### Version 17.0.1.0.0 +#### ADD +- Initial commit for Import Bill Of Materials diff --git a/import_bill_of_materials_in_mrp/security/import_bom_security.xml b/import_bill_of_materials_in_mrp/security/import_bom_security.xml new file mode 100644 index 000000000..358f67d62 --- /dev/null +++ b/import_bill_of_materials_in_mrp/security/import_bom_security.xml @@ -0,0 +1,7 @@ + + + + + Import BOM + + diff --git a/import_bill_of_materials_in_mrp/security/ir.model.access.csv b/import_bill_of_materials_in_mrp/security/ir.model.access.csv new file mode 100644 index 000000000..71ccd185f --- /dev/null +++ b/import_bill_of_materials_in_mrp/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink +access_bom_import,access.bom.import,model_bom_import,base.group_erp_manager,1,1,1,1 +access_success_message,access.success.message,model_success_message,base.group_erp_manager,1,1,1,1 diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/capture (1).png b/import_bill_of_materials_in_mrp/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/capture (1).png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/check.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/check.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/chevron.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/chevron.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/cogs.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/cogs.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/consultation.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/consultation.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/ecom-black.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/ecom-black.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/education-black.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/education-black.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/hotel-black.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/hotel-black.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/img.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/img.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/license.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/license.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/lifebuoy.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/lifebuoy.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/manufacturing-black.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/manufacturing-black.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/photo-capture.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/photo-capture.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/pos-black.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/pos-black.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/puzzle.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/puzzle.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/restaurant-black.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/restaurant-black.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/service-black.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/service-black.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/trading-black.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/trading-black.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/training.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/training.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/update.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/update.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/user.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/user.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/icons/wrench.png b/import_bill_of_materials_in_mrp/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/icons/wrench.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/Cybrosys R.png b/import_bill_of_materials_in_mrp/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/misc/Cybrosys R.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/categories.png b/import_bill_of_materials_in_mrp/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/misc/categories.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/check-box.png b/import_bill_of_materials_in_mrp/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/misc/check-box.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/compass.png b/import_bill_of_materials_in_mrp/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/misc/compass.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/corporate.png b/import_bill_of_materials_in_mrp/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/misc/corporate.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/customer-support.png b/import_bill_of_materials_in_mrp/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/misc/customer-support.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/cybrosys-logo.png b/import_bill_of_materials_in_mrp/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/misc/cybrosys-logo.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/email.svg b/import_bill_of_materials_in_mrp/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/import_bill_of_materials_in_mrp/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/features.png b/import_bill_of_materials_in_mrp/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/misc/features.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/logo.png b/import_bill_of_materials_in_mrp/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/misc/logo.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/phone.svg b/import_bill_of_materials_in_mrp/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/import_bill_of_materials_in_mrp/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/pictures.png b/import_bill_of_materials_in_mrp/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/misc/pictures.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/pie-chart.png b/import_bill_of_materials_in_mrp/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/misc/pie-chart.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/right-arrow.png b/import_bill_of_materials_in_mrp/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/misc/right-arrow.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/star (1) 2.svg b/import_bill_of_materials_in_mrp/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/import_bill_of_materials_in_mrp/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/star.png b/import_bill_of_materials_in_mrp/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/misc/star.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/support (1) 1.svg b/import_bill_of_materials_in_mrp/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/import_bill_of_materials_in_mrp/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/support-email.svg b/import_bill_of_materials_in_mrp/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/import_bill_of_materials_in_mrp/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/support.png b/import_bill_of_materials_in_mrp/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/misc/support.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/tick-mark.svg b/import_bill_of_materials_in_mrp/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/import_bill_of_materials_in_mrp/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/whatsapp 1.svg b/import_bill_of_materials_in_mrp/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/import_bill_of_materials_in_mrp/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/whatsapp.png b/import_bill_of_materials_in_mrp/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/misc/whatsapp.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/misc/whatsapp.svg b/import_bill_of_materials_in_mrp/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/import_bill_of_materials_in_mrp/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/import_bill_of_materials_in_mrp/static/description/assets/modules/1.png b/import_bill_of_materials_in_mrp/static/description/assets/modules/1.png new file mode 100644 index 000000000..7cb0c1396 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/modules/1.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/modules/2.png b/import_bill_of_materials_in_mrp/static/description/assets/modules/2.png new file mode 100644 index 000000000..0f1da7644 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/modules/2.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/modules/3.png b/import_bill_of_materials_in_mrp/static/description/assets/modules/3.png new file mode 100644 index 000000000..865e712a6 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/modules/3.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/modules/4.png b/import_bill_of_materials_in_mrp/static/description/assets/modules/4.png new file mode 100644 index 000000000..4c0c29566 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/modules/4.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/modules/5.png b/import_bill_of_materials_in_mrp/static/description/assets/modules/5.png new file mode 100644 index 000000000..0cbac311c Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/modules/5.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/modules/6.png b/import_bill_of_materials_in_mrp/static/description/assets/modules/6.png new file mode 100644 index 000000000..0dea4f332 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/modules/6.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/screenshots/1.png b/import_bill_of_materials_in_mrp/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..614543e56 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/screenshots/1.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/screenshots/2.png b/import_bill_of_materials_in_mrp/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..aa08082ae Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/screenshots/2.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/screenshots/3.png b/import_bill_of_materials_in_mrp/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..53adb8dbe Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/screenshots/3.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/screenshots/4.png b/import_bill_of_materials_in_mrp/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..f11eddc7d Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/screenshots/4.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/screenshots/5.png b/import_bill_of_materials_in_mrp/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..b078cdc3e Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/screenshots/5.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/screenshots/6.png b/import_bill_of_materials_in_mrp/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..3f30be370 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/screenshots/6.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/assets/screenshots/hero.gif b/import_bill_of_materials_in_mrp/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..784efa41d Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/assets/screenshots/hero.gif differ diff --git a/import_bill_of_materials_in_mrp/static/description/banner.png b/import_bill_of_materials_in_mrp/static/description/banner.png new file mode 100644 index 000000000..11789568e Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/banner.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/icon.png b/import_bill_of_materials_in_mrp/static/description/icon.png new file mode 100644 index 000000000..d7fd0043d Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/description/icon.png differ diff --git a/import_bill_of_materials_in_mrp/static/description/index.html b/import_bill_of_materials_in_mrp/static/description/index.html new file mode 100644 index 000000000..6f93300b0 --- /dev/null +++ b/import_bill_of_materials_in_mrp/static/description/index.html @@ -0,0 +1,734 @@ + + + + + + + Import Bill Of Materials from CSV or Excel in Odoo + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Import Bill Of Materials from CSV or Excel in Odoo

+

+ Allows To Import Bill Of Materials From CSV/XLSX File. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Support in Enterprise and Community

+
+
+
+
+
+
+ +
+
+

We + can import both CSV file and Excel files

+
+
+
+
+
+
+ +
+
+

We + can select product by and product variant by in + UI

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

+ You can see check the Import BOM field in + user to see the manu

+
+
+
+
+
+
+ +
+
+

+ In Products menu you can see the Import BOM + menu

+
+
+
+
+
+
+ +
+
+

+ We can select File Type,BOM + Type,File,Product Variant,Product from + popup, + You can download sample files.

+
+
+
+
+
+
+ +
+
+

+ After successfully importing it will show a + success message

+
+
+
+
+
+
+ +
+
+

+ The list view of imported BOMs

+
+
+
+
+
+
+ +
+
+

+ Form view of imported BOM.

+
+
+
+
+
+
+
    +
  • + Allows to Import + bill of materials from csv or Excel file. +
  • +
  • + We can select + File Type,BOM Type,File,Product Variant,Product + from popup, + You can download sample files. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:08th Mar 2024 +
+

+ Initial Commit for Import Bill Of Materials from + CSV or Excel in Odoo.

+
+
+
+
+
+
+
+

+ 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_bill_of_materials_in_mrp/static/download/import_bom_csv.csv b/import_bill_of_materials_in_mrp/static/download/import_bom_csv.csv new file mode 100644 index 000000000..bb6662208 --- /dev/null +++ b/import_bill_of_materials_in_mrp/static/download/import_bom_csv.csv @@ -0,0 +1,6 @@ +Reference,Finished products,Product variant,Quantity,Unit of measure ,Material product,Material product quantity,Material product unit of mesure +bom1,Customizable Desk,FURN_0096,2,Units,CONS_25630,1,Units +,,,,,CONS_89957,2,Units +,,,,,E-COM12,3,Units +bom2,Drawer Black,FURN_2100,1,Units,CONS_89957,2,Units +,,,,,FURN_0789,1,Units diff --git a/import_bill_of_materials_in_mrp/static/download/import_bom_excel.xlsx b/import_bill_of_materials_in_mrp/static/download/import_bom_excel.xlsx new file mode 100644 index 000000000..3f67be2a8 Binary files /dev/null and b/import_bill_of_materials_in_mrp/static/download/import_bom_excel.xlsx differ diff --git a/import_bill_of_materials_in_mrp/static/src/css/style.css b/import_bill_of_materials_in_mrp/static/src/css/style.css new file mode 100644 index 000000000..a580abd49 --- /dev/null +++ b/import_bill_of_materials_in_mrp/static/src/css/style.css @@ -0,0 +1,19 @@ +.div_pos{ + margin-left: 508px !important; + margin-top: 10px; +} +.csv{ + margin: 0 10px; + font-size: 12px; + line-height: 1.5; + border-radius: 3px; + padding: 8px 10px; + color: #ffffff; +} +.xlsx{ + font-size: 12px; + line-height: 1.5; + border-radius: 3px; + padding: 8px 10px; + color: #ffffff; +} diff --git a/import_bill_of_materials_in_mrp/views/bom_import_menu_view.xml b/import_bill_of_materials_in_mrp/views/bom_import_menu_view.xml new file mode 100644 index 000000000..0da848de5 --- /dev/null +++ b/import_bill_of_materials_in_mrp/views/bom_import_menu_view.xml @@ -0,0 +1,15 @@ + + + + + Import BOM + bom.import + form + new + + + diff --git a/import_bill_of_materials_in_mrp/wizards/__init__.py b/import_bill_of_materials_in_mrp/wizards/__init__.py new file mode 100644 index 000000000..ba779300c --- /dev/null +++ b/import_bill_of_materials_in_mrp/wizards/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Anurudh P () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import bom_import +from . import success_message diff --git a/import_bill_of_materials_in_mrp/wizards/bom_import.py b/import_bill_of_materials_in_mrp/wizards/bom_import.py new file mode 100644 index 000000000..2c7e4c332 --- /dev/null +++ b/import_bill_of_materials_in_mrp/wizards/bom_import.py @@ -0,0 +1,261 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Anurudh P () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +import binascii +import tempfile +import certifi +import urllib3 +import xlrd +from odoo import models, fields, _ +import csv +import base64 +import openpyxl +from io import BytesIO +from odoo.exceptions import UserError +from odoo.tools import ustr + + +class BomImport(models.TransientModel): + """This is a transient model for creating a wizard for importing bom """ + _name = 'bom.import' + _description = 'Import Bom wizard' + + file_type = fields.Selection([('csv', 'CSV File'), + ('xls', 'Excel File')], + String='File Type', Required=True, + default='csv', + help='File type of importing file') + name = fields.Char(string='name') + bom_type = fields.Selection( + [('mtp', 'Manufacture This Product'), ('kit', 'Kit')], + String='BOM Type', Required=True, + default='mtp', helf='Type of Bill of Materials') + product_variant_by = fields.Selection( + [('default_code', 'Internal Reference'), + ('barcode', 'Barcode')], String='Product Variant By', Required=True, + default='default_code', help='Product variant type in file') + product_by = fields.Selection([('name', 'Name'), + ('default_code', 'Internal Reference'), + ('barcode', 'Barcode')], String='Product By', + Required=True, default='name', + help='Product type in file') + file = fields.Binary(String='Upload File', Required=True, + help='File to Import') + + def action_import_bom(self): + """function for importing bom through csv or Excel file""" + if self.file: + if self.file_type == 'csv': + try: + file = base64.b64decode(self.file) + file_string = file.decode('utf-8') + file_string.split('\n') + urllib3.PoolManager(cert_reqs='CERT_REQUIRED', + ca_certs=certifi.where()) + except: + raise UserError(_("Please choose the correct file!")) + for rec in self: + file = str(base64.decodebytes( + rec.file).decode('utf-8')) + reader = csv.reader(file.splitlines()) + next(reader) + last_bom_id = False + rec_count = 0 + try: + for col in reader: + bom_data = {} + bom_line_dict = {} + if col[1]: + rec_count += 1 + if rec.product_by == 'name': + product_search = 'name' + elif rec.product_by == 'default_code': + product_search = 'default_code' + else: + product_search = 'barcode' + product = self.env['product.template'].search( + [(product_search, '=', col[1])], limit=1) + bom_data.update({'product_tmpl_id': product.id, + 'code': col[0]}) + if col[2]: + if rec.product_variant_by == 'default_code': + variant_search = 'default_code' + else: + variant_search = 'barcode' + variant = self.env[ + 'product.product'].search( + [(variant_search, '=', col[2])], + limit=1) + bom_data.update({'product_id': variant.id}) + if col[4]: + uom = self.env['uom.uom'].search( + [('name', '=', col[4])], limit=1) + bom_data.update( + {'product_uom_id': uom.id}) + else: + bom_data.update( + {'product_uom_id': variant.uom_id}) + if col[3]: + bom_data.update({'product_qty': col[3]}) + else: + bom_data.update({'product_qty': 1}) + + if rec.bom_type == 'mtp': + bom_data.update({'type': 'normal'}) + else: + bom_data.update({'type': 'phantom'}) + bom_bom = rec.env['mrp.bom'].create(bom_data) + last_bom_id = bom_bom.id + if col[5]: + if rec.product_variant_by == 'default_code': + variant_search = 'default_code' + else: + variant_search = 'barcode' + variant = self.env['product.product'].search( + [(variant_search, '=', col[5])], limit=1) + bom_line_dict.update({'product_id': variant.id, + 'bom_id': last_bom_id + }) + if col[6]: + bom_line_dict.update( + {'product_qty': col[6]}) + else: + bom_line_dict.update({'product_qty': 1}) + if col[7]: + uom = self.env['uom.uom'].search( + [('name', '=', col[7])], limit=1) + bom_line_dict.update( + {'product_uom_id': uom.id}) + else: + bom_line_dict.update( + {'product_uom_id': product.uom_id}) + self.env['mrp.bom.line'].create(bom_line_dict) + return rec.success_message(rec_count) + except Exception as e: + raise UserError( + _("Sorry, The CSV file you provided " + "does not match our required format" + ustr( + e))) + + if self.file_type == 'xls': + try: + file_string = tempfile.NamedTemporaryFile(suffix=".xlsx") + file_string.write(binascii.a2b_base64(self.file)) + book = xlrd.open_workbook(file_string.name) + book.sheet_by_index(0) + urllib3.PoolManager(cert_reqs='CERT_REQUIRED', + ca_certs=certifi.where()) + except: + raise UserError(_("Please choose the correct file")) + for rec in self: + try: + wb = openpyxl.load_workbook( + filename=BytesIO(base64.b64decode(rec.file)), + read_only=True) + ws = wb.active + rec_count = 0 + for col in ws.iter_rows(min_row=2, values_only=True): + bom_data = {} + bom_line_dict = {} + if col[1]: + rec_count += 1 + if rec.product_by == 'name': + product_search = 'name' + elif rec.product_by == 'default_code': + product_search = 'default_code' + else: + product_search = 'barcode' + product = self.env['product.template'].search( + [(product_search, '=', col[1])], limit=1) + bom_data.update({'product_tmpl_id': product.id, + 'code': col[0]}) + if col[2]: + if rec.product_variant_by == 'default_code': + variant_search = 'default_code' + else: + variant_search = 'barcode' + variant = self.env[ + 'product.product'].search( + [(variant_search, '=', col[2])], + limit=1) + bom_data.update({'product_id': variant.id}) + if col[4]: + uom = self.env['uom.uom'].search( + [('name', '=', col[4])], limit=1) + bom_data.update( + {'product_uom_id': uom.id}) + else: + bom_data.update( + {'product_uom_id': variant.uom_id}) + if col[3]: + bom_data.update({'product_qty': col[3]}) + else: + bom_data.update({'product_qty': 1}) + + if rec.bom_type == 'mtp': + bom_data.update({'type': 'normal'}) + else: + bom_data.update({'type': 'phantom'}) + bom_bom = rec.env['mrp.bom'].create(bom_data) + last_bom_id = bom_bom.id + if col[5]: + if rec.product_variant_by == 'default_code': + variant_search = 'default_code' + else: + variant_search = 'barcode' + variant = self.env['product.product'].search( + [(variant_search, '=', col[5])], limit=1) + bom_line_dict.update({'product_id': variant.id, + 'bom_id': last_bom_id + }) + if col[6]: + bom_line_dict.update( + {'product_qty': col[6]}) + else: + bom_line_dict.update({'product_qty': 1}) + if col[7]: + uom = self.env['uom.uom'].search( + [('name', '=', col[7])], limit=1) + bom_line_dict.update( + {'product_uom_id': uom.id}) + else: + bom_line_dict.update( + {'product_uom_id': product.uom_id}) + self.env['mrp.bom.line'].create(bom_line_dict) + return rec.success_message(rec_count) + except Exception as e: + raise UserError( + _("Sorry, The Excel file you provided" + " does not match our required format" + ustr( + e))) + + def success_message(self, rec_count): + """function for displaying success message""" + message_id = self.env['success.message'].create( + {'message': str(rec_count) + " Records imported successfully"}) + return { + 'name': 'Message', + 'type': 'ir.actions.act_window', + 'view_mode': 'form', + 'res_model': 'success.message', + 'res_id': message_id.id, + 'target': 'new' + } diff --git a/import_bill_of_materials_in_mrp/wizards/bom_import_view.xml b/import_bill_of_materials_in_mrp/wizards/bom_import_view.xml new file mode 100644 index 000000000..cf9649af6 --- /dev/null +++ b/import_bill_of_materials_in_mrp/wizards/bom_import_view.xml @@ -0,0 +1,42 @@ + + + + + bom.import + bom.import + +
+ + + + + + + + + + + + + + +
+
+
diff --git a/import_bill_of_materials_in_mrp/wizards/success_message.py b/import_bill_of_materials_in_mrp/wizards/success_message.py new file mode 100644 index 000000000..0d7d89b49 --- /dev/null +++ b/import_bill_of_materials_in_mrp/wizards/success_message.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Anurudh P () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import models, fields + + +class SuccessMessage(models.TransientModel): + """model for adding warning message """ + + _name = 'success.message' + _description = "Show Message" + + message = fields.Text('Success', required=True) + + def action_close(self): + """function for close button""" + return {'type': 'ir.actions.act_window_close'} diff --git a/import_bill_of_materials_in_mrp/wizards/success_message_view.xml b/import_bill_of_materials_in_mrp/wizards/success_message_view.xml new file mode 100644 index 000000000..a2015555e --- /dev/null +++ b/import_bill_of_materials_in_mrp/wizards/success_message_view.xml @@ -0,0 +1,16 @@ + + + + + success.message.form + success.message + +
+ + + +
+
+