diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-06-24 14:02:28 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-06-24 14:02:28 +0700 |
| commit | 0f1fd177780f47f1b2787767a87044a8b1705378 (patch) | |
| tree | 8d811ff1b72bf81ebc30e39baae2da695fdd070a | |
| parent | 8e8da88ec748a1a46b1d9d4bf1d24be2ca14655a (diff) | |
fix price pricelist items
| -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 |
