From 5d78d113bb8b6dff3ceab0d5c94db950a668394e Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Thu, 16 May 2024 15:55:50 +0700 Subject: add new field on promotion program line --- indoteknik_custom/models/promotion/promotion_program_line.py | 2 ++ indoteknik_custom/views/promotion/promotion_program_line.xml | 1 + 2 files changed, 3 insertions(+) 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') diff --git a/indoteknik_custom/views/promotion/promotion_program_line.xml b/indoteknik_custom/views/promotion/promotion_program_line.xml index 7c8e403d..3f077a13 100644 --- a/indoteknik_custom/views/promotion/promotion_program_line.xml +++ b/indoteknik_custom/views/promotion/promotion_program_line.xml @@ -25,6 +25,7 @@ + -- cgit v1.2.3