diff options
| -rwxr-xr-x | fixco_custom/models/detail_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
