TIP: You can type at any time to perform a new search.
Coupons, Promotions, Gift Card and Loyalty for eCommerce
website_sale_loyalty · odoo/odoo
- Repository
- odoo/odoo · module folder
- Module version
- 1.0
- Category
- Website/Website
- Folder size
- 0.8 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- Yes
- Website
- None
- Last tracking update
- 2026-08-15 22:44:16
- Authors
- Odoo S.A.
- Maintainers
- Odoo S.A.
- Committers
- Odoo Translation Bot, Aaron Bohy, Géry Debongnie, Julien Castiaux, Victor Feyens, Julien Mougenot, Tiffany Chang (tic), Gorash, William Braeckman, Nicolas Bayet, Demesmaeker, Valentin Chevalier, Louis Wicket (wil), Mylyna Hy, Levi Siuzdak (sile), Dylan Kiss (dyki), Antoine Boonen, Valeriya(vchu), Anita (anko), stefanorigano (SRI), visp-odoo, Louis (loti), Serge Bayet (seba), reka-odoo, AMZIL Ayoub, kcv-odoo, dere-odoo, Lina (liew), mano-odoo, sabr, Manushi Shah, Pierre Pulinckx (PIPU), dija-odoo, Pierre Pulinckx, Bastien PIERRE, jeep-odoo, Mahdi Alijani (malj), Krzysztof Magusiak (krma), krip-odoo, Augustin (duau), Alessandro Lupo, Nisarg (nipl), assh-odoo, Lionel Piraux (lipi), khaj-odoo, chpa-odoo, sse
- Odoo dependencies
- Python dependencies
- geoip2
- System dependencies
- None
- Required by
- None
- Description
Create coupon, promotion codes, gift cards and loyalty programs to boost your sales (free products, discounts, etc.). Shoppers can use them in the eCommerce checkout. Coupon & promotion programs can be edited in the Catalog menu of the Website app.
Code Analysis ⓘ
Views touched (15)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
cart_discount |
Show Discount in Subtotal | ir.ui.view | qweb | Inherits website_sale.total |
cart_line_product_no_link |
cart_line_product_no_link | ir.ui.view | qweb | Inherits website_sale.cart_lines |
cart_summary |
Payment | ir.ui.view | qweb | Inherits website_sale.cart_product_price |
cart_summary_inherit_website_gift_card_sale |
cart_summary_inherit_website_gift_card_sale | ir.ui.view | qweb | Inherits website_sale.cart_summary_content |
coupon_share_view_form |
coupon.share.form | coupon.share | form | New |
layout |
layout | ir.ui.view | qweb | Inherits website.layout |
loyalty_card_view_tree_inherit_website_sale_loyalty |
loyalty.card.view.list.inherit.website.sale.loyalty | loyalty.card | list | Inherits loyalty.loyalty_card_view_tree |
loyalty_program_view_form_inherit_website_sale_loyalty |
loyalty.program.view.form.inherit.website.sale.loyalty | loyalty.program | form | Inherits sale_loyalty.loyalty_program_view_form_inherit_sale_loyalty |
loyalty_program_view_tree_inherit_website_sale_loyalty |
loyalty.program.view.list.inherit.website.sale.loyalty | loyalty.program | list | Inherits loyalty.loyalty_program_view_tree |
modify_code_form |
Loyalty, coupon, gift card | ir.ui.view | qweb | Inherits website_sale.total |
reduction_coupon_code |
reduction_coupon_code | ir.ui.view | qweb | Inherits website_sale.reduction_code |
res_config_settings_view_form_inherit_website_sale_loyalty |
res.config.settings.view.form.inherit.website.sale.loyalty | res.config.settings | form | Inherits website_sale.res_config_settings_view_form |
sale_coupon_result |
sale_coupon_result | ir.ui.view | qweb | Inherits website_sale.coupon_form |
website_sale_loyalty.cart_lines_quantity |
Shopping Cart Lines | ir.ui.view | qweb | Inherits website_sale.cart_lines_quantity |
website_sale_purchased_gift_card |
website_sale_purchased_gift_card | ir.ui.view | qweb | Inherits website_sale.confirmation |
HTTP endpoints (7)
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
| (inherited route override) | Cart.cart |
inherited | http | ALL | |
/wallet/top_up |
Cart.wallet_top_up |
user | http | ALL | website |
| (inherited route override) | CustomerPortalLoyalty.portal_get_card_history_values |
inherited | http | ALL | sudo |
/coupon/<string:code> |
WebsiteSale.activate_coupon |
public | http | ALL | website |
/shop/claimreward |
WebsiteSale.claim_reward |
public | http | ALL | sudo website |
| (inherited route override) | WebsiteSale.pricelist |
inherited | http | ALL | |
| (inherited route override) | WebsiteSaleLoyaltyDelivery.express_checkout_process_delivery_address |
inherited | http | ALL |
Models touched (7)
New fields (7)
-
coupon_idMany2one → loyalty.carddomain="[('program_id', '=', program_id)]" args: 'loyalty.card' -
program_idMany2one → loyalty.programdomain=['|', ('program_type', '=', 'coupons'), '|', ('trigger', '=', 'with_code'), ('rule_ids.code', '!=', False)]required=True args: 'loyalty.program' -
program_website_idMany2one → websiterelated='program_id.website_id'string='Program Website' args: 'website' -
promo_codeCharcompute='_compute_promo_code' -
redirectChardefault='/shop'required=True -
share_linkCharcompute='_compute_share_link' -
website_idMany2one → websitedefault=_get_default_website_idrequired=True args: 'website'
-
action_generate_short_link(self) -
create_share_action(self, coupon=None, program=None)@api.model
New fields (0)
No new fields.
Public methods (1)-
action_coupon_share(self)
New fields (2)
-
ecommerce_okBooleandefault=True args: 'Available on Website' -
show_non_published_product_warningBooleancompute='_compute_show_non_published_product_warning'
-
action_program_share(self)
New fields (1)
-
website_idMany2onerelated='program_id.website_id'store=True
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
disabled_auto_rewardsMany2many → loyalty.rewardrelation='sale_order_disabled_auto_rewards_rel' args: 'loyalty.reward'
-
get_promo_code_error(self, delete=True) -
get_promo_code_success_message(self, delete=True)
New fields (0)
No new fields.
Public methods (1)-
unlink(self)
Loading…
Loading…
Loading…