Gift Card for sales module

sale_gift_card
REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/15.0/sale_gift_card
VERSION
VERSION 1.0
CATEGORY
CATEGORYSales/Sales
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLEYes
AUTHORS
AUTHORS
MAINTAINERS
MAINTAINERS
COMMITTERS
COMMITTERSOdoo Translation Bot, Martin Trigaux, Pierre Masereel, Touati Djamel (otd), william-andre, Nicolas Bayet, Eteil Djoumatchoua (etdj)
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:25:29
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - gift_card
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - sale
    - sales_team
    - payment
    - account
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Integrate gift card mechanism in sales orders.

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
sale_gift_card.used_gift_card sale_gift_card.used_gift_card ir.ui.view qweb New
sale_gift_card_view_form gift.card.form Website gift.card xpath Inherits gift_card.gift_card_view_form
sale_order_portal_content_inherit Gift Card Products Portal ir.ui.view qweb Inherits sale.sale_order_portal_content
sale_order_view_extend_gift_card_form sale.order.view.form.inherit.gift.card sale.order xpath Inherits sale.view_order_form
sale_purchased_gift_card sale_purchased_gift_card ir.ui.view qweb New
Models touched (3)

New fields (2)
  • buy_line_id Many2one → sale.order.line
    copy=False help='Sale Order line where this gift card has been bought.' readonly=True args: 'sale.order.line'
  • redeem_line_ids One2many → sale.order.line
    string='Redeems' args: 'sale.order.line', 'gift_card_id'
Public methods (0)

No public methods.

New fields (1)
  • gift_card_count Integer
    compute='_compute_gift_card_count'
Public methods (0)

No public methods.

New fields (2)
  • generated_gift_card_ids One2many → gift.card
    string='Bought Gift Card' args: 'gift.card', 'buy_line_id'
  • gift_card_id Many2one → gift.card
    copy=False help='Deducted from this Gift Card' args: 'gift.card'
Public methods (0)

No public methods.