Link coupons to order lines
sale_coupon_order_line_link · OCA/sale-promotion
Renamed to sale_loyalty_order_line_link in 16.0
Health
68/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 46 months ago
-
Required by25/255 modules depend on it
-
Maturity18/25In 3 Odoo series since 13.0
Heuristic over the facts below, not an audit · How it's computed
Required by
5
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis
1 migration note
3 models
3 views
0 HTTP endpoints
Migration considerations
view_order_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- 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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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…