PoS Order - Change Policy
pos_payment_method_change_policy · OCA/pos
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 37 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
AGPL-3
No conflicts with its dependencies
Folder size
0.26 MB
Module directory on disk
Code analysis
1 migration note
2 models
1 view
0 HTTP endpoints
Migration considerations
view_pos_payment_method_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 · 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 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_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 2
New fields (2)
-
change_policySelectiondefault='cash'help="Method of managing the giving of change.\n * 'Cash': (Default). the cashier will give back money in cash method.\n * 'Exceptional Profit Product': an extra PoS Order Line will be added in the PoS Order of the surplus amount. This will be an exceptional gain for the seller, and a loss for the customer."required=Trueselection=[('cash', 'Cash'), ('profit_product', 'Exceptional Profit Product')] -
change_product_idMany2one → product.productcomodel_name='product.product'domain=[('type', '=', 'service'), ('available_in_pos', '=', True)]help='This product will be used if customer pays more that the amount of the receipt, to add an extra order line when confirming order.'
-
check_change_product_id(self)@api.constrains('change_policy', 'change_product_id')
New fields (0)
No new fields.
Public methods (0)No public methods.