TIP: You can type at any time to perform a new search.

Security findings

Repository
odoo/odoo · module folder
Module version
0.1.0
Category
Website/Website
Folder size
0.82 MB
License
LGPL-3
Application
No
Auto-installable
Yes
Website
None
Last tracking update
2026-09-28 18:31:15
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Raphael Collet, Thibault Delavallée, odoo, Odoo Translation Bot, Christophe Matthieu, Julien Castiaux, Victor Feyens, Julien Mougenot, Tiffany Chang (tic), Antoine Vandevenne (anv), Valentin Chevalier, Levi Siuzdak (sile), Dylan Kiss (dyki), Antoine Boonen, Chong Wang (cwg), visp-odoo, Louis (loti), kcv-odoo, Harsh Shah, dija-odoo, Pierre Pulinckx, Michaël Mattiello, Valeriya (vchu), Shrey Mehta, Carmine, Mahdi Alijani (malj), anko-odoo, Krzysztof Magusiak (krma), krip-odoo, Julien Launois (jula), Nisarg (nipl), assh-odoo, Lionel Piraux (lipi), Ravij Parikh, srap-odoo, Khaj-odoo, chpa-odoo, Krishna Patel, Jean Schoenlaub, Ahmed Hamila, Cezar Bulancea (cebul)
Odoo dependencies
Python dependencies
geoip2
System dependencies
None
Required by
None
Description
Create coupons, 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 info_outline

Views touched (14)
XML IDNameModelTypeStatus
coupon_share_view_form coupon.share.form coupon.share form New
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
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
website_sale_loyalty.cart_line_product_no_link website_sale_loyalty.cart_line_product_no_link ir.ui.view qweb Inherits website_sale.cart_lines
website_sale_loyalty.cart_lines_quantity Shopping Cart Lines ir.ui.view qweb Inherits website_sale.cart_lines_quantity
website_sale_loyalty.cart_summary Payment ir.ui.view qweb Inherits website_sale.cart_product_price
website_sale_loyalty.cart_summary_inherit_website_gift_card_sale website_sale_loyalty.cart_summary_inherit_website_gift_card_sale ir.ui.view qweb Inherits website_sale.cart_summary_content
website_sale_loyalty.layout website_sale_loyalty.layout ir.ui.view qweb Inherits website.layout
website_sale_loyalty.modify_code_form Loyalty, coupon, gift card ir.ui.view qweb Inherits website_sale.total
website_sale_loyalty.promotion_progress_bar Promotion Progress Bar ir.ui.view qweb Inherits website_sale.total
website_sale_loyalty.sale_coupon_result website_sale_loyalty.sale_coupon_result ir.ui.view qweb Inherits website_sale.coupon_form
website_sale_loyalty.website_sale_purchased_gift_card website_sale_loyalty.website_sale_purchased_gift_card ir.ui.view qweb Inherits website_sale.confirmation
HTTP endpoints (8)
Route(s)HandlerAuthTypeMethodsFlags
(inherited route override) Cart.add_to_cart inherited http ALL
(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_id Many2one → loyalty.card
    domain="[('program_id', '=', program_id)]" args: 'loyalty.card'
  • program_id Many2one → loyalty.program
    domain=['|', ('program_type', '=', 'coupons'), '|', ('trigger', '=', 'with_code'), ('rule_ids.code', '!=', False)] required=True args: 'loyalty.program'
  • program_website_id Many2one → website
    related='program_id.website_id' string='Program Website' args: 'website'
  • promo_code Char
    compute='_compute_promo_code'
  • redirect Char
    default='/shop' required=True
  • share_link Char
    compute='_compute_share_link'
  • website_id Many2one → website
    default=_get_default_website_id required=True args: 'website'
Public methods (2)
  • 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_ok Boolean
    default=True args: 'Available on Website'
  • show_non_published_product_warning Boolean
    compute='_compute_show_non_published_product_warning'
Public methods (1)
  • action_program_share(self)

New fields (1)
  • website_id Many2one
    related='program_id.website_id' store=True
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • disabled_auto_rewards Many2many → loyalty.reward
    relation='sale_order_disabled_auto_rewards_rel' args: 'loyalty.reward'
Public methods (2)
  • 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…

Loading…