summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-05-07 09:18:32 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-05-07 09:18:32 +0700
commit1775e7907c905e85f40cecfef69c651c45e64de3 (patch)
tree06c46a3b09ae4174a98e35b1f8d6772ee900b934 /indoteknik_custom/models
parent0c9f3297bfda30ec813833a5db3bcbf7a24f327d (diff)
<miqdad> remove logging
Diffstat (limited to 'indoteknik_custom/models')
-rw-r--r--indoteknik_custom/models/voucher.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/indoteknik_custom/models/voucher.py b/indoteknik_custom/models/voucher.py
index 0b47e5f0..cda9309f 100644
--- a/indoteknik_custom/models/voucher.py
+++ b/indoteknik_custom/models/voucher.py
@@ -165,8 +165,8 @@ class Voucher(models.Model):
return round(calculate_time.total_seconds())
def filter_order_line(self, order_line):
- import logging
- _logger = logging.getLogger(__name__)
+ # import logging
+ # _logger = logging.getLogger(__name__)
voucher_manufacture_ids = self.collect_manufacture_ids()
results = []
@@ -180,8 +180,8 @@ class Voucher(models.Model):
break
if not category_applicable:
- _logger.info("Cart contains product %s with non-applicable category - voucher %s cannot be used",
- line['product_id'].name, self.code)
+ # _logger.info("Cart contains product %s with non-applicable category - voucher %s cannot be used",
+ # line['product_id'].name, self.code)
return []
for line in order_line: