From 0f1fd177780f47f1b2787767a87044a8b1705378 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 24 Jun 2025 14:02:28 +0700 Subject: fix price pricelist items --- fixco_custom/models/detail_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fixco_custom/models/detail_order.py b/fixco_custom/models/detail_order.py index c9ace50..b0940a8 100755 --- a/fixco_custom/models/detail_order.py +++ b/fixco_custom/models/detail_order.py @@ -184,7 +184,7 @@ class DetailOrder(models.Model): bundling_lines = self.env['bundling.line'].search([('product_id', '=', product.id)]) bundling_variant_ids = bundling_lines.mapped('variant_id').ids sale_pricelist = self.env['product.pricelist.item'].search([('product_id', 'in', bundling_variant_ids), ('pricelist_id', '=', 17)]) - price_bundling_bottom = sum(item.price for item in sale_pricelist) + price_bundling_bottom = sum(item.fixed_price for item in sale_pricelist) for bline in bundling_lines: bottom_price = self.env['product.pricelist.item'].search([('product_id', '=', bline.variant_id.id), ('pricelist_id', '=', 17)], limit=1) price = bottom_price.fixed_price -- cgit v1.2.3