Pos Loyalty Redeem Payment
pos_loyalty_redeem_payment · OCA/pos
Health
41/100
poor
-
Security25/25No findings
-
Activity6/25Last human commit 32 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 16.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.23 MB
Module directory on disk
Code analysis
1 migration note
6 models
2 views
0 HTTP endpoints
Migration considerations
loyalty_program_view_form_inherit— 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
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
loyalty_program_view_form_inherit |
loyalty.program.view.form.inherit | loyalty.program | form | Inherits loyalty.loyalty_program_view_form |
pos_payment_method_view_form_inherit |
pos.payment.method.form | pos.payment.method | form | Inherits point_of_sale.pos_payment_method_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
New fields (2)
-
pos_payment_method_idsOne2many → pos.payment.methodhelp='Payment methods that can be used to redeem coupons of this program.' args: 'pos.payment.method', 'program_id', 'POS Payment Methods' -
redeem_methodSelectiondefault='discount'help='Payment Method: The Voucher/Gift Card is used as a payment method in PoS orders.\nDiscount: The Voucher/Gift Card is used as a discount.'required=True args: [('discount', 'Discount'), ('payment_method', 'Payment Method')], 'Redemption Method'
-
write(self, vals)
New fields (0)
No new fields.
Public methods (1)-
use_coupon_code(self, code, *args)
New fields (0)
No new fields.
Public methods (3)-
apply_redeem_amount(self, coupons_data) -
get_loy_card_reports_from_order(self, order_ids)@api.model -
retrieve_coupon_data(self, order)
New fields (1)
-
coupon_idMany2one → loyalty.cardhelp='The coupon used as payment method.'ondelete='restrict' args: 'loyalty.card', 'Coupon'
No public methods.
New fields (2)
-
program_idMany2one → loyalty.programargs: 'loyalty.program' -
used_for_loyalty_programBooleanhelp='In PoS interface, this method allows to redeem a gift card.'string='Used for loyalty program'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.