TIP: You can type at any time to perform a new search.
Sale Loyalty Suggestions
sale_loyalty_order_suggestion · OCA/sale-promotion
- Repository
- OCA/sale-promotion · module folder · Try on Runboat
- Module version
- 1.0.2
- Category
- Sale
- Folder size
- 0.07 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/sale-promotion
- Last tracking update
- 2026-08-07 08:43:05
- Authors
- Odoo Community Association (OCA), Tecnativa
- Maintainers
- Odoo Community Association (OCA), Tecnativa
- Committers
- pilarvargas-tecnativa, CarlosRoca13, Pilar Vargas, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- sale_loyalty_order_suggestion_multi_gift, sale_loyalty_order_suggestion_multi_product, website_sale_loyalty_suggestion_wizard
- Description
This module extends the functionality of the sale_loyalty wizard by giving hints of available promotions and products needed to apply them to the seller placing the sales order. A product added to the lines of a sales order will be marked with a gift icon if there is a promotion containing that product as part of its rules.
Code Analysis ⓘ
Views touched (2)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
sale_loyalty_reward_wizard_view_form_suggestion |
sale.loyalty.reward.wizard | form | Inherits sale_loyalty.sale_loyalty_reward_wizard_view_form | |
view_order_form |
sale.order | form | Inherits sale.view_order_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (4)
New fields (4)
-
applicable_programBooleancompute='_compute_applicable_promotion'default='True' -
loyalty_rule_line_descriptionHtmlcompute='_compute_loyalty_rule_line_description' -
loyalty_rule_line_idsOne2many → sale.loyalty.rule.product_line.wizardcomodel_name='sale.loyalty.rule.product_line.wizard'compute='_compute_loyalty_rule_line_ids'inverse_name='wizard_id'readonly=Falsestore=Truestring='Loyalty Rule Lines' -
product_idMany2one → product.productargs: 'product.product'
-
action_apply(self)
New fields (10)
-
company_idMany2onerelated='order_id.company_id' -
currency_idMany2onerelated='order_id.currency_id' -
order_idMany2onerelated='wizard_id.order_id'store=True -
price_unitFloatcompute='_compute_price_unit'string='Unit Price' -
pricelist_idMany2onerelated='wizard_id.order_id.pricelist_id' -
product_idMany2one → product.productcomodel_name='product.product' -
units_includedFloatstring='Included units' -
units_requiredFloatstring='Required units' -
units_to_includeFloatstring='Units to include' -
wizard_idMany2one → sale.loyalty.reward.wizardcomodel_name='sale.loyalty.reward.wizard'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (3)
-
suggested_promotion_idsMany2many → loyalty.programcomodel_name='loyalty.program'compute='_compute_suggested_promotion_ids' -
suggested_promotionsBooleancompute='_compute_suggested_promotion_ids'default=False -
suggested_reward_idsMany2many → loyalty.rewardcomodel_name='loyalty.reward'compute='_compute_suggested_promotion_ids'
No public methods.
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 99 days ago
- Last activity
- 0 days ago
- Repository
- OCA/sale-promotion
- Pull request
- [19.0][MIG] sale_loyalty_order_suggestion: Migration to 19.0 (#335)
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 184 days ago
- Last activity
- 10 days ago
- Repository
- OCA/sale-promotion
- Pull request
- [19.0] [MIG] sale_loyalty_order_suggestion: Migration to 19.0 (#316)