diff --git a/product_batch_report/README.rst b/product_batch_report/README.rst new file mode 100644 index 000000000..2b6b40ab6 --- /dev/null +++ b/product_batch_report/README.rst @@ -0,0 +1,45 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Lot and Serial Number Expiry Report +=================================== +Generates a report based on lot and serial number expiry dates or product expiry date. + +Configuration +============= +The user should be added to the security group: Administrator(Inventory/ Stock) inorder to get access to the new menu. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +Developer : (V18) Nivedhya T, 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 https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ diff --git a/product_batch_report/__init__.py b/product_batch_report/__init__.py new file mode 100644 index 000000000..8d8da9107 --- /dev/null +++ b/product_batch_report/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# 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 wizard diff --git a/product_batch_report/__manifest__.py b/product_batch_report/__manifest__.py new file mode 100644 index 000000000..0134f0795 --- /dev/null +++ b/product_batch_report/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# 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': 'Lot and Serial Number Expiry Report', + 'version': '18.0.1.0.0', + 'category': 'Warehouse', + 'summary': """Generates a detailed Lot and Serial Number Expiry based on + their expiry details.""", + 'description': """This module helps you to print a report about tracking + products (lot/serial) based on their expiry date. You can filter your + report based on different criteria.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['stock'], + 'data': [ + 'security/ir.model.access.csv', + 'report/product_batch_report_reports.xml', + 'report/product_batch_report_templates.xml', + 'wizard/product_batch_report_views.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/product_batch_report/doc/RELEASE_NOTES.md b/product_batch_report/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..4e983bc2c --- /dev/null +++ b/product_batch_report/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 08.10.2024 +#### Version 18.0.1.0.0 +#### ADD +- Initial commit for Lot and Serial Number Expiry Report diff --git a/product_batch_report/report/product_batch_report_reports.xml b/product_batch_report/report/product_batch_report_reports.xml new file mode 100644 index 000000000..3f8d4909f --- /dev/null +++ b/product_batch_report/report/product_batch_report_reports.xml @@ -0,0 +1,12 @@ + + + + + Lot/Serial Number Expiry PDF Report + product.batch.report + qweb-pdf + product_batch_report.product_batch_report_template + product_batch_report.product_batch_report_template + True + + diff --git a/product_batch_report/report/product_batch_report_templates.xml b/product_batch_report/report/product_batch_report_templates.xml new file mode 100644 index 000000000..48b378af8 --- /dev/null +++ b/product_batch_report/report/product_batch_report_templates.xml @@ -0,0 +1,92 @@ + + + + + diff --git a/product_batch_report/security/ir.model.access.csv b/product_batch_report/security/ir.model.access.csv new file mode 100644 index 000000000..bd3016aad --- /dev/null +++ b/product_batch_report/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_product_batch_report_user,product.batch.report.user,model_product_batch_report,stock.group_stock_user,1,0,0,0 +access_product_batch_report_manager,product.batch.report.manager,model_product_batch_report,stock.group_stock_manager,1,1,1,1 diff --git a/product_batch_report/static/description/assets/cybro-icon.png b/product_batch_report/static/description/assets/cybro-icon.png new file mode 100755 index 000000000..06e73e11d Binary files /dev/null and b/product_batch_report/static/description/assets/cybro-icon.png differ diff --git a/product_batch_report/static/description/assets/cybro-odoo.png b/product_batch_report/static/description/assets/cybro-odoo.png new file mode 100755 index 000000000..ed02e07a4 Binary files /dev/null and b/product_batch_report/static/description/assets/cybro-odoo.png differ diff --git a/product_batch_report/static/description/assets/h2.png b/product_batch_report/static/description/assets/h2.png new file mode 100755 index 000000000..0bfc4707d Binary files /dev/null and b/product_batch_report/static/description/assets/h2.png differ diff --git a/product_batch_report/static/description/assets/icons/arrows-repeat.svg b/product_batch_report/static/description/assets/icons/arrows-repeat.svg new file mode 100644 index 000000000..1d7efabc5 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/banner-1.png b/product_batch_report/static/description/assets/icons/banner-1.png new file mode 100644 index 000000000..c180db172 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/banner-1.png differ diff --git a/product_batch_report/static/description/assets/icons/banner-2.svg b/product_batch_report/static/description/assets/icons/banner-2.svg new file mode 100644 index 000000000..e606d97d9 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/banner-bg.png b/product_batch_report/static/description/assets/icons/banner-bg.png new file mode 100644 index 000000000..a8238d3c0 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/banner-bg.png differ diff --git a/product_batch_report/static/description/assets/icons/banner-bg.svg b/product_batch_report/static/description/assets/icons/banner-bg.svg new file mode 100644 index 000000000..b1378103e --- /dev/null +++ b/product_batch_report/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/banner-call.svg b/product_batch_report/static/description/assets/icons/banner-call.svg new file mode 100644 index 000000000..96c687e81 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/product_batch_report/static/description/assets/icons/banner-mail.svg b/product_batch_report/static/description/assets/icons/banner-mail.svg new file mode 100644 index 000000000..cbf0d158d --- /dev/null +++ b/product_batch_report/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/product_batch_report/static/description/assets/icons/banner-pattern.svg b/product_batch_report/static/description/assets/icons/banner-pattern.svg new file mode 100644 index 000000000..9c1c7e101 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/banner-promo.svg b/product_batch_report/static/description/assets/icons/banner-promo.svg new file mode 100644 index 000000000..d52791b11 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/brand-pair.svg b/product_batch_report/static/description/assets/icons/brand-pair.svg new file mode 100644 index 000000000..d8db7fc1e --- /dev/null +++ b/product_batch_report/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/check.png b/product_batch_report/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/product_batch_report/static/description/assets/icons/check.png differ diff --git a/product_batch_report/static/description/assets/icons/chevron.png b/product_batch_report/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/chevron.png differ diff --git a/product_batch_report/static/description/assets/icons/close-icon.svg b/product_batch_report/static/description/assets/icons/close-icon.svg new file mode 100644 index 000000000..df8cce37a --- /dev/null +++ b/product_batch_report/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/product_batch_report/static/description/assets/icons/cogs.png b/product_batch_report/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/cogs.png differ diff --git a/product_batch_report/static/description/assets/icons/collabarate-icon.svg b/product_batch_report/static/description/assets/icons/collabarate-icon.svg new file mode 100644 index 000000000..dd4e10518 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/product_batch_report/static/description/assets/icons/consultation.png b/product_batch_report/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/product_batch_report/static/description/assets/icons/consultation.png differ diff --git a/product_batch_report/static/description/assets/icons/cybro-logo.png b/product_batch_report/static/description/assets/icons/cybro-logo.png new file mode 100644 index 000000000..ff4b78220 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/cybro-logo.png differ diff --git a/product_batch_report/static/description/assets/icons/down.svg b/product_batch_report/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/product_batch_report/static/description/assets/icons/ecom-black.png b/product_batch_report/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/ecom-black.png differ diff --git a/product_batch_report/static/description/assets/icons/education-black.png b/product_batch_report/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/product_batch_report/static/description/assets/icons/education-black.png differ diff --git a/product_batch_report/static/description/assets/icons/faq.png b/product_batch_report/static/description/assets/icons/faq.png new file mode 100644 index 000000000..4250b5b81 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/faq.png differ diff --git a/product_batch_report/static/description/assets/icons/feature-icon.svg b/product_batch_report/static/description/assets/icons/feature-icon.svg new file mode 100644 index 000000000..fa0ea6850 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/feature.png b/product_batch_report/static/description/assets/icons/feature.png new file mode 100644 index 000000000..ac7a785c0 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/feature.png differ diff --git a/product_batch_report/static/description/assets/icons/gear.svg b/product_batch_report/static/description/assets/icons/gear.svg new file mode 100644 index 000000000..0cc66b6ea --- /dev/null +++ b/product_batch_report/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/hero.gif b/product_batch_report/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..0d89810db Binary files /dev/null and b/product_batch_report/static/description/assets/icons/hero.gif differ diff --git a/product_batch_report/static/description/assets/icons/hire-odoo.svg b/product_batch_report/static/description/assets/icons/hire-odoo.svg new file mode 100644 index 000000000..e1ac089b0 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/hotel-black.png b/product_batch_report/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/product_batch_report/static/description/assets/icons/hotel-black.png differ diff --git a/product_batch_report/static/description/assets/icons/license.png b/product_batch_report/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/product_batch_report/static/description/assets/icons/license.png differ diff --git a/product_batch_report/static/description/assets/icons/life-ring-icon.svg b/product_batch_report/static/description/assets/icons/life-ring-icon.svg new file mode 100644 index 000000000..3ae6e1d89 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/lifebuoy.png b/product_batch_report/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/product_batch_report/static/description/assets/icons/lifebuoy.png differ diff --git a/product_batch_report/static/description/assets/icons/mail.svg b/product_batch_report/static/description/assets/icons/mail.svg new file mode 100644 index 000000000..1eedde695 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/product_batch_report/static/description/assets/icons/manufacturing-black.png b/product_batch_report/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/product_batch_report/static/description/assets/icons/manufacturing-black.png differ diff --git a/product_batch_report/static/description/assets/icons/notes.png b/product_batch_report/static/description/assets/icons/notes.png new file mode 100644 index 000000000..ee5e95404 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/notes.png differ diff --git a/product_batch_report/static/description/assets/icons/notification icon.svg b/product_batch_report/static/description/assets/icons/notification icon.svg new file mode 100644 index 000000000..053189973 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/odoo-consultancy.svg b/product_batch_report/static/description/assets/icons/odoo-consultancy.svg new file mode 100644 index 000000000..e05f65bde --- /dev/null +++ b/product_batch_report/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/product_batch_report/static/description/assets/icons/odoo-licencing.svg b/product_batch_report/static/description/assets/icons/odoo-licencing.svg new file mode 100644 index 000000000..2606c88b0 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/product_batch_report/static/description/assets/icons/odoo-logo.png b/product_batch_report/static/description/assets/icons/odoo-logo.png new file mode 100644 index 000000000..0e4d0eb5a Binary files /dev/null and b/product_batch_report/static/description/assets/icons/odoo-logo.png differ diff --git a/product_batch_report/static/description/assets/icons/patter.svg b/product_batch_report/static/description/assets/icons/patter.svg new file mode 100644 index 000000000..25c9c0a8f --- /dev/null +++ b/product_batch_report/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/pattern1.png b/product_batch_report/static/description/assets/icons/pattern1.png new file mode 100644 index 000000000..09ab0fb2d Binary files /dev/null and b/product_batch_report/static/description/assets/icons/pattern1.png differ diff --git a/product_batch_report/static/description/assets/icons/pos-black.png b/product_batch_report/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/pos-black.png differ diff --git a/product_batch_report/static/description/assets/icons/puzzle-piece-icon.svg b/product_batch_report/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100644 index 000000000..3e9ad9373 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/puzzle.png b/product_batch_report/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/puzzle.png differ diff --git a/product_batch_report/static/description/assets/icons/replace-icon.svg b/product_batch_report/static/description/assets/icons/replace-icon.svg new file mode 100644 index 000000000..d0e3a7af1 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/restaurant-black.png b/product_batch_report/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/restaurant-black.png differ diff --git a/product_batch_report/static/description/assets/icons/screenshot-main.png b/product_batch_report/static/description/assets/icons/screenshot-main.png new file mode 100644 index 000000000..575f8e676 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/screenshot-main.png differ diff --git a/product_batch_report/static/description/assets/icons/screenshot.png b/product_batch_report/static/description/assets/icons/screenshot.png new file mode 100644 index 000000000..cef272529 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/screenshot.png differ diff --git a/product_batch_report/static/description/assets/icons/service-black.png b/product_batch_report/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/product_batch_report/static/description/assets/icons/service-black.png differ diff --git a/product_batch_report/static/description/assets/icons/skype-fill.svg b/product_batch_report/static/description/assets/icons/skype-fill.svg new file mode 100644 index 000000000..c17423639 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/skype.png b/product_batch_report/static/description/assets/icons/skype.png new file mode 100644 index 000000000..51b409fb3 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/skype.png differ diff --git a/product_batch_report/static/description/assets/icons/skype.svg b/product_batch_report/static/description/assets/icons/skype.svg new file mode 100644 index 000000000..df3dad39b --- /dev/null +++ b/product_batch_report/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/product_batch_report/static/description/assets/icons/star-1.svg b/product_batch_report/static/description/assets/icons/star-1.svg new file mode 100644 index 000000000..7e55ab162 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/star-2.svg b/product_batch_report/static/description/assets/icons/star-2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/product_batch_report/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/support.png b/product_batch_report/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/support.png differ diff --git a/product_batch_report/static/description/assets/icons/test-1 - Copy.png b/product_batch_report/static/description/assets/icons/test-1 - Copy.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/test-1 - Copy.png differ diff --git a/product_batch_report/static/description/assets/icons/test-1.png b/product_batch_report/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..0908add2b Binary files /dev/null and b/product_batch_report/static/description/assets/icons/test-1.png differ diff --git a/product_batch_report/static/description/assets/icons/test-2.png b/product_batch_report/static/description/assets/icons/test-2.png new file mode 100644 index 000000000..4671fe91e Binary files /dev/null and b/product_batch_report/static/description/assets/icons/test-2.png differ diff --git a/product_batch_report/static/description/assets/icons/trading-black.png b/product_batch_report/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/trading-black.png differ diff --git a/product_batch_report/static/description/assets/icons/training.png b/product_batch_report/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/product_batch_report/static/description/assets/icons/training.png differ diff --git a/product_batch_report/static/description/assets/icons/translate.svg b/product_batch_report/static/description/assets/icons/translate.svg new file mode 100644 index 000000000..af9c8a1aa --- /dev/null +++ b/product_batch_report/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/update.png b/product_batch_report/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/product_batch_report/static/description/assets/icons/update.png differ diff --git a/product_batch_report/static/description/assets/icons/user.png b/product_batch_report/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/product_batch_report/static/description/assets/icons/user.png differ diff --git a/product_batch_report/static/description/assets/icons/video.png b/product_batch_report/static/description/assets/icons/video.png new file mode 100644 index 000000000..576705b17 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/video.png differ diff --git a/product_batch_report/static/description/assets/icons/whatsapp.png b/product_batch_report/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/product_batch_report/static/description/assets/icons/whatsapp.png differ diff --git a/product_batch_report/static/description/assets/icons/wrench-icon.svg b/product_batch_report/static/description/assets/icons/wrench-icon.svg new file mode 100644 index 000000000..174b5a465 --- /dev/null +++ b/product_batch_report/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_batch_report/static/description/assets/icons/wrench.png b/product_batch_report/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/product_batch_report/static/description/assets/icons/wrench.png differ diff --git a/product_batch_report/static/description/assets/modules/r1.png b/product_batch_report/static/description/assets/modules/r1.png new file mode 100644 index 000000000..cb17cf612 Binary files /dev/null and b/product_batch_report/static/description/assets/modules/r1.png differ diff --git a/product_batch_report/static/description/assets/modules/r2.png b/product_batch_report/static/description/assets/modules/r2.png new file mode 100644 index 000000000..0e311ca87 Binary files /dev/null and b/product_batch_report/static/description/assets/modules/r2.png differ diff --git a/product_batch_report/static/description/assets/modules/r3.png b/product_batch_report/static/description/assets/modules/r3.png new file mode 100644 index 000000000..5004b22f7 Binary files /dev/null and b/product_batch_report/static/description/assets/modules/r3.png differ diff --git a/product_batch_report/static/description/assets/modules/r4.png b/product_batch_report/static/description/assets/modules/r4.png new file mode 100644 index 000000000..a68431b9d Binary files /dev/null and b/product_batch_report/static/description/assets/modules/r4.png differ diff --git a/product_batch_report/static/description/assets/modules/r5.png b/product_batch_report/static/description/assets/modules/r5.png new file mode 100644 index 000000000..14c6a147f Binary files /dev/null and b/product_batch_report/static/description/assets/modules/r5.png differ diff --git a/product_batch_report/static/description/assets/modules/r6.png b/product_batch_report/static/description/assets/modules/r6.png new file mode 100644 index 000000000..e1f74978e Binary files /dev/null and b/product_batch_report/static/description/assets/modules/r6.png differ diff --git a/product_batch_report/static/description/assets/screenshots/s07.png b/product_batch_report/static/description/assets/screenshots/s07.png new file mode 100644 index 000000000..538419695 Binary files /dev/null and b/product_batch_report/static/description/assets/screenshots/s07.png differ diff --git a/product_batch_report/static/description/assets/screenshots/s1.png b/product_batch_report/static/description/assets/screenshots/s1.png new file mode 100644 index 000000000..142623325 Binary files /dev/null and b/product_batch_report/static/description/assets/screenshots/s1.png differ diff --git a/product_batch_report/static/description/assets/screenshots/s10.png b/product_batch_report/static/description/assets/screenshots/s10.png new file mode 100644 index 000000000..acfc70536 Binary files /dev/null and b/product_batch_report/static/description/assets/screenshots/s10.png differ diff --git a/product_batch_report/static/description/assets/screenshots/s2.png b/product_batch_report/static/description/assets/screenshots/s2.png new file mode 100644 index 000000000..006b917be Binary files /dev/null and b/product_batch_report/static/description/assets/screenshots/s2.png differ diff --git a/product_batch_report/static/description/assets/screenshots/s3.png b/product_batch_report/static/description/assets/screenshots/s3.png new file mode 100644 index 000000000..fafb19c26 Binary files /dev/null and b/product_batch_report/static/description/assets/screenshots/s3.png differ diff --git a/product_batch_report/static/description/assets/screenshots/s4.png b/product_batch_report/static/description/assets/screenshots/s4.png new file mode 100644 index 000000000..ee5913b2e Binary files /dev/null and b/product_batch_report/static/description/assets/screenshots/s4.png differ diff --git a/product_batch_report/static/description/assets/screenshots/s5.png b/product_batch_report/static/description/assets/screenshots/s5.png new file mode 100644 index 000000000..386e1e8d5 Binary files /dev/null and b/product_batch_report/static/description/assets/screenshots/s5.png differ diff --git a/product_batch_report/static/description/assets/screenshots/s6.png b/product_batch_report/static/description/assets/screenshots/s6.png new file mode 100644 index 000000000..91911f532 Binary files /dev/null and b/product_batch_report/static/description/assets/screenshots/s6.png differ diff --git a/product_batch_report/static/description/assets/screenshots/s8.png b/product_batch_report/static/description/assets/screenshots/s8.png new file mode 100644 index 000000000..5903a14a5 Binary files /dev/null and b/product_batch_report/static/description/assets/screenshots/s8.png differ diff --git a/product_batch_report/static/description/assets/screenshots/s9.png b/product_batch_report/static/description/assets/screenshots/s9.png new file mode 100644 index 000000000..3bdfd678e Binary files /dev/null and b/product_batch_report/static/description/assets/screenshots/s9.png differ diff --git a/product_batch_report/static/description/assets/y18.jpg b/product_batch_report/static/description/assets/y18.jpg new file mode 100755 index 000000000..eea1714f2 Binary files /dev/null and b/product_batch_report/static/description/assets/y18.jpg differ diff --git a/product_batch_report/static/description/banner.jpg b/product_batch_report/static/description/banner.jpg new file mode 100644 index 000000000..4d6caa277 Binary files /dev/null and b/product_batch_report/static/description/banner.jpg differ diff --git a/product_batch_report/static/description/icon.png b/product_batch_report/static/description/icon.png new file mode 100644 index 000000000..a9bbf7432 Binary files /dev/null and b/product_batch_report/static/description/icon.png differ diff --git a/product_batch_report/static/description/index.html b/product_batch_report/static/description/index.html new file mode 100644 index 000000000..baf75eaf3 --- /dev/null +++ b/product_batch_report/static/description/index.html @@ -0,0 +1,1204 @@ + + + + + + Lot and Serial Number Expiry Report + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+
+

+ Print a report on tracking products (lot/serial) based on their expiry date. +

+

Lot and Serial Number Expiry Report +

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

Key + Heighlights

+
+
+
+
+ +
+
+ Generate PDF Reports. +
+

+ Generates lot/serial number expiry report in PDF format.

+
+
+
+
+
+ +
+
+ Enter Days Rather than Date. +
+

+ Options to enter days rather than date. +

+
+
+
+
+
+ +
+
+ Filter Reports. +
+

+ Filtering of report based on expired or expiring traceable products. +

+
+
+
+
+
+ +
+
+ Print Report Based on Lot/Serial Number or Product. +
+

+ Generates print report based on lot/serial number or based on products.

+
+
+
+
+ +
+
+
+ Lot and Serial Number Expiry Report +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ Access from the reporting + + Menu. +

+
+
+

+ Enable expiration date in configuration settings. + Access from the reporting menu - Inventory --> Reporting --> Lot/Serial Expiry +

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

+ Tracking by + + lots/serial number. +

+
+
+

+ Expiry report tracking by lots/serial number.Set the product's lot/serial number and expiration date +

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

+ Tracking by + + Products. +

+
+
+

+ Expiry report tracking by products. +

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

+ Selected + + + Products. +

+
+
+

+ Select the set of products to be tracked. +

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

+ Number of days + + + Before or within the expiry. +

+
+
+

+ Enter the number of days before or within which the expiry takes place. +

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

+ Expired Report + + + Product wise. +

+
+
+

+ Expired report of tracking type Expired. +

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

+ Expired Report + + Product wise. +

+
+
+

+ Expired report of tracking type Going to expire. +

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

+ Lot/Serial number + + + Wise. +

+
+
+

+ Choosing tracking type expired. +

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

+ Expired Report + + + Lot/Serial number wise. +

+
+
+

+ Expired report of tracking type Expired. +

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

+ Expired Report + + Lot/Serial number wise. +

+
+
+

+ Expired report of tracking type Going to expire. +

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

+ Generates lot/serial number expiry report in PDF format.

+
+ +
+
+
+
+
+
+ +
+

+ Generates print report based on lot/serial number or based on products.

+
+
+
+
+
+
+
+ +
+

+ Filtering of report based on expired or expiring traceable products.

+
+
+

+

+
+ +
+
+
+
+
+
+ +
+

+ Options to enter days rather than date.

+
+
+

+

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

+ You can track both lot-controlled and serial-controlled products. +

+
+
+ +
+ +
+

+ The Report can be accessed + through the reporting section + of your inventory management system. +

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

+ Latest Release 18.0.1.0.0 +

+ + 08th October, 2024 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/product_batch_report/wizard/__init__.py b/product_batch_report/wizard/__init__.py new file mode 100644 index 000000000..ec599822f --- /dev/null +++ b/product_batch_report/wizard/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# 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 product_batch_report diff --git a/product_batch_report/wizard/product_batch_report.py b/product_batch_report/wizard/product_batch_report.py new file mode 100644 index 000000000..3ab8ccb24 --- /dev/null +++ b/product_batch_report/wizard/product_batch_report.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Cybrosys Techno Solutions() +# +# 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 datetime import datetime, timedelta +from odoo import fields, models, _ +from odoo.exceptions import UserError + + +class ProductBatchReport(models.TransientModel): + """Model to create product batch report""" + _name = 'product.batch.report' + _description = 'Product Batch Report' + + tracking_wise = fields.Selection([ + ('tracking_wise', 'Lot/Serial Wise'), + ('product_wise', 'Product Wise'), ], + string='Tracking', default="tracking_wise", required=True, + help="Tracking wise") + product_ids = fields.Many2many('product.product', string='Product', + help="Add products") + expiry_days = fields.Integer(string='Within', help="Expire within...") + expiry_type = fields.Selection([ + ('expired', 'Expired'), + ('expire', 'Going to Expire'), ], + string='Tracking Type', required=True, help="Type of expire") + + def generate_pdf_report(self): + expiration_config = self.env['res.config.settings'].search([], order='id desc', limit=1).mapped( + 'module_product_expiry') + if not expiration_config: + raise UserError(_('Please enable Expiration Settings to get the Report.')) + + if self.expiry_days and self.expiry_days < 0: + raise UserError(_('Please Enter a Non Negative Number.')) + + today = datetime.strftime(datetime.today(), '%Y-%m-%d %H:%M:%S') + batch_data = self.env['stock.lot'] + if self.product_ids: + for product in self.product_ids: + batch_data += batch_data.search( + [('product_id', '=', product.id), ('product_id.qty_available', '>', 0)]) + else: + batch_data = batch_data.search([('product_id.qty_available', '>', 0)]) + + if self.expiry_type == 'expired': + batch_data = batch_data.filtered(lambda l: str(l.expiration_date) <= today) + else: + batch_data = batch_data.filtered(lambda l: str(l.expiration_date) >= today) + values = [] + date_within = '' + if self.expiry_days: + if self.expiry_type == 'expired': + date_within = datetime.strftime(datetime.today() - timedelta(days=int(self.expiry_days)), + '%Y-%m-%d %H:%M:%S') + batch_data = batch_data.filtered(lambda l: str(date_within) <= str(l.expiration_date) <= str(today)) + else: + date_within = datetime.strftime(datetime.today() + timedelta(days=int(self.expiry_days)), + '%Y-%m-%d %H:%M:%S') + batch_data = batch_data.filtered(lambda l: str(date_within) >= str(l.expiration_date) >= str(today)) + + batch_data = batch_data.filtered(lambda l: l.expiration_date) + + for line in batch_data: + expiry_date_str = str(line.expiration_date) + + # Attempt to parse the date with and without microseconds + if '.' in expiry_date_str: + expiry_date = datetime.strptime(expiry_date_str, "%Y-%m-%d %H:%M:%S.%f") + else: + expiry_date = datetime.strptime(expiry_date_str, "%Y-%m-%d %H:%M:%S") + expiry_days = (expiry_date - datetime.strptime(today, "%Y-%m-%d %H:%M:%S")).days + + values.append({ + 'lot_name': line.name, + 'product': line.product_id.name, + 'expiry_date': expiry_date_str, + 'expiry_days': f"{abs(expiry_days)} Days" + }) + heading = [{'name': line.id if self.tracking_wise == 'tracking_wise' else line.product_id.name} for line in + batch_data] + heading = [dict(t) for t in {tuple(d.items()) for d in heading}] + + data_dict = { + 'values': values, + 'heading': heading, + 'view_type': self.tracking_wise, + 'expiry_type': self.expiry_type, + 'today': today.split(' ')[0], + 'date_within': date_within.split(' ')[0] if date_within else '', + 'expiry_days': self.expiry_days, + } + return self.env.ref('product_batch_report.product_batch_report_action_report').report_action(self, + data=data_dict) \ No newline at end of file diff --git a/product_batch_report/wizard/product_batch_report_views.xml b/product_batch_report/wizard/product_batch_report_views.xml new file mode 100644 index 000000000..209cbe7bc --- /dev/null +++ b/product_batch_report/wizard/product_batch_report_views.xml @@ -0,0 +1,41 @@ + + + + + product.batch.report.view.form + product.batch.report + +
+ + + + + + + + + +
+
+
+
+
+ + + Lot or Serial Expiring Report + product.batch.report + ir.actions.act_window + form + new + + + +