diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-02-27 09:14:34 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-02-27 09:14:34 +0700 |
| commit | ac4f111ba1605fe3891582b7fc396e740130791d (patch) | |
| tree | d204380870d16a3e523df07b8ba0f907c0184904 /indoteknik_custom/models/promotion/promotion_program_line.py | |
| parent | 391fe72c5d9d92d49a09fc971a6c86a39a6e22d1 (diff) | |
| parent | db98ba79a92ca11df958cce513bc320110764434 (diff) | |
Merge branch 'production' of bitbucket.org:altafixco/indoteknik-addons into production
Diffstat (limited to 'indoteknik_custom/models/promotion/promotion_program_line.py')
| -rw-r--r-- | indoteknik_custom/models/promotion/promotion_program_line.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/promotion/promotion_program_line.py b/indoteknik_custom/models/promotion/promotion_program_line.py index ce46d2e7..cb231889 100644 --- a/indoteknik_custom/models/promotion/promotion_program_line.py +++ b/indoteknik_custom/models/promotion/promotion_program_line.py @@ -30,7 +30,8 @@ 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) + active = fields.Boolean(string="Active", default=True) + solr_flag = fields.Integer(string="Solr Flag", default=1) def get_active_promotions(self, product_id): current_time = datetime.now().strftime('%Y-%m-%d %H:%M:%S') |
