Coupons Selection Wizard
sale_coupon_selection_wizard · OCA/sale-promotion
Merged into sale_loyalty_order_suggestion in 16.0
Health
57/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 43 months ago
-
Required by20/252 modules depend on it
-
Maturity12/25In 2 Odoo series since 13.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
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.1 MB
Module directory on disk
Code analysis
2 migration notes
3 models
5 views
2 HTTP endpoints
Migration considerations
coupon_selection_wizard_view_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 · sourceview_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
- sale_coupon_order_suggestion, website_sale_coupon_selection_wizard
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
configure |
Configure Promotion | ir.ui.view | qweb | New |
coupon_selection_wizard_view_form |
coupon.selection.wizard | form | New | |
promotion_wizard_product_card |
Product Card | ir.ui.view | qweb | New |
promotion_wizard_reward_card |
promotion_wizard_reward_card | ir.ui.view | qweb | New |
view_order_form |
sale.order | form | Inherits sale.view_order_form |
HTTP endpoints 2
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/sale_coupon_selection_wizard/apply |
CouponSelectionWizardController.apply_promotion |
public | json | POST | |
/sale_coupon_selection_wizard/configure |
CouponSelectionWizardController.configure_promotion |
public | json | POST | sudo |
Models touched 3
New fields (6)
-
available_coupon_program_idsMany2many → coupon.programcomodel_name='coupon.program'compute='_compute_available_coupon_program_ids' -
coupon_program_idMany2one → coupon.programcomodel_name='coupon.program'default=False -
coupon_reward_nameCharrelated='coupon_program_id.reward_id.display_name'string='Reward Name' -
order_idMany2one → sale.ordercomodel_name='sale.order' -
pricelist_idMany2onerelated='order_id.pricelist_id' -
promotion_line_idsOne2many → coupon.selection.wizard.linecomodel_name='coupon.selection.wizard.line'inverse_name='wizard_id'
No public methods.
New fields (10)
-
criteria_idMany2one → coupon.criteriacomodel_name='coupon.criteria'readonly=True -
criteria_qtyIntegerreadonly=True -
current_order_quantityIntegerhelp='Stores the quantity currently available in the order for this product'readonly=True -
optionalBooleanreadonly=True -
product_idMany2one → product.productcomodel_name='product.product'readonly=True -
program_idMany2one → coupon.programcomodel_name='coupon.program'readonly=True -
qty_to_addIntegerreadonly=True -
repeat_productBooleanrelated='criteria_id.repeat_product' -
rule_min_quantityIntegerrelated='criteria_id.rule_min_quantity' -
wizard_idMany2one → coupon.selection.wizardcomodel_name='coupon.selection.wizard'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
action_open_promotions_wizard(self)
Loading…