diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-05-16 15:55:50 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-05-16 15:55:50 +0700 |
| commit | 5d78d113bb8b6dff3ceab0d5c94db950a668394e (patch) | |
| tree | 0f8e4a30d4745de054922314bb2562a2cb99562b | |
| parent | e2cf27c1fc540ad24b457d23c89ddd1ea4e6034a (diff) | |
add new field on promotion program line
| -rw-r--r-- | indoteknik_custom/models/promotion/promotion_program_line.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/views/promotion/promotion_program_line.xml | 1 |
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" /> |
