From 3e1537af1537bca8d2298c3100d368b8353d62ca Mon Sep 17 00:00:00 2001 From: ferran-S73 Date: Wed, 28 Feb 2024 12:26:09 +0100 Subject: [PATCH] [FIX] stock_pikcing_volume: ambiguous column --- stock_picking_volume/hooks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stock_picking_volume/hooks.py b/stock_picking_volume/hooks.py index 2fb34ef29cd..1fd03abe901 100644 --- a/stock_picking_volume/hooks.py +++ b/stock_picking_volume/hooks.py @@ -33,12 +33,12 @@ def pre_init_hook(cr): set volume = CASE WHEN state in ('partially_available', 'assigned') THEN - product_qty * pp.volume + reserved_qty_by_move.product_qty * pp.volume ELSE product_uom_qty * pp.volume END from reserved_qty_by_move - join product_product pp on pp.id = product_id + join product_product pp on pp.id = reserved_qty_by_move.product_id where stock_move.id = reserved_qty_by_move.move_id and state not in ('done', 'cancel')