diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-07-30 14:07:14 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-07-30 14:07:14 +0700 |
| commit | e922eddfe4142e6a7070154b919fdaccad646ac3 (patch) | |
| tree | 01e62ab92e3734d0e1985c5e37e05f7d5314eb9c | |
| parent | 7aa1b7b0c7e2375c0ec0c4e7cfa4106ba2dc0ccf (diff) | |
fix bug email reminder
| -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 5905cba7..5f0d69b0 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 not 'BOM' in cart.product_id.default_code: + if cart.program_line_id or not 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') |
