Gift Card
gift_card · odoo/odoo
Health
50/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 50 months ago
-
Required by20/253 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
3
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.3 MB
Module directory on disk
Code analysis
3 migration notes
2 models
3 views
0 HTTP endpoints
Migration considerations
GiftCard— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourcegift_card_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 · sourcegift_card_view_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · 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
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- pos_gift_card, pos_sale_gift_card, sale_gift_card
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
gift_card_view_form |
gift.card.form | gift.card | form | New |
gift_card_view_search |
gift.card.search | gift.card | search | New |
gift_card_view_tree |
gift.card.tree | gift.card | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (9)
-
balanceMonetarycompute='_compute_balance' -
codeCharcopy=Falsedefault=<expr>readonly=Truerequired=True -
company_idMany2one → res.companydefault=<expr> args: 'res.company' -
currency_idMany2one → res.currencyreadonly=Truerelated='company_id.currency_id' args: 'res.currency' -
expired_dateDatedefault=<expr> -
initial_amountMonetarycurrency_field='currency_id'required=True -
nameCharcompute='_compute_name' -
partner_idMany2one → res.partnerhelp='If empty, all users can use it' args: 'res.partner' -
stateSelectioncopy=Falsedefault='valid'selection=[('valid', 'Valid'), ('expired', 'Expired')]
-
balance_converted(self, currency_id=False) -
can_be_used(self)
New fields (1)
-
detailed_typeSelectionondelete={'gift': 'set service'}selection_add=[('gift', 'Gift Card')]
No public methods.