Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2564b16

Browse files
committedMar 11, 2025·
[MIG] stock_product_qty_by_packaging: Migration to 18.0
1 parent e854a45 commit 2564b16

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎stock_product_qty_by_packaging/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Stock packaging calculator",
55
"summary": "Compute product quantity to pick by packaging",
6-
"version": "16.0.1.1.0",
6+
"version": "18.0.1.0.0",
77
"development_status": "Alpha",
88
"category": "Warehouse Management",
99
"website": "https://github.com/OCA/stock-logistics-warehouse",

‎stock_product_qty_by_packaging/models/stock_move_line.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ class StockMoveLine(models.Model):
1010
_name = "stock.move.line"
1111
_inherit = ["stock.move.line", "product.qty_by_packaging.mixin"]
1212

13-
_qty_by_pkg__qty_field_name = "reserved_qty"
13+
_qty_by_pkg__qty_field_name = "quantity"

‎stock_product_qty_by_packaging/views/stock_picking.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<field name="inherit_id" ref="stock.view_picking_form" />
77
<field name="arch" type="xml">
88
<xpath
9-
expr="//field[@name='move_ids_without_package']/tree/field[@name='product_uom']"
9+
expr="//field[@name='move_ids_without_package']/list/field[@name='product_uom']"
1010
position="after"
1111
>
1212
<field name="product_qty_by_packaging_display" />

0 commit comments

Comments
 (0)
Please sign in to comment.