Merge PR #1952 into 16.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2024-02-29 10:22:07 +00:00

View File

@@ -38,7 +38,7 @@ def pre_init_hook(cr):
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')