summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/promotion
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2024-02-26 13:20:54 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2024-02-26 13:20:54 +0700
commitaec3028acc08c573b68a71b0144558f8fc091607 (patch)
tree432c9c1e49264e366e697c087b6c9bdd8aa0b052 /indoteknik_custom/models/promotion
parente24d74a1ca5af90086060374dddc309e102579ea (diff)
Add solr flag and add to queue on program line
Diffstat (limited to 'indoteknik_custom/models/promotion')
-rw-r--r--indoteknik_custom/models/promotion/promotion_program_line.py3
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')