diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-31 17:14:34 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-05-31 17:14:34 +0700 |
| commit | 06a4478d69975b8a6eb3d228fa88708448b40a0e (patch) | |
| tree | d1bb5115c61b973ad77ea0d975da29ce24c59bc0 /indoteknik_custom/models/promotion_program_free_item.py | |
| parent | 6cb1fc1a1cd0c8091c32dfcd19ebc58793873d25 (diff) | |
Promotion program feature
Diffstat (limited to 'indoteknik_custom/models/promotion_program_free_item.py')
| -rw-r--r-- | indoteknik_custom/models/promotion_program_free_item.py | 12 |
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") |
