diff --git a/stock_picking_volume/README.rst b/stock_picking_volume/README.rst index 5eac634a0..aa411d425 100644 --- a/stock_picking_volume/README.rst +++ b/stock_picking_volume/README.rst @@ -14,14 +14,14 @@ Stock Picking Volume :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github - :target: https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_picking_volume + :target: https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_picking_volume :alt: OCA/stock-logistics-warehouse .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_picking_volume + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_picking_volume :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/153/16.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/stock-logistics-warehouse&target_branch=14.0 + :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -66,7 +66,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -82,6 +82,7 @@ Contributors ~~~~~~~~~~~~ * Laurent Mignon (https://www.acsone.eu/) +* Michael Tietz (MT Software) Other credits ~~~~~~~~~~~~~ @@ -112,6 +113,6 @@ Current `maintainer `__: |maintainer-lmignon| -This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub. +This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_picking_volume/__manifest__.py b/stock_picking_volume/__manifest__.py index d95657170..5ec939f9a 100644 --- a/stock_picking_volume/__manifest__.py +++ b/stock_picking_volume/__manifest__.py @@ -1,11 +1,12 @@ # Copyright 2023 ACSONE SA/NV +# Copyright 2023 Michael Tietz (MT Software) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { "name": "Stock Picking Volume", "summary": """ Compute volume information on stock moves and pickings""", - "version": "16.0.1.0.0", + "version": "14.0.1.0.0", "license": "AGPL-3", "author": "ACSONE SA/NV,Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-warehouse", diff --git a/stock_picking_volume/models/stock_move.py b/stock_picking_volume/models/stock_move.py index 8bfce4aa7..c0e86bd6b 100644 --- a/stock_picking_volume/models/stock_move.py +++ b/stock_picking_volume/models/stock_move.py @@ -1,4 +1,5 @@ # Copyright 2023 ACSONE SA/NV +# Copyright 2023 Michael Tietz (MT Software) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, fields, models @@ -16,7 +17,7 @@ class StockMove(models.Model): string="Volume unit of measure label", compute="_compute_volume_uom_name" ) - @api.depends("product_id", "product_uom_qty", "state", "move_line_ids.reserved_qty") + @api.depends("product_id", "product_uom_qty", "state", "move_line_ids.product_qty") def _compute_volume(self): for move in self: qty = move.product_uom_qty diff --git a/stock_picking_volume/models/stock_picking.py b/stock_picking_volume/models/stock_picking.py index 007df9cc7..731957fd5 100644 --- a/stock_picking_volume/models/stock_picking.py +++ b/stock_picking_volume/models/stock_picking.py @@ -1,4 +1,5 @@ # Copyright 2023 ACSONE SA/NV +# Copyright 2023 Michael Tietz (MT Software) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, fields, models @@ -15,10 +16,10 @@ class StockPicking(models.Model): string="Volume unit of measure label", compute="_compute_volume_uom_name" ) - @api.depends("move_ids", "move_ids.volume") + @api.depends("move_lines", "move_lines.volume") def _compute_volume(self): for picking in self: - new_volume = sum(picking.move_ids.mapped("volume")) + new_volume = sum(picking.move_lines.mapped("volume")) if picking.volume != new_volume: picking.volume = new_volume diff --git a/stock_picking_volume/readme/CONTRIBUTORS.rst b/stock_picking_volume/readme/CONTRIBUTORS.rst index ed1929f0d..cef0c7b72 100644 --- a/stock_picking_volume/readme/CONTRIBUTORS.rst +++ b/stock_picking_volume/readme/CONTRIBUTORS.rst @@ -1 +1,2 @@ * Laurent Mignon (https://www.acsone.eu/) +* Michael Tietz (MT Software) diff --git a/stock_picking_volume/static/description/index.html b/stock_picking_volume/static/description/index.html index 8488a3e96..25e5fd37a 100644 --- a/stock_picking_volume/static/description/index.html +++ b/stock_picking_volume/static/description/index.html @@ -3,7 +3,7 @@ - + Stock Picking Volume