Health
41/100
poor
-
Security25/25No findings
-
Activity6/25Last human commit 36 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 15.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.44 MB
Module directory on disk
Code analysis
2 migration notes
5 models
4 views
0 HTTP endpoints
Migration considerations
pos_gift_card_config_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 · sourceres_config_view_form_inherit_pos_coupon— 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
Integrate gift card mechanism in sales orders.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
gift_card_template |
gift_card_template | ir.ui.view | qweb | New |
pos_gift_card_config_view_form |
pos.config.form | pos.config | form | Inherits point_of_sale.pos_config_view_form |
pos_gift_card_view_form |
gift.card.form Website | gift.card | form | Inherits gift_card.gift_card_view_form |
res_config_view_form_inherit_pos_coupon |
res.config.form.inherit.pos.coupon | res.config.settings | form | Inherits point_of_sale.res_config_settings_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (1)
-
typeSelectionondelete={'gift_card': 'set default'}selection_add=[('gift_card', 'Gift Card')]
No public methods.
New fields (2)
-
buy_pos_order_line_idMany2one → pos.order.linecopy=Falsehelp='Pos Order line where this gift card has been bought.'readonly=True args: 'pos.order.line' -
redeem_pos_order_line_idsOne2many → pos.order.linestring='Pos Redeems' args: 'pos.order.line', 'gift_card_id'
-
can_be_used_in_pos(self, sale_order_origin_id=False)
New fields (3)
-
gift_card_product_idMany2one → product.producthelp='This product is used as reference on customer receipts.'string='Gift Card Product' args: 'product.product' -
gift_card_settingsSelectiondefault='create_set'help='Defines the way you want to set your gift cards.'string='Gift Cards settings' args: [('create_set', 'Generate a new barcode and set a price'), ('scan_set', 'Scan an existing barcode and set a price'), ('scan_use', 'Scan an existing barcode with an existing price')] -
use_gift_cardBooleanstring='Gift Card'
No public methods.
New fields (1)
-
gift_card_countIntegercompute='_compute_gift_card_count'
-
create_from_ui(self, orders, draft=False)@api.model -
get_new_card_ids(self)
New fields (2)
-
generated_gift_card_idsOne2many → gift.cardstring='Bought Gift Card' args: 'gift.card', 'buy_pos_order_line_id' -
gift_card_idMany2one → gift.cardcopy=Falsehelp='Deducted from this Gift Card' args: 'gift.card'
No public methods.