ingadhoc/stock#819

Created by fw-bot-adhoc

Blocked

label
adhoc-dev:18.0-17.0-t-104290-ced-2194-fw
head
55f48518a1d85f9dd94f371bb36cb1f155e415c4
ingadhoc/stock
17.0 #807
18.0 #819 missing statuses missing r+
19.0

[FIX] stock_voucher: prevent division by zero in declared value calculation

When product_id differs between sale order line and stock move, the move
is treated as a potential BOM component. If no valid BOM is found or no
components match, the picking_avg and done_avg lists remain empty,
causing a ZeroDivisionError when calculating averages.

Add validation to ensure lists are not empty before division.

Forward-Port-Of: #807