From 8d8916082ed6a9ebfd5d490be1e48495986fa7cd Mon Sep 17 00:00:00 2001 From: Cedric Collins Date: Mon, 29 Nov 2021 12:11:54 -0600 Subject: [PATCH] [FIX] delivery_fedex_hibou: get price per variant H9214 --- delivery_fedex_hibou/models/delivery_fedex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delivery_fedex_hibou/models/delivery_fedex.py b/delivery_fedex_hibou/models/delivery_fedex.py index 494888ee..b288e243 100644 --- a/delivery_fedex_hibou/models/delivery_fedex.py +++ b/delivery_fedex_hibou/models/delivery_fedex.py @@ -267,7 +267,7 @@ class DeliveryFedex(models.Model): commodity_country_of_manufacture = picking.picking_type_id.warehouse_id.partner_id.country_id.code for operation in picking.move_line_ids: - commodity_amount = operation.move_id.sale_line_id.price_unit or operation.product_id.list_price + commodity_amount = operation.move_id.sale_line_id.price_unit or operation.product_id.lst_price total_commodities_amount += (commodity_amount * operation.qty_done) commodity_description = operation.product_id.name commodity_number_of_piece = '1'