diff --git a/cw_sale/README.rst b/cw_sale/README.rst new file mode 100644 index 000000000..bff8b6575 --- /dev/null +++ b/cw_sale/README.rst @@ -0,0 +1,50 @@ +.. 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 + +Catch Weight Management: Sales +============================== +* Helps to maintain catch weight in Sales module + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer:(V15) Unnimaya C O, 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/cw_sale/__init__.py b/cw_sale/__init__.py new file mode 100644 index 000000000..05bfd6ce6 --- /dev/null +++ b/cw_sale/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Unnimaya C O (odoo@cybrosys.com) +# +# 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/cw_sale/__manifest__.py b/cw_sale/__manifest__.py new file mode 100644 index 000000000..dcd72530d --- /dev/null +++ b/cw_sale/__manifest__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Unnimaya C O (odoo@cybrosys.com) +# +# 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': "Catch Weight Management: Sales", + 'version': '15.0.1.0.0', + 'category': 'Sales', + 'summary': """Enable Catch Weight Management System in Sales Module """, + 'description': """ Catch weight is simply a parallel unit of measure used to + manage variable-weight products.This module brings the catch weight + system in the Sales module. Using this module, We can create sale orders + for products and invoice them based on catch weight.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['sale_management', 'cw_account'], + 'data': [ + 'views/sale_order_views.xml' + ], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'application': False, + 'auto_install': False, +} diff --git a/cw_sale/doc/RELEASE_NOTES.md b/cw_sale/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..7499d8d26 --- /dev/null +++ b/cw_sale/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 04.11.2023 +#### Version 15.0.1.0.0 +#### ADD +- Initial commit for Catch Weight Management: Sales diff --git a/cw_sale/models/__init__.py b/cw_sale/models/__init__.py new file mode 100644 index 000000000..ef7166d05 --- /dev/null +++ b/cw_sale/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Unnimaya C O (odoo@cybrosys.com) +# +# 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 sale_order_line diff --git a/cw_sale/models/sale_order_line.py b/cw_sale/models/sale_order_line.py new file mode 100644 index 000000000..c8bb00a49 --- /dev/null +++ b/cw_sale/models/sale_order_line.py @@ -0,0 +1,76 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Unnimaya C O (odoo@cybrosys.com) +# +# 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): + """Inherit sale order line to include catch weight fields and functions""" + _inherit = 'sale.order.line' + + cw_qty = fields.Float(string='CW-Qty', digits=(16, 4), + help="Catch weight quantity") + category_id = fields.Many2one('uom.category', string="Category", + help="Category of the Product", + default=lambda self: self.env.ref( + 'uom.product_uom_categ_kgm')) + cw_uom_id = fields.Many2one('uom.uom', + related='product_id.cw_uom_id', + string='CW-Uom', + domain="[('category_id', '=', category_id)]", + help="Catch weight unit of measure") + cw_delivered = fields.Float(string='CW-Delivered', help="Catch Weight of " + "Delivered Product", + compute='_compute_cw_delivered', digits=(16, 4)) + cw_invoiced = fields.Float(string='CW-Invoiced', help="Catch Weight of " + "Delivered Product", + digits=(16, 4), + compute='_compute_cw_delivered') + is_cw_product = fields.Boolean(related='product_id.catch_weight_ok', + string='Is CW Product', + help="True for Catch Weight product" + ) + + def _compute_cw_delivered(self): + """Method for calculating cw_delivered and cw_invoiced""" + for rec in self: + rec.update({ + 'cw_delivered': rec.qty_delivered * rec.product_id. + average_cw_qty, + 'cw_invoiced': rec.qty_invoiced * rec.product_id. + average_cw_qty + }) + + @api.onchange('product_id', 'product_uom_qty') + def _onchange_product_id(self): + """Method for updating the cw_qty when product_id or product_uom_qty + changes""" + if self.product_id.catch_weight_ok: + self.cw_qty = self.product_uom_qty * self.product_id.average_cw_qty + + @api.onchange('cw_qty') + def _onchange_cw_qty(self): + """Method for calculating product qty based on cw qty f cw quantity + changed""" + if self.product_id.catch_weight_ok and self.product_id. \ + average_cw_qty != 0: + self.product_uom_qty = self.cw_qty / self.product_id. \ + average_cw_qty diff --git a/cw_sale/static/description/assets/icons/check.png b/cw_sale/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/cw_sale/static/description/assets/icons/check.png differ diff --git a/cw_sale/static/description/assets/icons/chevron.png b/cw_sale/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/cw_sale/static/description/assets/icons/chevron.png differ diff --git a/cw_sale/static/description/assets/icons/cogs.png b/cw_sale/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/cw_sale/static/description/assets/icons/cogs.png differ diff --git a/cw_sale/static/description/assets/icons/consultation.png b/cw_sale/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/cw_sale/static/description/assets/icons/consultation.png differ diff --git a/cw_sale/static/description/assets/icons/ecom-black.png b/cw_sale/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/cw_sale/static/description/assets/icons/ecom-black.png differ diff --git a/cw_sale/static/description/assets/icons/education-black.png b/cw_sale/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/cw_sale/static/description/assets/icons/education-black.png differ diff --git a/cw_sale/static/description/assets/icons/hotel-black.png b/cw_sale/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/cw_sale/static/description/assets/icons/hotel-black.png differ diff --git a/cw_sale/static/description/assets/icons/license.png b/cw_sale/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/cw_sale/static/description/assets/icons/license.png differ diff --git a/cw_sale/static/description/assets/icons/lifebuoy.png b/cw_sale/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/cw_sale/static/description/assets/icons/lifebuoy.png differ diff --git a/cw_sale/static/description/assets/icons/logo.png b/cw_sale/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/cw_sale/static/description/assets/icons/logo.png differ diff --git a/cw_sale/static/description/assets/icons/manufacturing-black.png b/cw_sale/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/cw_sale/static/description/assets/icons/manufacturing-black.png differ diff --git a/cw_sale/static/description/assets/icons/pos-black.png b/cw_sale/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/cw_sale/static/description/assets/icons/pos-black.png differ diff --git a/cw_sale/static/description/assets/icons/puzzle.png b/cw_sale/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/cw_sale/static/description/assets/icons/puzzle.png differ diff --git a/cw_sale/static/description/assets/icons/restaurant-black.png b/cw_sale/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/cw_sale/static/description/assets/icons/restaurant-black.png differ diff --git a/cw_sale/static/description/assets/icons/service-black.png b/cw_sale/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/cw_sale/static/description/assets/icons/service-black.png differ diff --git a/cw_sale/static/description/assets/icons/trading-black.png b/cw_sale/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/cw_sale/static/description/assets/icons/trading-black.png differ diff --git a/cw_sale/static/description/assets/icons/training.png b/cw_sale/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/cw_sale/static/description/assets/icons/training.png differ diff --git a/cw_sale/static/description/assets/icons/update.png b/cw_sale/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/cw_sale/static/description/assets/icons/update.png differ diff --git a/cw_sale/static/description/assets/icons/user.png b/cw_sale/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/cw_sale/static/description/assets/icons/user.png differ diff --git a/cw_sale/static/description/assets/icons/wrench.png b/cw_sale/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/cw_sale/static/description/assets/icons/wrench.png differ diff --git a/cw_sale/static/description/assets/modules/1.png b/cw_sale/static/description/assets/modules/1.png new file mode 100644 index 000000000..6a6801bcf Binary files /dev/null and b/cw_sale/static/description/assets/modules/1.png differ diff --git a/cw_sale/static/description/assets/modules/2.png b/cw_sale/static/description/assets/modules/2.png new file mode 100644 index 000000000..affb7d799 Binary files /dev/null and b/cw_sale/static/description/assets/modules/2.png differ diff --git a/cw_sale/static/description/assets/modules/3.png b/cw_sale/static/description/assets/modules/3.png new file mode 100644 index 000000000..7a87c51cc Binary files /dev/null and b/cw_sale/static/description/assets/modules/3.png differ diff --git a/cw_sale/static/description/assets/modules/4.png b/cw_sale/static/description/assets/modules/4.png new file mode 100644 index 000000000..9fe2657b3 Binary files /dev/null and b/cw_sale/static/description/assets/modules/4.png differ diff --git a/cw_sale/static/description/assets/modules/5.png b/cw_sale/static/description/assets/modules/5.png new file mode 100644 index 000000000..c3175892b Binary files /dev/null and b/cw_sale/static/description/assets/modules/5.png differ diff --git a/cw_sale/static/description/assets/modules/6.png b/cw_sale/static/description/assets/modules/6.png new file mode 100644 index 000000000..6f56b0cfe Binary files /dev/null and b/cw_sale/static/description/assets/modules/6.png differ diff --git a/cw_sale/static/description/assets/screenshots/Screenshot1.png b/cw_sale/static/description/assets/screenshots/Screenshot1.png new file mode 100644 index 000000000..bb906d12a Binary files /dev/null and b/cw_sale/static/description/assets/screenshots/Screenshot1.png differ diff --git a/cw_sale/static/description/assets/screenshots/Screenshot2.png b/cw_sale/static/description/assets/screenshots/Screenshot2.png new file mode 100644 index 000000000..8782bf9ca Binary files /dev/null and b/cw_sale/static/description/assets/screenshots/Screenshot2.png differ diff --git a/cw_sale/static/description/assets/screenshots/Screenshot3.png b/cw_sale/static/description/assets/screenshots/Screenshot3.png new file mode 100644 index 000000000..5c1d37905 Binary files /dev/null and b/cw_sale/static/description/assets/screenshots/Screenshot3.png differ diff --git a/cw_sale/static/description/assets/screenshots/Screenshot4.png b/cw_sale/static/description/assets/screenshots/Screenshot4.png new file mode 100644 index 000000000..f69e20155 Binary files /dev/null and b/cw_sale/static/description/assets/screenshots/Screenshot4.png differ diff --git a/cw_sale/static/description/assets/screenshots/Screenshot5.png b/cw_sale/static/description/assets/screenshots/Screenshot5.png new file mode 100644 index 000000000..d022db8bc Binary files /dev/null and b/cw_sale/static/description/assets/screenshots/Screenshot5.png differ diff --git a/cw_sale/static/description/assets/screenshots/hero.gif b/cw_sale/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..8c85042ad Binary files /dev/null and b/cw_sale/static/description/assets/screenshots/hero.gif differ diff --git a/cw_sale/static/description/banner.jpg b/cw_sale/static/description/banner.jpg new file mode 100644 index 000000000..cf540f8dc Binary files /dev/null and b/cw_sale/static/description/banner.jpg differ diff --git a/cw_sale/static/description/icon.png b/cw_sale/static/description/icon.png new file mode 100644 index 000000000..4fb67dc6d Binary files /dev/null and b/cw_sale/static/description/icon.png differ diff --git a/cw_sale/static/description/index.html b/cw_sale/static/description/index.html new file mode 100644 index 000000000..6f125927f --- /dev/null +++ b/cw_sale/static/description/index.html @@ -0,0 +1,602 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+
+
+
+
+
+
+

+ Catch Weight Management: Sales

+

+ Enable Catch Weight Management System in Sales Module. +

+ +
+
+ +
+
+

+ Overview +

+
+
+

+ Catch weight is simply a parallel unit of measure used to + manage variable-weight products.This module brings the catch + weight system in the Sales module. Using this module, We can + create sale orders for products and invoice them based on + catch weight. +

+
+
+
+
+

+ Features +

+
+
+
+ +
+
+

+ Catch Weight can be added to Products

+
+
+
+
+ +
+
+

+ Catch Weight of Product is available in Sale Order + Line

+
+
+
+
+ +
+
+

+ Catch Weight of Product is available in Stock Picking

+
+
+
+
+
+
+

+ Screenshots +

+
+
+

+ Enable Catch Weight Product

+

+ Enable Catch Weight Product to enable the + Catch Weight of the product.

+ +
+
+

+ Set CW-Uom and Catch Weight

+

+ There will be a + provision to set the CW-Uom and + Catch Weight for Catch Weight Products

+ +
+
+

+ Catch Weight in Order Lines

+ +
+
+

+ Products can be delivered based on their Catch Weight.

+ +
+
+

+ Products can be Invoiced based on their Catch Weight.

+ +
+
+ +
+
+

Suggested 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

+
+
+
+
+ + + +
+
+
+

Need Help?

+
+
+
+ +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + + diff --git a/cw_sale/views/sale_order_views.xml b/cw_sale/views/sale_order_views.xml new file mode 100644 index 000000000..323923818 --- /dev/null +++ b/cw_sale/views/sale_order_views.xml @@ -0,0 +1,31 @@ + + + + + sale.order.view.form.inherit.cw.sale + sale.order + + + + + + + + + + + + + +