summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-05-16 15:55:50 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-05-16 15:55:50 +0700
commit5d78d113bb8b6dff3ceab0d5c94db950a668394e (patch)
tree0f8e4a30d4745de054922314bb2562a2cb99562b /indoteknik_custom/models
parente2cf27c1fc540ad24b457d23c89ddd1ea4e6034a (diff)
add new field on promotion program line
Diffstat (limited to 'indoteknik_custom/models')
-rw-r--r--indoteknik_custom/models/promotion/promotion_program_line.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/promotion/promotion_program_line.py b/indoteknik_custom/models/promotion/promotion_program_line.py
index 4bf50ac9..4db70644 100644
--- a/indoteknik_custom/models/promotion/promotion_program_line.py
+++ b/indoteknik_custom/models/promotion/promotion_program_line.py
@@ -31,7 +31,9 @@ class PromotionProgramLine(models.Model):
order_promotion_ids = fields.One2many('sale.order.promotion', 'program_line_id', 'Promotions')
active = fields.Boolean(string="Active", default=True)
+ active = fields.Boolean(string="Active", default=True)
solr_flag = fields.Integer(string="Solr Flag", default=1)
+ description = fields.Char('Description')
def get_active_promotions(self, product_id):
current_time = datetime.now().strftime('%Y-%m-%d %H:%M:%S')