diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-02-16 09:55:41 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-02-16 09:55:41 +0700 |
| commit | 03ba190bca443625075ddbd637d895bfc1a27fcd (patch) | |
| tree | abe7b81be6966cbefc34acd9efe87b29c979a574 | |
| parent | 5cf60908a43f8c74281111438415581f997efa96 (diff) | |
Add active field on promotion program line
| -rw-r--r-- | indoteknik_custom/models/promotion/promotion_program_line.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/promotion/promotion_program_line.py b/indoteknik_custom/models/promotion/promotion_program_line.py index 18a7e184..43daf93b 100644 --- a/indoteknik_custom/models/promotion/promotion_program_line.py +++ b/indoteknik_custom/models/promotion/promotion_program_line.py @@ -30,6 +30,7 @@ class PromotionProgramLine(models.Model): discount_amount = fields.Float('Discount Amount') order_promotion_ids = fields.One2many('sale.order.promotion', 'program_line_id', 'Promotions') + active = fields.Boolean(default=True) def get_active_promotions(self, product_id): current_time = datetime.now().strftime('%Y-%m-%d %H:%M:%S') |
