diff --git a/cw_account/README.rst b/cw_account/README.rst new file mode 100644 index 000000000..a18f6bbcc --- /dev/null +++ b/cw_account/README.rst @@ -0,0 +1,46 @@ +.. 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: Accounting +=================================== +* Helps to enable Catch Weight management in Accounting module + +Configuration +============= +* No additional configurations needed + +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_account/__init__.py b/cw_account/__init__.py new file mode 100644 index 000000000..b2744bb0c --- /dev/null +++ b/cw_account/__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_account/__manifest__.py b/cw_account/__manifest__.py new file mode 100644 index 000000000..b6f73a19d --- /dev/null +++ b/cw_account/__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: Accounting", + 'version': '15.0.1.0.0', + 'category': 'Accounting', + 'summary': """Helps to add Catch Weight of products in Accounting 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 Accounting module.We can invoice products based on their + Catch Weight.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['account', 'cw_stock'], + 'data': [ + 'views/account_move_views.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/cw_account/doc/RELEASE_NOTES.md b/cw_account/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..11e9b28ec --- /dev/null +++ b/cw_account/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 04.10.2023 +#### Version 15.0.1.0.0 +#### ADD + +- Initial commit for Catch Weight Management: Accounting diff --git a/cw_account/models/__init__.py b/cw_account/models/__init__.py new file mode 100644 index 000000000..99c89cfbd --- /dev/null +++ b/cw_account/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 account_move_line diff --git a/cw_account/models/account_move_line.py b/cw_account/models/account_move_line.py new file mode 100644 index 000000000..36209e761 --- /dev/null +++ b/cw_account/models/account_move_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 AccountMoveLine(models.Model): + """Inherits Account Move Line for adding more fields and functions + related to Catch Weight""" + _inherit = 'account.move.line' + + cw_qty = fields.Float(string='CW-Qty', compute='_compute_cw_qty', + help="Catch weight quantity", readonly=False, + digits=(16, 4) + ) + 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='Catch Weight UOM', readonly=False, + domain="[('category_id', '=', category_id)]", + help="Catch weight unit of measure", + ) + cw_hide = fields.Boolean(string='CW-Hide', + related='product_id.catch_weight_ok', + help="For hiding the catch weight fields depending" + " on this field") + + @api.depends('product_id') + def _compute_cw_qty(self): + """Compute CW quantity of the product""" + for rec in self: + rec.update({'cw_qty': rec.product_id.average_cw_qty * rec.quantity}) + + @api.onchange('product_id', 'quantity') + def _onchange_product_id(self): + """Calculates cw qty and cw uom""" + for rec in self: + if rec.product_id.catch_weight_ok: + rec.cw_qty = rec.product_id.average_cw_qty * rec.quantity + return super()._onchange_product_id() + + @api.onchange('cw_qty') + def _onchange_cw_cty(self): + """Calculates quantity of the product based on catch weight quantity""" + for rec in self: + if rec.product_id.catch_weight_ok and \ + rec.product_id.average_cw_qty != 0: + rec.quantity = rec.cw_qty / rec.product_id.average_cw_qty + + @api.onchange('product_uom_id', 'cw_uom_id') + def _onchange_product_uom_id(self): + """Calculates cw_qty of the product""" + for rec in self: + if rec.product_id.catch_weight_ok and rec.cw_uom_id and \ + rec.product_uom_id.category_id == rec.cw_uom_id.category_id: + rec.cw_qty = rec.cw_uom_id.factor / rec.product_uom_id.factor diff --git a/cw_account/static/description/assets/icons/check.png b/cw_account/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/cw_account/static/description/assets/icons/check.png differ diff --git a/cw_account/static/description/assets/icons/cogs.png b/cw_account/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/cw_account/static/description/assets/icons/cogs.png differ diff --git a/cw_account/static/description/assets/icons/consultation.png b/cw_account/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/cw_account/static/description/assets/icons/consultation.png differ diff --git a/cw_account/static/description/assets/icons/ecom-black.png b/cw_account/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/cw_account/static/description/assets/icons/ecom-black.png differ diff --git a/cw_account/static/description/assets/icons/education-black.png b/cw_account/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/cw_account/static/description/assets/icons/education-black.png differ diff --git a/cw_account/static/description/assets/icons/hotel-black.png b/cw_account/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/cw_account/static/description/assets/icons/hotel-black.png differ diff --git a/cw_account/static/description/assets/icons/license.png b/cw_account/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/cw_account/static/description/assets/icons/license.png differ diff --git a/cw_account/static/description/assets/icons/lifebuoy.png b/cw_account/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/cw_account/static/description/assets/icons/lifebuoy.png differ diff --git a/cw_account/static/description/assets/icons/logo.png b/cw_account/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/cw_account/static/description/assets/icons/logo.png differ diff --git a/cw_account/static/description/assets/icons/manufacturing-black.png b/cw_account/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/cw_account/static/description/assets/icons/manufacturing-black.png differ diff --git a/cw_account/static/description/assets/icons/pos-black.png b/cw_account/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/cw_account/static/description/assets/icons/pos-black.png differ diff --git a/cw_account/static/description/assets/icons/puzzle.png b/cw_account/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/cw_account/static/description/assets/icons/puzzle.png differ diff --git a/cw_account/static/description/assets/icons/restaurant-black.png b/cw_account/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/cw_account/static/description/assets/icons/restaurant-black.png differ diff --git a/cw_account/static/description/assets/icons/service-black.png b/cw_account/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/cw_account/static/description/assets/icons/service-black.png differ diff --git a/cw_account/static/description/assets/icons/trading-black.png b/cw_account/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/cw_account/static/description/assets/icons/trading-black.png differ diff --git a/cw_account/static/description/assets/icons/training.png b/cw_account/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/cw_account/static/description/assets/icons/training.png differ diff --git a/cw_account/static/description/assets/icons/update.png b/cw_account/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/cw_account/static/description/assets/icons/update.png differ diff --git a/cw_account/static/description/assets/icons/user.png b/cw_account/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/cw_account/static/description/assets/icons/user.png differ diff --git a/cw_account/static/description/assets/icons/wrench.png b/cw_account/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/cw_account/static/description/assets/icons/wrench.png differ diff --git a/cw_account/static/description/assets/modules/budget.png b/cw_account/static/description/assets/modules/budget.png new file mode 100644 index 000000000..b50130c7d Binary files /dev/null and b/cw_account/static/description/assets/modules/budget.png differ diff --git a/cw_account/static/description/assets/modules/cash_flow.png b/cw_account/static/description/assets/modules/cash_flow.png new file mode 100644 index 000000000..f00be3af0 Binary files /dev/null and b/cw_account/static/description/assets/modules/cash_flow.png differ diff --git a/cw_account/static/description/assets/modules/dynamic_report.png b/cw_account/static/description/assets/modules/dynamic_report.png new file mode 100644 index 000000000..5238bdeab Binary files /dev/null and b/cw_account/static/description/assets/modules/dynamic_report.png differ diff --git a/cw_account/static/description/assets/modules/invoice_format.png b/cw_account/static/description/assets/modules/invoice_format.png new file mode 100644 index 000000000..3932f4062 Binary files /dev/null and b/cw_account/static/description/assets/modules/invoice_format.png differ diff --git a/cw_account/static/description/assets/modules/invoice_stock.png b/cw_account/static/description/assets/modules/invoice_stock.png new file mode 100644 index 000000000..77358cf30 Binary files /dev/null and b/cw_account/static/description/assets/modules/invoice_stock.png differ diff --git a/cw_account/static/description/assets/modules/partner_ledger.png b/cw_account/static/description/assets/modules/partner_ledger.png new file mode 100644 index 000000000..6c38c9e40 Binary files /dev/null and b/cw_account/static/description/assets/modules/partner_ledger.png differ diff --git a/cw_account/static/description/assets/screenshots/Screenshot1.png b/cw_account/static/description/assets/screenshots/Screenshot1.png new file mode 100644 index 000000000..f602e4c17 Binary files /dev/null and b/cw_account/static/description/assets/screenshots/Screenshot1.png differ diff --git a/cw_account/static/description/assets/screenshots/hero.png b/cw_account/static/description/assets/screenshots/hero.png new file mode 100644 index 000000000..4629c3393 Binary files /dev/null and b/cw_account/static/description/assets/screenshots/hero.png differ diff --git a/cw_account/static/description/assets/screenshots/screenshot.png b/cw_account/static/description/assets/screenshots/screenshot.png new file mode 100644 index 000000000..8782bf9ca Binary files /dev/null and b/cw_account/static/description/assets/screenshots/screenshot.png differ diff --git a/cw_account/static/description/banner.jpg b/cw_account/static/description/banner.jpg new file mode 100644 index 000000000..29e1fd774 Binary files /dev/null and b/cw_account/static/description/banner.jpg differ diff --git a/cw_account/static/description/icon.png b/cw_account/static/description/icon.png new file mode 100644 index 000000000..5fef85b9f Binary files /dev/null and b/cw_account/static/description/icon.png differ diff --git a/cw_account/static/description/index.html b/cw_account/static/description/index.html new file mode 100644 index 000000000..8301ac0b3 --- /dev/null +++ b/cw_account/static/description/index.html @@ -0,0 +1,565 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+
+
+

+ Catch Weight Management: Accounting

+

+ Helps to Add Catch Weight of Products in Accounting 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 Accounting module.We can invoice products based on + their Catch weight. +

+
+
+
+
+

+ Features +

+
+
+
+ +
+
+

+ Each product has the option to enable and add Catch Weight. +

+
+
+
+
+ +
+
+

+ Catch Weight of products are available at invoice line.

+
+
+
+
+
+
+

+ Screenshots +

+
+
+

+ Enable Catch Weight Product

+

+ We can click on the checkbox "Catch Weight Product" to enable the + Catch Weight of the product. Also add CW-UoM and the + Catch Weight of the product.

+ +
+
+

+ 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_account/views/account_move_views.xml b/cw_account/views/account_move_views.xml new file mode 100644 index 000000000..938f86466 --- /dev/null +++ b/cw_account/views/account_move_views.xml @@ -0,0 +1,23 @@ + + + + + account.move.view.form.inherit.cw.account + account.move + + + + + + + + + + +