diff --git a/product_multi_uom/README.rst b/product_multi_uom/README.rst new file mode 100644 index 000000000..6012184ad --- /dev/null +++ b/product_multi_uom/README.rst @@ -0,0 +1,47 @@ +.. 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 + +Product Multi UoM +================= +This module help to sell a product with multiple Uom category. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Affero General Public License v3.0 (AGPL v3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +Developer: (v15) SANEEN K @ cybrosys +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: ``__ \ No newline at end of file diff --git a/product_multi_uom/__init__.py b/product_multi_uom/__init__.py new file mode 100644 index 000000000..cf38177e2 --- /dev/null +++ b/product_multi_uom/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Saneen 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 diff --git a/product_multi_uom/__manifest__.py b/product_multi_uom/__manifest__.py new file mode 100644 index 000000000..c236394e1 --- /dev/null +++ b/product_multi_uom/__manifest__.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Saneen 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': "Product Multi UoM", + 'version': '15.0.1.0.0', + 'category': 'Sales', + 'summary': 'This module help to sell a product with multiple Uom category', + 'description': "This versatile module empowers your sales strategy by " + "seamlessly handling products with diverse unit of measure " + "categories. Whether you're selling by length, weight, " + "quantity, or more, this module ensures a streamlined and" + " efficient process, allowing you to offer and sell your " + "products with different UOM categories effortlessly.", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'sale_management'], + 'data': [ + 'security/ir.model.access.csv', + 'views/product_template_views.xml', + 'views/sale_order_line_views.xml', + 'views/secondary_uom_line_views.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/product_multi_uom/doc/RELEASE_NOTES.md b/product_multi_uom/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..918870294 --- /dev/null +++ b/product_multi_uom/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 04.03.2024 +#### Version 15.0.1.0.0 +#### ADD +-Initial Commit for Product Multi UoM. \ No newline at end of file diff --git a/product_multi_uom/models/__init__.py b/product_multi_uom/models/__init__.py new file mode 100644 index 000000000..14d7258db --- /dev/null +++ b/product_multi_uom/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Saneen 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 product_template +from . import sale_order_line +from . import secondary_uom_line diff --git a/product_multi_uom/models/product_template.py b/product_multi_uom/models/product_template.py new file mode 100644 index 000000000..c9e57e486 --- /dev/null +++ b/product_multi_uom/models/product_template.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Saneen 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 ProductTemplate(models.Model): + """Inherits the 'product.template' for adding the secondary uom""" + _inherit = "product.template" + + is_need_secondary_uom = fields.Boolean(string="Need Secondary UoM's", + help="Enable this field for " + "using the secondary uom") + secondary_uom_ids = fields.One2many('secondary.uom.line', 'product_id', + string="Secondary UoM's", + help='Select the secondary UoM and ' + 'their ratio', store=True) + + @api.onchange('is_need_secondary_uom') + def _onchange_is_need_secondary_uom(self): + """Function that write the default Uom and their ratio to the + secondary uom""" + base_uom = self.env['uom.uom'].sudo().search( + [('category_id', '=', self.uom_id.category_id.id)]) + if not self.secondary_uom_ids: + for uom in base_uom: + self.write({ + 'secondary_uom_ids': [(0, 0, { + 'secondary_uom_id': uom.id, + 'secondary_uom_ratio': float(uom.factor_inv), + 'example_ratio': f" 1 {uom.name} = {uom.factor_inv}" + f" {self.uom_id.name}", + })] + }) diff --git a/product_multi_uom/models/sale_order_line.py b/product_multi_uom/models/sale_order_line.py new file mode 100644 index 000000000..350d279ac --- /dev/null +++ b/product_multi_uom/models/sale_order_line.py @@ -0,0 +1,80 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Saneen 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 SaleOrderLine(models.Model): + """Inherits the class sale.order.line for adding the fields for + secondary uom and the secondary uom Quantity""" + _inherit = 'sale.order.line' + + secondary_uom_ids = fields.Many2many('uom.uom', + string="Secondary Uom Ids", + help="For fetching all the Secondary" + " Uom's") + secondary_product_uom_id = fields.Many2one( + 'uom.uom', string='Secondary UoM', + compute='_compute_secondary_product_uom', store=True, readonly=False, + help="Select the Secondary Uom", + domain="[('id', 'in', secondary_uom_ids)]") + secondary_product_uom_qty = fields.Float(string='Secondary Quantity', + help="Select the Secondary Uom " + "Quantity", default=1) + is_secondary_readonly = fields.Boolean(string="Is Secondary Uom", + help="The field to check whether" + " the selected uom is" + " secondary and if yes then " + "make the field readonly") + + @api.onchange('secondary_product_uom_id', 'secondary_product_uom_qty') + def _onchange_secondary_product_uom_id(self): + """Function that update the product_uom_qty as the value in the + secondary uom quantity""" + all_uom = [] + if self.product_template_id.is_need_secondary_uom: + self.is_secondary_readonly = True + for uom in self.product_template_id.secondary_uom_ids: + all_uom.append(uom.secondary_uom_id.id) + if self.is_secondary_readonly: + self.product_uom_readonly = True + if self.secondary_product_uom_id.id in all_uom: + primary_uom_ratio = self.env['secondary.uom.line'].search( + [('secondary_uom_id', '=', self.secondary_product_uom_id.id), + ('product_id', '=', self.product_template_id.id)]).mapped( + 'secondary_uom_ratio') + converted_uom_qty = primary_uom_ratio[ + 0] * self.secondary_product_uom_qty + self.product_uom_qty = converted_uom_qty + + @api.depends('product_id') + def _compute_secondary_product_uom(self): + """Compute the default secondary uom""" + for rec in self: + if (not rec.product_uom or + rec.product_id.uom_id.id != rec.secondary_product_uom_id.id): + rec.secondary_product_uom_id = rec.product_id.uom_id + all_secondary_uoms = rec.product_id.secondary_uom_ids.mapped( + 'secondary_uom_id') + if rec.product_id.is_need_secondary_uom and all_secondary_uoms: + rec.write({ + 'secondary_uom_ids': [(6, 0, all_secondary_uoms.ids)] + }) diff --git a/product_multi_uom/models/secondary_uom_line.py b/product_multi_uom/models/secondary_uom_line.py new file mode 100644 index 000000000..270f5b4c1 --- /dev/null +++ b/product_multi_uom/models/secondary_uom_line.py @@ -0,0 +1,63 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Saneen 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, _ +from odoo.exceptions import ValidationError + + +class SecondaryUomLine(models.Model): + """Model Class for Secondary Uom Line + This class represents the secondary unit of measure (UOM) line in the + system. + It is designed to store information related to secondary UOMs.""" + _name = "secondary.uom.line" + _description = "Secondary Uom Line" + + secondary_uom_id = fields.Many2one('uom.uom', string='Secondary UoM', + help="Select the Secondary UoM", + required=True) + product_id = fields.Many2one('product.template', readonly=True, + string="Product", + help="Product having the Secondary UOM") + secondary_uom_ratio = fields.Float(string='Secondary UoM Ratio', + help="Choose the ratio with the base" + " Unit of Measure.") + example_ratio = fields.Char(string='Ratio', readonly=True, + help="Ratio of base Uom and the secondary Uom", + store=True) + + @api.onchange('secondary_uom_id', 'secondary_uom_ratio') + def _onchange_secondary_uom_id(self): + """Function that write the ratio in to the example ratio field and + check whether the selected secondary uom is already included in the + uom list""" + if self.secondary_uom_id and self.secondary_uom_ratio: + self.example_ratio = (f" 1 {self.secondary_uom_id.name} = " + f" {self.secondary_uom_ratio} " + f"{self.product_id.uom_id.name}") + if self._context.get('params'): + sec_uom_ids = self.env['product.template'].browse( + self._context.get('params').get('id')).secondary_uom_ids.mapped( + 'secondary_uom_id.id') + if self.secondary_uom_id.id in sec_uom_ids: + raise ValidationError( + _('This Unit of Measure is already exist in the secondary ' + 'uom list. Please select another uom for secondary uom')) diff --git a/product_multi_uom/security/ir.model.access.csv b/product_multi_uom/security/ir.model.access.csv new file mode 100644 index 000000000..e0d179d65 --- /dev/null +++ b/product_multi_uom/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_secondary_uom_line,access.secondary.uom.line,model_secondary_uom_line,base.group_erp_manager,1,1,1,1 +access_secondary_uom_line_user,access.secondary.uom.line.user,model_secondary_uom_line,base.group_user,1,0,0,0 diff --git a/product_multi_uom/static/description/assets/icons/check.png b/product_multi_uom/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/check.png differ diff --git a/product_multi_uom/static/description/assets/icons/chevron.png b/product_multi_uom/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/chevron.png differ diff --git a/product_multi_uom/static/description/assets/icons/cogs.png b/product_multi_uom/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/cogs.png differ diff --git a/product_multi_uom/static/description/assets/icons/consultation.png b/product_multi_uom/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/consultation.png differ diff --git a/product_multi_uom/static/description/assets/icons/ecom-black.png b/product_multi_uom/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/ecom-black.png differ diff --git a/product_multi_uom/static/description/assets/icons/education-black.png b/product_multi_uom/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/education-black.png differ diff --git a/product_multi_uom/static/description/assets/icons/hotel-black.png b/product_multi_uom/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/hotel-black.png differ diff --git a/product_multi_uom/static/description/assets/icons/license.png b/product_multi_uom/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/license.png differ diff --git a/product_multi_uom/static/description/assets/icons/lifebuoy.png b/product_multi_uom/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/lifebuoy.png differ diff --git a/product_multi_uom/static/description/assets/icons/manufacturing-black.png b/product_multi_uom/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/manufacturing-black.png differ diff --git a/product_multi_uom/static/description/assets/icons/pos-black.png b/product_multi_uom/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/pos-black.png differ diff --git a/product_multi_uom/static/description/assets/icons/puzzle.png b/product_multi_uom/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/puzzle.png differ diff --git a/product_multi_uom/static/description/assets/icons/restaurant-black.png b/product_multi_uom/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/restaurant-black.png differ diff --git a/product_multi_uom/static/description/assets/icons/service-black.png b/product_multi_uom/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/service-black.png differ diff --git a/product_multi_uom/static/description/assets/icons/trading-black.png b/product_multi_uom/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/trading-black.png differ diff --git a/product_multi_uom/static/description/assets/icons/training.png b/product_multi_uom/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/training.png differ diff --git a/product_multi_uom/static/description/assets/icons/update.png b/product_multi_uom/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/update.png differ diff --git a/product_multi_uom/static/description/assets/icons/user.png b/product_multi_uom/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/user.png differ diff --git a/product_multi_uom/static/description/assets/icons/wrench.png b/product_multi_uom/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/wrench.png differ diff --git a/product_multi_uom/static/description/assets/misc/categories.png b/product_multi_uom/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/product_multi_uom/static/description/assets/misc/categories.png differ diff --git a/product_multi_uom/static/description/assets/misc/check-box.png b/product_multi_uom/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/product_multi_uom/static/description/assets/misc/check-box.png differ diff --git a/product_multi_uom/static/description/assets/misc/compass.png b/product_multi_uom/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/product_multi_uom/static/description/assets/misc/compass.png differ diff --git a/product_multi_uom/static/description/assets/misc/corporate.png b/product_multi_uom/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/product_multi_uom/static/description/assets/misc/corporate.png differ diff --git a/product_multi_uom/static/description/assets/misc/customer-support.png b/product_multi_uom/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/product_multi_uom/static/description/assets/misc/customer-support.png differ diff --git a/product_multi_uom/static/description/assets/misc/cybrosys-logo.png b/product_multi_uom/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/product_multi_uom/static/description/assets/misc/cybrosys-logo.png differ diff --git a/product_multi_uom/static/description/assets/misc/features.png b/product_multi_uom/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/product_multi_uom/static/description/assets/misc/features.png differ diff --git a/product_multi_uom/static/description/assets/misc/logo.png b/product_multi_uom/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/product_multi_uom/static/description/assets/misc/logo.png differ diff --git a/product_multi_uom/static/description/assets/misc/pictures.png b/product_multi_uom/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/product_multi_uom/static/description/assets/misc/pictures.png differ diff --git a/product_multi_uom/static/description/assets/misc/pie-chart.png b/product_multi_uom/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/product_multi_uom/static/description/assets/misc/pie-chart.png differ diff --git a/product_multi_uom/static/description/assets/misc/right-arrow.png b/product_multi_uom/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/product_multi_uom/static/description/assets/misc/right-arrow.png differ diff --git a/product_multi_uom/static/description/assets/misc/star.png b/product_multi_uom/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/product_multi_uom/static/description/assets/misc/star.png differ diff --git a/product_multi_uom/static/description/assets/misc/support.png b/product_multi_uom/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/product_multi_uom/static/description/assets/misc/support.png differ diff --git a/product_multi_uom/static/description/assets/misc/whatsapp.png b/product_multi_uom/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/product_multi_uom/static/description/assets/misc/whatsapp.png differ diff --git a/product_multi_uom/static/description/assets/modules/1.png b/product_multi_uom/static/description/assets/modules/1.png new file mode 100644 index 000000000..004c61a9e Binary files /dev/null and b/product_multi_uom/static/description/assets/modules/1.png differ diff --git a/product_multi_uom/static/description/assets/modules/2.png b/product_multi_uom/static/description/assets/modules/2.png new file mode 100644 index 000000000..04d502e26 Binary files /dev/null and b/product_multi_uom/static/description/assets/modules/2.png differ diff --git a/product_multi_uom/static/description/assets/modules/3.png b/product_multi_uom/static/description/assets/modules/3.png new file mode 100644 index 000000000..c4b3a2088 Binary files /dev/null and b/product_multi_uom/static/description/assets/modules/3.png differ diff --git a/product_multi_uom/static/description/assets/modules/4.png b/product_multi_uom/static/description/assets/modules/4.png new file mode 100644 index 000000000..958ed2bf4 Binary files /dev/null and b/product_multi_uom/static/description/assets/modules/4.png differ diff --git a/product_multi_uom/static/description/assets/modules/5.png b/product_multi_uom/static/description/assets/modules/5.png new file mode 100644 index 000000000..c138dd7c2 Binary files /dev/null and b/product_multi_uom/static/description/assets/modules/5.png differ diff --git a/product_multi_uom/static/description/assets/modules/6.png b/product_multi_uom/static/description/assets/modules/6.png new file mode 100644 index 000000000..09e2d45b2 Binary files /dev/null and b/product_multi_uom/static/description/assets/modules/6.png differ diff --git a/product_multi_uom/static/description/assets/screenshots/1.png b/product_multi_uom/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..c6747df96 Binary files /dev/null and b/product_multi_uom/static/description/assets/screenshots/1.png differ diff --git a/product_multi_uom/static/description/assets/screenshots/10.png b/product_multi_uom/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..624442f1a Binary files /dev/null and b/product_multi_uom/static/description/assets/screenshots/10.png differ diff --git a/product_multi_uom/static/description/assets/screenshots/2.png b/product_multi_uom/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..71bbdd345 Binary files /dev/null and b/product_multi_uom/static/description/assets/screenshots/2.png differ diff --git a/product_multi_uom/static/description/assets/screenshots/3.png b/product_multi_uom/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..d2a261e1e Binary files /dev/null and b/product_multi_uom/static/description/assets/screenshots/3.png differ diff --git a/product_multi_uom/static/description/assets/screenshots/4.png b/product_multi_uom/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..770b2ebf7 Binary files /dev/null and b/product_multi_uom/static/description/assets/screenshots/4.png differ diff --git a/product_multi_uom/static/description/assets/screenshots/5.png b/product_multi_uom/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..e2a23a83d Binary files /dev/null and b/product_multi_uom/static/description/assets/screenshots/5.png differ diff --git a/product_multi_uom/static/description/assets/screenshots/6.png b/product_multi_uom/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..81468dd04 Binary files /dev/null and b/product_multi_uom/static/description/assets/screenshots/6.png differ diff --git a/product_multi_uom/static/description/assets/screenshots/7.png b/product_multi_uom/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..2b84e7e52 Binary files /dev/null and b/product_multi_uom/static/description/assets/screenshots/7.png differ diff --git a/product_multi_uom/static/description/assets/screenshots/8.png b/product_multi_uom/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..1baffcffe Binary files /dev/null and b/product_multi_uom/static/description/assets/screenshots/8.png differ diff --git a/product_multi_uom/static/description/assets/screenshots/9.png b/product_multi_uom/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..f9f991651 Binary files /dev/null and b/product_multi_uom/static/description/assets/screenshots/9.png differ diff --git a/product_multi_uom/static/description/assets/screenshots/hero.gif b/product_multi_uom/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..c06045cff Binary files /dev/null and b/product_multi_uom/static/description/assets/screenshots/hero.gif differ diff --git a/product_multi_uom/static/description/banner.png b/product_multi_uom/static/description/banner.png new file mode 100644 index 000000000..98e788001 Binary files /dev/null and b/product_multi_uom/static/description/banner.png differ diff --git a/product_multi_uom/static/description/icon.png b/product_multi_uom/static/description/icon.png new file mode 100644 index 000000000..043d8853e Binary files /dev/null and b/product_multi_uom/static/description/icon.png differ diff --git a/product_multi_uom/static/description/index.html b/product_multi_uom/static/description/index.html new file mode 100644 index 000000000..b606c55bf --- /dev/null +++ b/product_multi_uom/static/description/index.html @@ -0,0 +1,639 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Product Multi UoM

+

+ This Module Help to Sell a Product with Multiple Uom Category

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ With this Module, you can Easily Sell your Products by Weight (Kilograms), Length (Meters), + or Simply as Individual Units. It's a Convenient Way to Offer your Products in Different Formats to Meet + your Customers' Needs. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Enable Smooth Product Sales with Diverse Unit Options. Each Unit, Categorized Uniquely, + Empowers Customers to choose the Perfect Measure whether by Weight, Length, or any + other Tailored to their Specific Needs. +
+
+ + Effortlessly Sell your Products with Diverse Units of Measure that Share + the same Category, such as 'Kilograms', 'Grams', 'Milligrams', and more. +
+
+ + Sell your Products with different Uom having different Uom Category. +
+
+ + Sell your Product in Different Ways! Whether it's by Weight, Length, or any other + Measure, you have the Flexibility to Offer Various Units, Making it Easy for your + Customers to Choose what Suits them Best. +
+
+
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

+ Enable 'Unit of Measure' In Configuration Settings of Sale. +

+ +
+ +
+

+ Enable the 'Need Secondary UoM's' Boolean Field in the Product Form View. +

+ +
+ +
+

+ We can See the Base UoM's of the Product and it's Conversion. +

+ +
+ +
+

+ By Clicking the 'Add a line' we have a Popup for Adding the Secondary Unit of Measures. +

+ +
+ +
+

+ Set the Values for the Secondary UoM, and it's Ratio Based on the Base Unit. +

+ +
+ +
+

+ Like this we can Add more Secondary UoM for this Product. +

+ +
+ +
+

+ When Creating a Sales Order, you'll Notice Fields for 'Secondary UoM' and 'Secondary Quantity' in the Order Line. + Alongside, the Base UoM and its Corresponding Quantity are also Displayed for Reference. + Add any Product, Secondary UoM and Secondary Quantity. +

+ +
+ +
+

+ We can Use Base UoM for the Particular Product by Disabling the 'Need Secondary UoM's' Field in the Product Form View. +

+ +
+ +
+

+ If we Select a Product without a Secondary Unit of Measure, we are Limited to Adding only the Base unit and + its Quantity in the Order Line. The Option to Input Values into the Secondary Unit of Measure Field is not + Available in such Cases. +

+ +
+ +
+

+ The Delivery for the Corresponding Sale Order. +

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

Related + Products +

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

+ Our Services +

+
+
+
+
+
+ +
+
+ Odoo + Customization
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Support
+
+
+
+ +
+
+ Hire + Odoo + Developer
+
+
+
+ +
+
+ Odoo + Integration
+
+
+
+ +
+
+ Odoo + Migration
+
+
+
+ +
+
+ Odoo + Consultancy
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + + +
+
+ +
+

+ Our + Industries +

+
+
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

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

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/product_multi_uom/views/product_template_views.xml b/product_multi_uom/views/product_template_views.xml new file mode 100644 index 000000000..7592f9212 --- /dev/null +++ b/product_multi_uom/views/product_template_views.xml @@ -0,0 +1,21 @@ + + + + + product.template.view.form.inherit.product.multi.uom + product.template + + + + + + + + + + + + + + + diff --git a/product_multi_uom/views/sale_order_line_views.xml b/product_multi_uom/views/sale_order_line_views.xml new file mode 100644 index 000000000..91d426ba5 --- /dev/null +++ b/product_multi_uom/views/sale_order_line_views.xml @@ -0,0 +1,24 @@ + + + + + sale.order.view.form.inherit.product.multi.uom + + sale.order + + + + + + + + + {'readonly': [('is_secondary_readonly', '==', True)]} + + + {'readonly': [('product_uom_readonly', '==', True)]} + {'force_save': 1} + + + + diff --git a/product_multi_uom/views/secondary_uom_line_views.xml b/product_multi_uom/views/secondary_uom_line_views.xml new file mode 100644 index 000000000..f5590264e --- /dev/null +++ b/product_multi_uom/views/secondary_uom_line_views.xml @@ -0,0 +1,20 @@ + + + + + secondary.uom.line.view.form + secondary.uom.line + +
+ + + + + + + + +
+
+
+