We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31a4e04 commit 1f6e674Copy full SHA for 1f6e674
1 file changed
stock_outgoing_shipment_report/models/stock_picking.py
@@ -27,7 +27,10 @@ def generate_stock_outgoing_shipment_report(self):
27
"client_order_ref": sale_line.client_order_ref,
28
"memo": sale_line.note[:9] if sale_line.note else False,
29
}
30
- secondary_uom = move.product_id.stock_secondary_uom_id
+ secondary_uom = (
31
+ product.stock_secondary_uom_id
32
+ or move.product_tmpl_id.stock_secondary_uom_id
33
+ )
34
if secondary_uom:
35
factor = secondary_uom.factor * move.product_uom.factor
36
vals.update({"case_qty": int(move.quantity / (factor or 1.0))})
0 commit comments