summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/promotion_program_free_item.py
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2023-07-24 03:31:59 +0000
committerIT Fixcomart <it@fixcomart.co.id>2023-07-24 03:31:59 +0000
commitc1ac22304b557b9982b5fb79d23d29b6faf48090 (patch)
treea1e6db531a5bf19994374e895d5d8a8c9abf1ffa /indoteknik_custom/models/promotion_program_free_item.py
parent6966c00bf2ef2bd9c2261d9363ac6b463a7766dd (diff)
parent30909e82d7ff1f3cac4700e284f80552a0d38523 (diff)
Merged in feature/voucher-cart (pull request #65)
Feature/voucher cart
Diffstat (limited to 'indoteknik_custom/models/promotion_program_free_item.py')
-rw-r--r--indoteknik_custom/models/promotion_program_free_item.py10
1 files changed, 10 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..705456dd
--- /dev/null
+++ b/indoteknik_custom/models/promotion_program_free_item.py
@@ -0,0 +1,10 @@
+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")