summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/promotion_program_free_item.py
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-07-18 13:59:18 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-07-18 13:59:18 +0700
commit45fd501a53c6997bf74d5927d7c0eecf387caa51 (patch)
treefa20bdff3e95d943b0f4846b9746767f87f70f31 /indoteknik_custom/models/promotion_program_free_item.py
parent999725ea036840d74c7fdeebbd3aefac772bd8d3 (diff)
parentd418bd8dd84b91b9dc031819cfa9a2446e77acd2 (diff)
Merge branch 'origin/feature/promotion-program' into feature/voucher-cart
Diffstat (limited to 'indoteknik_custom/models/promotion_program_free_item.py')
-rw-r--r--indoteknik_custom/models/promotion_program_free_item.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/indoteknik_custom/models/promotion_program_free_item.py b/indoteknik_custom/models/promotion_program_free_item.py
new file mode 100644
index 00000000..ddd97765
--- /dev/null
+++ b/indoteknik_custom/models/promotion_program_free_item.py
@@ -0,0 +1,12 @@
+from odoo import fields, models
+
+
+class PromotionProgramFreeItem(models.Model):
+ _name = "promotion.program.free_item"
+ _rec_name = "product_id"
+
+ product_id = fields.Many2one(
+ comodel_name="product.product", string="Product Variant")
+ qty = fields.Integer(string="Qty")
+ line_id = fields.Many2one(
+ comodel_name="promotion.program.line", string="Program Line")