summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/promotion/promotion_program_line.py2
-rw-r--r--indoteknik_custom/views/promotion/promotion_program_line.xml1
2 files changed, 3 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')
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 @@
<field name="program_id" />
<field name="promotion_type" />
<field name="active" readonly="1" />
+ <field name="description" />
</group>
<group>
<field name="package_limit" />