TIP: You can type at any time to perform a new search.
Link coupons to order lines
sale_coupon_order_line_link · OCA/sale-promotion
- Repository
- OCA/sale-promotion · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Sale
- Folder size
- 0.06 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/sale-promotion
- Last tracking update
- 2026-08-07 07:57:18
- Authors
- Odoo Community Association (OCA), Tecnativa
- Maintainers
- Odoo Community Association (OCA), Tecnativa
- Committers
- David, Weblate, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- coupon_multiplier_free_product, sale_coupon_domain_free_product, sale_coupon_limit, sale_coupon_multi_gift, sale_coupon_partner
- Description
Code Analysis ⓘ
Views touched (3)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_order_form |
sale.order | form | Inherits sale.view_order_form | |
view_order_line_tree |
sale.order.line | tree | Inherits sale.view_order_line_tree | |
view_order_product_search |
sale.report | search | Inherits sale.view_order_product_search |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (0)
No new fields.
Public methods (1)-
write(self, vals)We're looking for reward lines set in the write, from those, we'll get the proper ids to write them into the related lines
New fields (4)
-
coupon_program_idMany2one → coupon.programcomodel_name='coupon.program'ondelete='restrict'string='Coupon Program' -
reward_generated_line_idsMany2many → sale.order.linecolumn1='sale_line_id'column2='reward_generated_line_id'comodel_name='sale.order.line'help='Link on the reward lines generated meeting this line as criteria'relation='sale_line_reward_generated_line_rel'string='Reward Generated lines' -
reward_line_idsMany2many → sale.order.linecolumn1='sale_line_id'column2='reward_line_id'comodel_name='sale.order.line'help='Link on the reward lines applied from this one'relation='sale_line_reward_line_rel'string='Reward lines' -
reward_origin_generated_line_idsMany2many → sale.order.linecolumn1='reward_generated_line_id'column2='sale_line_id'comodel_name='sale.order.line'help='Origin Link on the reward lines generated meeting this line as criteria'relation='sale_line_reward_generated_line_rel'string='Origin Reward Generated lines'
-
write(self, vals)When the reward line is update we should refresh the line links as well
New fields (1)
-
coupon_program_idMany2one → coupon.programcomodel_name='coupon.program'string='Coupon Program'
No public methods.
Loading…
Loading…