diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-03-12 02:49:52 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-03-12 02:49:52 +0000 |
| commit | 8899771cb6e4d39752a506e7aa95e5e388ff3a9f (patch) | |
| tree | f436cda35f861b8017823fe36e674fe5687d4fbb /indoteknik_custom/models/website_user_cart.py | |
| parent | 29dfec334ebf6a15a8a66e4af564fd5d812d8d67 (diff) | |
| parent | 41056a3fcf9cf80ac3609ab32223ffbac5b3ad83 (diff) | |
Merged in production (pull request #135)
Production
Diffstat (limited to 'indoteknik_custom/models/website_user_cart.py')
| -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'], |
