Skip to content

Commit

Permalink
[FIX] stock_pikcing_volume: ambiguous column
Browse files Browse the repository at this point in the history
  • Loading branch information
ferran-S73 authored and sebalix committed Aug 28, 2024
1 parent dc8c5a4 commit 3e1537a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stock_picking_volume/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 3e1537a

Please sign in to comment.