diff --git a/product_multi_uom/README.rst b/product_multi_uom/README.rst new file mode 100644 index 000000000..1b98b973a --- /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: (v18) Ammu Raj, +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/product_multi_uom/__init__.py b/product_multi_uom/__init__.py new file mode 100644 index 000000000..3f7373290 --- /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: Ammu Raj () +# +# 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..2de05255f --- /dev/null +++ b/product_multi_uom/__manifest__.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ammu Raj () +# +# 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': '18.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': ['sale_management'], + 'data': [ + 'security/ir.model.access.csv', + 'views/product_product_views.xml', + 'views/sale_order_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..03f9fcb09 --- /dev/null +++ b/product_multi_uom/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 11.11.2024 +#### Version 18.0.1.0.0 +##### ADD +- Initial Commit for Product Multi UoM diff --git a/product_multi_uom/models/__init__.py b/product_multi_uom/models/__init__.py new file mode 100644 index 000000000..08d95ed4d --- /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: Ammu Raj () +# +# 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_product +from . import sale_order_line +from . import secondary_uom_line diff --git a/product_multi_uom/models/product_product.py b/product_multi_uom/models/product_product.py new file mode 100644 index 000000000..c731332a8 --- /dev/null +++ b/product_multi_uom/models/product_product.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ammu Raj () +# +# 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 ProductProduct(models.Model): + """Inherits the 'product.template' for adding the secondary uom""" + _inherit = "product.product" + + 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..d41a8d569 --- /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: Ammu Raj () +# +# 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_id.is_need_secondary_uom: + self.is_secondary_readonly = True + for uom in self.product_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_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..80ac5d7d7 --- /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: Ammu Raj () +# +# 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.product', 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/cybro-icon.png b/product_multi_uom/static/description/assets/cybro-icon.png new file mode 100644 index 000000000..06e73e11d Binary files /dev/null and b/product_multi_uom/static/description/assets/cybro-icon.png differ diff --git a/product_multi_uom/static/description/assets/cybro-odoo.png b/product_multi_uom/static/description/assets/cybro-odoo.png new file mode 100644 index 000000000..ed02e07a4 Binary files /dev/null and b/product_multi_uom/static/description/assets/cybro-odoo.png differ diff --git a/product_multi_uom/static/description/assets/h2.png b/product_multi_uom/static/description/assets/h2.png new file mode 100644 index 000000000..0bfc4707d Binary files /dev/null and b/product_multi_uom/static/description/assets/h2.png differ diff --git a/product_multi_uom/static/description/assets/icons/arrows-repeat.svg b/product_multi_uom/static/description/assets/icons/arrows-repeat.svg new file mode 100644 index 000000000..1d7efabc5 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_multi_uom/static/description/assets/icons/banner-1.png b/product_multi_uom/static/description/assets/icons/banner-1.png new file mode 100644 index 000000000..c180db172 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/banner-1.png differ diff --git a/product_multi_uom/static/description/assets/icons/banner-2.svg b/product_multi_uom/static/description/assets/icons/banner-2.svg new file mode 100644 index 000000000..e606d97d9 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_multi_uom/static/description/assets/icons/banner-bg.png b/product_multi_uom/static/description/assets/icons/banner-bg.png new file mode 100644 index 000000000..a8238d3c0 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/banner-bg.png differ diff --git a/product_multi_uom/static/description/assets/icons/banner-bg.svg b/product_multi_uom/static/description/assets/icons/banner-bg.svg new file mode 100644 index 000000000..b1378103e --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/product_multi_uom/static/description/assets/icons/banner-call.svg b/product_multi_uom/static/description/assets/icons/banner-call.svg new file mode 100644 index 000000000..96c687e81 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/product_multi_uom/static/description/assets/icons/banner-mail.svg b/product_multi_uom/static/description/assets/icons/banner-mail.svg new file mode 100644 index 000000000..cbf0d158d --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/product_multi_uom/static/description/assets/icons/banner-pattern.svg b/product_multi_uom/static/description/assets/icons/banner-pattern.svg new file mode 100644 index 000000000..9c1c7e101 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_multi_uom/static/description/assets/icons/banner-promo.svg b/product_multi_uom/static/description/assets/icons/banner-promo.svg new file mode 100644 index 000000000..d52791b11 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_multi_uom/static/description/assets/icons/brand-pair.svg b/product_multi_uom/static/description/assets/icons/brand-pair.svg new file mode 100644 index 000000000..d8db7fc1e --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/close-icon.svg b/product_multi_uom/static/description/assets/icons/close-icon.svg new file mode 100644 index 000000000..df8cce37a --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + 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/collabarate-icon.svg b/product_multi_uom/static/description/assets/icons/collabarate-icon.svg new file mode 100644 index 000000000..dd4e10518 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + 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/cybro-logo.png b/product_multi_uom/static/description/assets/icons/cybro-logo.png new file mode 100644 index 000000000..ff4b78220 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/cybro-logo.png differ diff --git a/product_multi_uom/static/description/assets/icons/down.svg b/product_multi_uom/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file 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/faq.png b/product_multi_uom/static/description/assets/icons/faq.png new file mode 100644 index 000000000..4250b5b81 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/faq.png differ diff --git a/product_multi_uom/static/description/assets/icons/feature-icon.svg b/product_multi_uom/static/description/assets/icons/feature-icon.svg new file mode 100644 index 000000000..fa0ea6850 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_multi_uom/static/description/assets/icons/feature.png b/product_multi_uom/static/description/assets/icons/feature.png new file mode 100644 index 000000000..ac7a785c0 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/feature.png differ diff --git a/product_multi_uom/static/description/assets/icons/gear.svg b/product_multi_uom/static/description/assets/icons/gear.svg new file mode 100644 index 000000000..0cc66b6ea --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_multi_uom/static/description/assets/icons/hero.gif b/product_multi_uom/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..380654dfe Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/hero.gif differ diff --git a/product_multi_uom/static/description/assets/icons/hire-odoo.svg b/product_multi_uom/static/description/assets/icons/hire-odoo.svg new file mode 100644 index 000000000..e1ac089b0 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + 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/life-ring-icon.svg b/product_multi_uom/static/description/assets/icons/life-ring-icon.svg new file mode 100644 index 000000000..3ae6e1d89 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + 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/mail.svg b/product_multi_uom/static/description/assets/icons/mail.svg new file mode 100644 index 000000000..1eedde695 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + 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/notes.png b/product_multi_uom/static/description/assets/icons/notes.png new file mode 100644 index 000000000..ee5e95404 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/notes.png differ diff --git a/product_multi_uom/static/description/assets/icons/notification icon.svg b/product_multi_uom/static/description/assets/icons/notification icon.svg new file mode 100644 index 000000000..053189973 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_multi_uom/static/description/assets/icons/odoo-consultancy.svg b/product_multi_uom/static/description/assets/icons/odoo-consultancy.svg new file mode 100644 index 000000000..e05f65bde --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/product_multi_uom/static/description/assets/icons/odoo-licencing.svg b/product_multi_uom/static/description/assets/icons/odoo-licencing.svg new file mode 100644 index 000000000..2606c88b0 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/product_multi_uom/static/description/assets/icons/odoo-logo.png b/product_multi_uom/static/description/assets/icons/odoo-logo.png new file mode 100644 index 000000000..0e4d0eb5a Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/odoo-logo.png differ diff --git a/product_multi_uom/static/description/assets/icons/patter.svg b/product_multi_uom/static/description/assets/icons/patter.svg new file mode 100644 index 000000000..25c9c0a8f --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/product_multi_uom/static/description/assets/icons/pattern1.png b/product_multi_uom/static/description/assets/icons/pattern1.png new file mode 100644 index 000000000..09ab0fb2d Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/pattern1.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-piece-icon.svg b/product_multi_uom/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100644 index 000000000..3e9ad9373 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/replace-icon.svg b/product_multi_uom/static/description/assets/icons/replace-icon.svg new file mode 100644 index 000000000..d0e3a7af1 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/screenshot-main.png b/product_multi_uom/static/description/assets/icons/screenshot-main.png new file mode 100644 index 000000000..575f8e676 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/screenshot-main.png differ diff --git a/product_multi_uom/static/description/assets/icons/screenshot.png b/product_multi_uom/static/description/assets/icons/screenshot.png new file mode 100644 index 000000000..cef272529 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/screenshot.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/skype-fill.svg b/product_multi_uom/static/description/assets/icons/skype-fill.svg new file mode 100644 index 000000000..c17423639 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_multi_uom/static/description/assets/icons/skype.png b/product_multi_uom/static/description/assets/icons/skype.png new file mode 100644 index 000000000..51b409fb3 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/skype.png differ diff --git a/product_multi_uom/static/description/assets/icons/skype.svg b/product_multi_uom/static/description/assets/icons/skype.svg new file mode 100644 index 000000000..df3dad39b --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/product_multi_uom/static/description/assets/icons/star-1.svg b/product_multi_uom/static/description/assets/icons/star-1.svg new file mode 100644 index 000000000..7e55ab162 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_multi_uom/static/description/assets/icons/star-2.svg b/product_multi_uom/static/description/assets/icons/star-2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/product_multi_uom/static/description/assets/icons/support.png b/product_multi_uom/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/support.png differ diff --git a/product_multi_uom/static/description/assets/icons/test-1 - Copy.png b/product_multi_uom/static/description/assets/icons/test-1 - Copy.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/test-1 - Copy.png differ diff --git a/product_multi_uom/static/description/assets/icons/test-1.png b/product_multi_uom/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..0908add2b Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/test-1.png differ diff --git a/product_multi_uom/static/description/assets/icons/test-2.png b/product_multi_uom/static/description/assets/icons/test-2.png new file mode 100644 index 000000000..4671fe91e Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/test-2.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/translate.svg b/product_multi_uom/static/description/assets/icons/translate.svg new file mode 100644 index 000000000..af9c8a1aa --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/video.png b/product_multi_uom/static/description/assets/icons/video.png new file mode 100644 index 000000000..576705b17 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/video.png differ diff --git a/product_multi_uom/static/description/assets/icons/whatsapp.png b/product_multi_uom/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/product_multi_uom/static/description/assets/icons/whatsapp.png differ diff --git a/product_multi_uom/static/description/assets/icons/wrench-icon.svg b/product_multi_uom/static/description/assets/icons/wrench-icon.svg new file mode 100644 index 000000000..174b5a465 --- /dev/null +++ b/product_multi_uom/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/modules/1.jpg b/product_multi_uom/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..3cb15fe01 Binary files /dev/null and b/product_multi_uom/static/description/assets/modules/1.jpg differ diff --git a/product_multi_uom/static/description/assets/modules/2.jpg b/product_multi_uom/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..662cadcc3 Binary files /dev/null and b/product_multi_uom/static/description/assets/modules/2.jpg differ diff --git a/product_multi_uom/static/description/assets/modules/3.jpg b/product_multi_uom/static/description/assets/modules/3.jpg new file mode 100644 index 000000000..717a00443 Binary files /dev/null and b/product_multi_uom/static/description/assets/modules/3.jpg 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..00ebf54ad 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.jpg b/product_multi_uom/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..7c67e2eec Binary files /dev/null and b/product_multi_uom/static/description/assets/modules/5.jpg differ diff --git a/product_multi_uom/static/description/assets/modules/6.gif b/product_multi_uom/static/description/assets/modules/6.gif new file mode 100644 index 000000000..a35ece8df Binary files /dev/null and b/product_multi_uom/static/description/assets/modules/6.gif 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..c0aba102a 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/2.png b/product_multi_uom/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..db7db3b38 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..2548f6347 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..1b98877d4 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..c3736e34b 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..9c339c40f 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..5bbb0d1f9 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/GIF.gif b/product_multi_uom/static/description/assets/screenshots/GIF.gif new file mode 100644 index 000000000..41440193b Binary files /dev/null and b/product_multi_uom/static/description/assets/screenshots/GIF.gif differ diff --git a/product_multi_uom/static/description/assets/y18.jpg b/product_multi_uom/static/description/assets/y18.jpg new file mode 100644 index 000000000..eea1714f2 Binary files /dev/null and b/product_multi_uom/static/description/assets/y18.jpg 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..d2094985a 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..ddbc30de8 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..7f3ff375a --- /dev/null +++ b/product_multi_uom/static/description/index.html @@ -0,0 +1,1086 @@ + + + + + + Product Multi UoM + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+ + + + +
+
+ +
+
+
+
+

+ With this Module, you can easily Sell your Products by Weight (Kilograms), Length (Meters), + or Simply as Individual Units. +

+

Product Multi UoM +

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

Key + Highlights

+
+
+
+
+ +
+
+ Efficient Product Sales +
+

+ 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.

+
+
+
+
+
+ +
+
+ Diverse Units of Measure +
+

+ Effortlessly Sell your Products with Diverse Units of Measure that Share + the same Category, such as 'Kilograms', 'Grams', 'Milligrams', and more. +

+
+
+
+
+
+ +
+
+ Compatibility +
+

+ Designed to work with both Odoo Community and Enterprise editions. +

+
+
+ +
+
+ +
+
+
+ Product Multi UoM +

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

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

+ Configuration + +

+
+
+

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

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

+ + Enable the Need Secondary UoM's +

+
+
+

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

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

+ Base UoM's of the Product + +

+
+
+

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

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

+ Add Products + +

+
+
+

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

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

+ Set the Values for the Secondary UoM + +

+
+
+

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

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

+ Secondary UoM + +

+
+
+

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

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

+ Sale Order + +

+
+
+

+ When Creating a Sale 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. +

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

+ Enable seamless product sales with versatile unit options, each belonging to its unique category. + Whether it's selling by weight, length, or any other unit, this feature ensures your customers can + choose the unit of measure that perfectly fits their requirements. +

+
+ +
+
+
+
+
+
+ +
+

+ 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.

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

+ This module enables you to sell your products based on weight (kilograms), length (meters), or as individual units, providing flexibility in how you price and sell your items. +

+
+
+ +
+ +
+

+ Yes, you can offer different selling methods for each product, allowing customers to choose how they want to purchase based on their needs. +

+
+
+ +
+ +
+

+ Absolutely! You can set a price for individual units, making it easy for customers to buy exact quantities without needing to measure weight or length. +

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

+ Latest Release 18.0.1.0.0 +

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

+ Related Products +

+ +
+ + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/product_multi_uom/views/product_product_views.xml b/product_multi_uom/views/product_product_views.xml new file mode 100644 index 000000000..3f435bb04 --- /dev/null +++ b/product_multi_uom/views/product_product_views.xml @@ -0,0 +1,24 @@ + + + + + product.product.view.form.inherit.product.multi.uom + + product.product + + + + + + + + + + + + + + + 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..2b92bce98 --- /dev/null +++ b/product_multi_uom/views/sale_order_line_views.xml @@ -0,0 +1,34 @@ + + + + + sale.order.view.form.inherit.product.multi.uom + + + sale.order + + + + + + + + + is_secondary_readonly == True + + + + is_secondary_readonly == True + + 1 + + + + +