diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-03-08 09:32:39 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-03-08 09:32:39 +0700 |
| commit | 41056a3fcf9cf80ac3609ab32223ffbac5b3ad83 (patch) | |
| tree | dcb131951cf635ec9ef397c6430b944a808f7baa | |
| parent | 490eb81e704691df3e6d5c354837a08e4f982538 (diff) | |
Fix error promotion with voucher on checkout
| -rw-r--r-- | indoteknik_custom/models/website_user_cart.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indoteknik_custom/models/website_user_cart.py b/indoteknik_custom/models/website_user_cart.py index eaa5f009..bbff6035 100644 --- a/indoteknik_custom/models/website_user_cart.py +++ b/indoteknik_custom/models/website_user_cart.py @@ -96,6 +96,9 @@ class WebsiteUserCart(models.Model): if voucher: order_line = [] for product in products: + if product['cart_type'] == 'promotion': + continue + order_line.append({ 'product_id': self.env['product.product'].browse(product['id']), 'price': product['price']['price'], |
