diff --git a/package_split/README.rst b/package_split/README.rst new file mode 100644 index 000000000..432567d6a --- /dev/null +++ b/package_split/README.rst @@ -0,0 +1,48 @@ +.. 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 + +Categorize & Pack Products +========================== +Effortlessly Categorize And Pack Your Products Based on Package Categories. + +Configuration +============= +* No additional configurations needed + +License +------- +GNU Affero General Public License v3.0 (AGPL v3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer : (V16) Muhsina V, + (V17) Syamili K, +Contact : odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/package_split/__init__.py b/package_split/__init__.py new file mode 100644 index 000000000..02fa0b51f --- /dev/null +++ b/package_split/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Syamili K () +# +# 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/package_split/__manifest__.py b/package_split/__manifest__.py new file mode 100644 index 000000000..df599765e --- /dev/null +++ b/package_split/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Syamili K () +# +# 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': 'Categorize & Pack Products', + 'version': '17.0.1.0.0', + 'category': 'Sales', + 'summary': 'Split the packages based on package category.', + 'description': """This module allows users to split products packages + based on the package category given inside the product.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['sale_management', 'delivery', 'stock_delivery'], + 'data': [ + 'security/ir.model.access.csv', + 'views/package_category_views.xml', + 'views/product_template_views.xml', + 'views/res_config_settings_views.xml', + ], + 'images': ['static/description/banner.jpg'], + 'licence': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/package_split/doc/RELEASE_NOTES.md b/package_split/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..bf5aaebb9 --- /dev/null +++ b/package_split/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 25.08.2025 +#### Version 17.0.1.0.0 +##### ADD +- Initial Commit for Categorize & Pack Products diff --git a/package_split/models/__init__.py b/package_split/models/__init__.py new file mode 100644 index 000000000..4167e3c0d --- /dev/null +++ b/package_split/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Syamili K () +# +# 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 package_category +from . import product_template +from . import res_config_settings +from . import stock_picking diff --git a/package_split/models/package_category.py b/package_split/models/package_category.py new file mode 100644 index 000000000..caf8eee9d --- /dev/null +++ b/package_split/models/package_category.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Syamili K () +# +# 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 fields, models + + +class PackageCategory(models.Model): + """model to create package category""" + _name = 'package.category' + _description = 'Package Category' + _inherit = 'mail.thread' + + name = fields.Char(string="Package Category", required=True, + help="Category of the product to pack") diff --git a/package_split/models/product_template.py b/package_split/models/product_template.py new file mode 100644 index 000000000..9d95f6293 --- /dev/null +++ b/package_split/models/product_template.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Syamili K () +# +# 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 fields, models + + +class ProductTemplate(models.Model): + """Inhering to add new field for package category""" + _inherit = 'product.template' + + package_category_id = fields.Many2one( + 'package.category', string="Package Category", help="Package category") + package_split_value = fields.Boolean( + string='Package Split Value', compute='_compute_package_split_value', + help="This field value is set to true if the field to enable package " + "split is enabled") + + def _compute_package_split_value(self): + """function to set value to the field package_split_value from + system parameter""" + self.package_split_value = self.env['ir.config_parameter'].sudo( + ).get_param( + 'package_split.enable_package_split') diff --git a/package_split/models/res_config_settings.py b/package_split/models/res_config_settings.py new file mode 100644 index 000000000..49b46df41 --- /dev/null +++ b/package_split/models/res_config_settings.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Syamili K () +# +# 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 api, fields, models + + +class ResConfigSettings(models.TransientModel): + """ Inhering to Add a field to enable Package split""" + _inherit = 'res.config.settings' + + enable_package_split = fields.Boolean( + string='Package Split', + config_parameter='package_split.enable_package_split', + compute='_compute_enable_package_split', + help="Enable package split feature") + + @api.depends('group_stock_tracking_lot') + def _compute_enable_package_split(self): + """on enabling packages it enables the field enable_package_split""" + self.enable_package_split = self.group_stock_tracking_lot diff --git a/package_split/models/stock_picking.py b/package_split/models/stock_picking.py new file mode 100644 index 000000000..b9aa9103a --- /dev/null +++ b/package_split/models/stock_picking.py @@ -0,0 +1,70 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Syamili K () +# +# 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 +from collections import defaultdict + + +class Picking(models.Model): + """Inheriting the stock picking model to change the package creation method + based on package category provided inside the product form.""" + _inherit = 'stock.picking' + + def _put_in_pack(self, move_line_ids): + """For each product in the orderline with the same package category, + it creates packages and adds the corresponding products into the + package when validating the delivery""" + + move_lines_by_category = defaultdict(list) + for move_line in move_line_ids: + category = move_line.product_id.package_category_id + move_lines_by_category[category].append(move_line) + packages = [] + for category, move_lines in move_lines_by_category.items(): + package = self.env['stock.quant.package'].create({}) + if category: + package_name = f"{package.name}-{category.name}" + package.write({'name': package_name}) + package_type = move_lines[0].move_id.product_packaging_id.package_type_id + if len(package_type) == 1: + package.package_type_id = package_type + for move_line in move_lines: + default_dest_location = move_line._get_default_dest_location() + move_line.location_dest_id = default_dest_location._get_putaway_strategy( + product=move_line.product_id, + quantity=move_line.quantity, + package=package + ) + move_line.write({ + 'result_package_id': package.id, + }) + if len(self) == 1: + self.env['stock.package_level'].create({ + 'package_id': package.id, + 'picking_id': self.id, + 'location_id': False, + 'location_dest_id': move_lines[0].location_dest_id.id, + 'move_line_ids': [(6, 0, [ml.id for ml in move_lines])], + 'company_id': self.company_id.id, + }) + + packages.append(package) + return packages diff --git a/package_split/security/ir.model.access.csv b/package_split/security/ir.model.access.csv new file mode 100644 index 000000000..2b5b0def2 --- /dev/null +++ b/package_split/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_package_category_user,access.package.category.user,model_package_category,base.group_user,1,1,1,1 diff --git a/package_split/static/description/assets/icons/capture (1).png b/package_split/static/description/assets/icons/capture (1).png new file mode 100755 index 000000000..8824deafc Binary files /dev/null and b/package_split/static/description/assets/icons/capture (1).png differ diff --git a/package_split/static/description/assets/icons/check.png b/package_split/static/description/assets/icons/check.png new file mode 100755 index 000000000..c8e85f51d Binary files /dev/null and b/package_split/static/description/assets/icons/check.png differ diff --git a/package_split/static/description/assets/icons/chevron.png b/package_split/static/description/assets/icons/chevron.png new file mode 100755 index 000000000..2089293d6 Binary files /dev/null and b/package_split/static/description/assets/icons/chevron.png differ diff --git a/package_split/static/description/assets/icons/cogs.png b/package_split/static/description/assets/icons/cogs.png new file mode 100755 index 000000000..95d0bad62 Binary files /dev/null and b/package_split/static/description/assets/icons/cogs.png differ diff --git a/package_split/static/description/assets/icons/consultation.png b/package_split/static/description/assets/icons/consultation.png new file mode 100755 index 000000000..8319d4baa Binary files /dev/null and b/package_split/static/description/assets/icons/consultation.png differ diff --git a/package_split/static/description/assets/icons/ecom-black.png b/package_split/static/description/assets/icons/ecom-black.png new file mode 100755 index 000000000..a9385ff13 Binary files /dev/null and b/package_split/static/description/assets/icons/ecom-black.png differ diff --git a/package_split/static/description/assets/icons/education-black.png b/package_split/static/description/assets/icons/education-black.png new file mode 100755 index 000000000..3eb09b27b Binary files /dev/null and b/package_split/static/description/assets/icons/education-black.png differ diff --git a/package_split/static/description/assets/icons/hotel-black.png b/package_split/static/description/assets/icons/hotel-black.png new file mode 100755 index 000000000..130f613be Binary files /dev/null and b/package_split/static/description/assets/icons/hotel-black.png differ diff --git a/package_split/static/description/assets/icons/img.png b/package_split/static/description/assets/icons/img.png new file mode 100755 index 000000000..70197f477 Binary files /dev/null and b/package_split/static/description/assets/icons/img.png differ diff --git a/package_split/static/description/assets/icons/license.png b/package_split/static/description/assets/icons/license.png new file mode 100755 index 000000000..a5869797e Binary files /dev/null and b/package_split/static/description/assets/icons/license.png differ diff --git a/package_split/static/description/assets/icons/lifebuoy.png b/package_split/static/description/assets/icons/lifebuoy.png new file mode 100755 index 000000000..658d56ccc Binary files /dev/null and b/package_split/static/description/assets/icons/lifebuoy.png differ diff --git a/package_split/static/description/assets/icons/manufacturing-black.png b/package_split/static/description/assets/icons/manufacturing-black.png new file mode 100755 index 000000000..697eb0e9f Binary files /dev/null and b/package_split/static/description/assets/icons/manufacturing-black.png differ diff --git a/package_split/static/description/assets/icons/photo-capture.png b/package_split/static/description/assets/icons/photo-capture.png new file mode 100755 index 000000000..06c111758 Binary files /dev/null and b/package_split/static/description/assets/icons/photo-capture.png differ diff --git a/package_split/static/description/assets/icons/pos-black.png b/package_split/static/description/assets/icons/pos-black.png new file mode 100755 index 000000000..97c0f90c1 Binary files /dev/null and b/package_split/static/description/assets/icons/pos-black.png differ diff --git a/package_split/static/description/assets/icons/puzzle.png b/package_split/static/description/assets/icons/puzzle.png new file mode 100755 index 000000000..65cf854e7 Binary files /dev/null and b/package_split/static/description/assets/icons/puzzle.png differ diff --git a/package_split/static/description/assets/icons/restaurant-black.png b/package_split/static/description/assets/icons/restaurant-black.png new file mode 100755 index 000000000..4a35eb939 Binary files /dev/null and b/package_split/static/description/assets/icons/restaurant-black.png differ diff --git a/package_split/static/description/assets/icons/service-black.png b/package_split/static/description/assets/icons/service-black.png new file mode 100755 index 000000000..301ab51cb Binary files /dev/null and b/package_split/static/description/assets/icons/service-black.png differ diff --git a/package_split/static/description/assets/icons/trading-black.png b/package_split/static/description/assets/icons/trading-black.png new file mode 100755 index 000000000..9398ba2f1 Binary files /dev/null and b/package_split/static/description/assets/icons/trading-black.png differ diff --git a/package_split/static/description/assets/icons/training.png b/package_split/static/description/assets/icons/training.png new file mode 100755 index 000000000..884ca024d Binary files /dev/null and b/package_split/static/description/assets/icons/training.png differ diff --git a/package_split/static/description/assets/icons/update.png b/package_split/static/description/assets/icons/update.png new file mode 100755 index 000000000..ecbc5a01a Binary files /dev/null and b/package_split/static/description/assets/icons/update.png differ diff --git a/package_split/static/description/assets/icons/user.png b/package_split/static/description/assets/icons/user.png new file mode 100755 index 000000000..6ffb23d9f Binary files /dev/null and b/package_split/static/description/assets/icons/user.png differ diff --git a/package_split/static/description/assets/icons/wrench.png b/package_split/static/description/assets/icons/wrench.png new file mode 100755 index 000000000..6c04dea0f Binary files /dev/null and b/package_split/static/description/assets/icons/wrench.png differ diff --git a/package_split/static/description/assets/misc/Cybrosys R.png b/package_split/static/description/assets/misc/Cybrosys R.png new file mode 100755 index 000000000..da4058087 Binary files /dev/null and b/package_split/static/description/assets/misc/Cybrosys R.png differ diff --git a/package_split/static/description/assets/misc/email.svg b/package_split/static/description/assets/misc/email.svg new file mode 100755 index 000000000..15291cdc3 --- /dev/null +++ b/package_split/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/package_split/static/description/assets/misc/phone.svg b/package_split/static/description/assets/misc/phone.svg new file mode 100755 index 000000000..b7bd7f251 --- /dev/null +++ b/package_split/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/package_split/static/description/assets/misc/star (1) 2.svg b/package_split/static/description/assets/misc/star (1) 2.svg new file mode 100755 index 000000000..5ae9f507a --- /dev/null +++ b/package_split/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/package_split/static/description/assets/misc/support (1) 1.svg b/package_split/static/description/assets/misc/support (1) 1.svg new file mode 100755 index 000000000..7d37a8f30 --- /dev/null +++ b/package_split/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/package_split/static/description/assets/misc/support-email.svg b/package_split/static/description/assets/misc/support-email.svg new file mode 100755 index 000000000..eb70370d6 --- /dev/null +++ b/package_split/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/package_split/static/description/assets/misc/tick-mark.svg b/package_split/static/description/assets/misc/tick-mark.svg new file mode 100755 index 000000000..2dbb40187 --- /dev/null +++ b/package_split/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/package_split/static/description/assets/misc/whatsapp 1.svg b/package_split/static/description/assets/misc/whatsapp 1.svg new file mode 100755 index 000000000..0bfaf8fc6 --- /dev/null +++ b/package_split/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/package_split/static/description/assets/misc/whatsapp.svg b/package_split/static/description/assets/misc/whatsapp.svg new file mode 100755 index 000000000..b618aea1d --- /dev/null +++ b/package_split/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/package_split/static/description/assets/modules/l1.png b/package_split/static/description/assets/modules/l1.png new file mode 100755 index 000000000..ca9e86ba7 Binary files /dev/null and b/package_split/static/description/assets/modules/l1.png differ diff --git a/package_split/static/description/assets/modules/l2.png b/package_split/static/description/assets/modules/l2.png new file mode 100755 index 000000000..4774e32ee Binary files /dev/null and b/package_split/static/description/assets/modules/l2.png differ diff --git a/package_split/static/description/assets/modules/l3.png b/package_split/static/description/assets/modules/l3.png new file mode 100755 index 000000000..b17a2667d Binary files /dev/null and b/package_split/static/description/assets/modules/l3.png differ diff --git a/package_split/static/description/assets/modules/l4.png b/package_split/static/description/assets/modules/l4.png new file mode 100755 index 000000000..968bd03c9 Binary files /dev/null and b/package_split/static/description/assets/modules/l4.png differ diff --git a/package_split/static/description/assets/modules/l5.png b/package_split/static/description/assets/modules/l5.png new file mode 100755 index 000000000..f68b76095 Binary files /dev/null and b/package_split/static/description/assets/modules/l5.png differ diff --git a/package_split/static/description/assets/modules/l6.png b/package_split/static/description/assets/modules/l6.png new file mode 100755 index 000000000..eb16e49d0 Binary files /dev/null and b/package_split/static/description/assets/modules/l6.png differ diff --git a/package_split/static/description/assets/screenshots/1.png b/package_split/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..bdebc7aaa Binary files /dev/null and b/package_split/static/description/assets/screenshots/1.png differ diff --git a/package_split/static/description/assets/screenshots/2.png b/package_split/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..9408ba49f Binary files /dev/null and b/package_split/static/description/assets/screenshots/2.png differ diff --git a/package_split/static/description/assets/screenshots/3.png b/package_split/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..249363218 Binary files /dev/null and b/package_split/static/description/assets/screenshots/3.png differ diff --git a/package_split/static/description/assets/screenshots/4.png b/package_split/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..36a41aeb9 Binary files /dev/null and b/package_split/static/description/assets/screenshots/4.png differ diff --git a/package_split/static/description/assets/screenshots/5.png b/package_split/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..09ca804a5 Binary files /dev/null and b/package_split/static/description/assets/screenshots/5.png differ diff --git a/package_split/static/description/assets/screenshots/6.png b/package_split/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..ad88a75c8 Binary files /dev/null and b/package_split/static/description/assets/screenshots/6.png differ diff --git a/package_split/static/description/assets/screenshots/7.png b/package_split/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..30777ee31 Binary files /dev/null and b/package_split/static/description/assets/screenshots/7.png differ diff --git a/package_split/static/description/assets/screenshots/8.png b/package_split/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..dc54ca0fd Binary files /dev/null and b/package_split/static/description/assets/screenshots/8.png differ diff --git a/package_split/static/description/assets/screenshots/Gif.gif b/package_split/static/description/assets/screenshots/Gif.gif new file mode 100644 index 000000000..9ef1e984d Binary files /dev/null and b/package_split/static/description/assets/screenshots/Gif.gif differ diff --git a/package_split/static/description/banner.jpg b/package_split/static/description/banner.jpg new file mode 100644 index 000000000..b63a86885 Binary files /dev/null and b/package_split/static/description/banner.jpg differ diff --git a/package_split/static/description/icon.png b/package_split/static/description/icon.png new file mode 100644 index 000000000..6ee2992a8 Binary files /dev/null and b/package_split/static/description/icon.png differ diff --git a/package_split/static/description/index.html b/package_split/static/description/index.html new file mode 100755 index 000000000..41892f9fe --- /dev/null +++ b/package_split/static/description/index.html @@ -0,0 +1,790 @@ + + + + + + + Categorize & Pack Products + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Categorize & Pack Products

+

+ Effortlessly Categorize And Pack Your Products Based on Package Categories. +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Set Package Category for Products.

+
+
+
+
+
+
+ +
+
+

+ Available in Odoo 16.0 Community and Enterprise.

+
+
+
+
+
+
+ +
+
+

+ Multiple Packages Created Based on Category.

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

+ Enable Packages

+

+ Go to Sales / Inventory Configuration => Settings => Packages. On enabling Packages , Package Split feature is also enabled. +

+
+
+
+
+
+
+ +
+
+

+ Create Package Categories

+

After + Now we can create package categories from Sale => Products => Package Category. +

+
+
+
+
+
+
+ +
+
+

+ Choose Package Category

+

+ On enabling the package split, a field to add package category is enabled inside the product page, and we can create/set the category. +

+
+
+
+
+
+
+ +
+
+

+ Create Sale Order & Put in Pack.

+

+ Now create the sale order & confirm. Inside the delivery by setting the quantity done click put in pack. +

+
+
+
+
+
+
+ +
+
+

+ Now packages are created.Then validate the delivery. +

+
+
+
+
+
+
+ +
+
+

+ Multiple Packages

+

+ Multiple packages are created based on product package category. +

+
+
+
+
+
+
+ +
+
+

Corresponding Products are added in each package. +

+
+
+
+
+
+
+ +
+
+
+
+
+
+
    +
  • + Available in + Odoo 17.0 Community and Enterprise. +
  • +
  • + Generates and + post invoice while validating the delivery +
  • +
  • + Automatic + Invoice And Post +
      +
    • This module generates and post invoice + while validating the delivery.Auto send + invoice by Email when Delivery is Done. + Whenever Delivery order is done this + module creates customer invoice + automatically same as sales order + product price with delivered quantity. + If you enable automatic invoice post + When delivery gets done it automatically + creates a customer invoice and post it + automatically. +
    • +
    +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:6th January 2024 +
+

+ Initial Commit for Automatic Invoice And + Post

+
+
+
+
+
+
+
+

+ 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 +
+
+
+
+
+
+
+
+ + + + + + \ No newline at end of file diff --git a/package_split/views/package_category_views.xml b/package_split/views/package_category_views.xml new file mode 100644 index 000000000..f14a0cf9c --- /dev/null +++ b/package_split/views/package_category_views.xml @@ -0,0 +1,35 @@ + + + + + package.category.view.tree + package.category + + + + + + + + + package.category.view.form + package.category + +
+ + + +
+
+
+ + + Package Category + package.category + tree + + + +
diff --git a/package_split/views/product_template_views.xml b/package_split/views/product_template_views.xml new file mode 100644 index 000000000..2d36fe8bc --- /dev/null +++ b/package_split/views/product_template_views.xml @@ -0,0 +1,15 @@ + + + + product.template.view.form.inherit.package.split + product.template + + + + + + + + + + diff --git a/package_split/views/res_config_settings_views.xml b/package_split/views/res_config_settings_views.xml new file mode 100644 index 000000000..5c25173be --- /dev/null +++ b/package_split/views/res_config_settings_views.xml @@ -0,0 +1,26 @@ + + + + res.config.settings.view.form.inherit.package.split + res.config.settings + + + + + +
+ +
+
+
+
+
+
+
diff --git a/package_split/wizard/__init__.py b/package_split/wizard/__init__.py new file mode 100644 index 000000000..7873d5198 --- /dev/null +++ b/package_split/wizard/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Syamili K () +# +# 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 choose_delivery_package diff --git a/package_split/wizard/choose_delivery_package.py b/package_split/wizard/choose_delivery_package.py new file mode 100644 index 000000000..717f95198 --- /dev/null +++ b/package_split/wizard/choose_delivery_package.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Syamili K () +# +# 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 +from odoo.tools import float_compare + + +class ChooseDeliveryPackage(models.TransientModel): + """This model extends the 'choose.delivery.package' wizard to modify the + behavior of putting products into packages during the delivery process. + It customizes the package creation and updates the package type and + shipping weight for each package based on the chosen delivery package type + and shipping weight.""" + _inherit = 'choose.delivery.package' + + def action_put_in_pack(self): + """Override the action_put_in_pack method to modify the behavior of + putting products into packages during the delivery process. + This method customizes the package creation and updates the package + type and shipping weight for each package. + :return: True if the action is successful""" + picking_move_lines = self.picking_id.move_line_ids + quantity_move_line_ids = picking_move_lines.filtered( + lambda ml: + float_compare(ml.quantity, 0.0, precision_rounding=ml.product_uom_id.rounding) > 0 and + not ml.result_package_id + ) + move_line_ids = quantity_move_line_ids.filtered(lambda ml: ml.picked) + if not move_line_ids: + move_line_ids = quantity_move_line_ids + if self.env.context.get('move_lines_to_pack_ids', False): + move_line_ids = move_line_ids.filtered(lambda ml: ml.id in self.env.context['move_lines_to_pack_ids']) + delivery_packages = self.picking_id._put_in_pack(move_line_ids) + # Loop through each package and write shipping weight and package type + # on 'stock_quant_package' if needed + for package in delivery_packages: + if self.delivery_package_type_id: + package.write( + {'package_type_id': self.delivery_package_type_id.id}) + if self.shipping_weight: + package.write({'shipping_weight': self.shipping_weight})