diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-07-30 14:11:37 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-07-30 14:11:37 +0700 |
| commit | 17ca05da0a12eb2f1207b0c559aab1ff3d49f0b7 (patch) | |
| tree | 50db30ea6e980356628960aff2ae8eb5391ffa55 | |
| parent | e922eddfe4142e6a7070154b919fdaccad646ac3 (diff) | |
fix bug
| -rw-r--r-- | indoteknik_custom/models/website_user_cart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/website_user_cart.py b/indoteknik_custom/models/website_user_cart.py index 5f0d69b0..ff8cf65d 100644 --- a/indoteknik_custom/models/website_user_cart.py +++ b/indoteknik_custom/models/website_user_cart.py @@ -143,7 +143,7 @@ class WebsiteUserCart(models.Model): check = cart.check_product_flashsale(cart.product_id.id) if not cart.program_line_id and cart.product_id.default_code and not 'BOM' in cart.product_id.default_code and check['is_flashsale'] == False: cart.is_selected = True - if cart.program_line_id or not check['is_flashsale'] or cart.product_id.default_code and 'BOM' in cart.product_id.default_code: + if cart.program_line_id or check['is_flashsale'] or cart.product_id.default_code and 'BOM' in cart.product_id.default_code: cart.is_selected = False cart.is_reminder = True template = self.env.ref('indoteknik_custom.mail_template_user_cart_reminder_to_checkout') |
