diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-05-07 09:18:32 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-05-07 09:18:32 +0700 |
| commit | 1775e7907c905e85f40cecfef69c651c45e64de3 (patch) | |
| tree | 06c46a3b09ae4174a98e35b1f8d6772ee900b934 | |
| parent | 0c9f3297bfda30ec813833a5db3bcbf7a24f327d (diff) | |
<miqdad> remove logging
| -rw-r--r-- | indoteknik_custom/models/voucher.py | 8 | ||||
| -rwxr-xr-x | indoteknik_custom/views/voucher.xml | 2 |
2 files changed, 5 insertions, 5 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: diff --git a/indoteknik_custom/views/voucher.xml b/indoteknik_custom/views/voucher.xml index 7f258c1c..78e42969 100755 --- a/indoteknik_custom/views/voucher.xml +++ b/indoteknik_custom/views/voucher.xml @@ -29,7 +29,7 @@ <field name="image" widget="image" width="120"/> <field name="name" required="1"/> <field name="code" required="1"/> - <field name="voucher_category" widget="many2many_tags"/> + <field name="voucher_category" widget="many2many"/> <field name="visibility" required="1"/> <field name="start_time" required="1"/> <field name="end_time" required="1"/> |
