TIP: You can type at any time to perform a new search.
Point Of Sale - Change Payments
pos_payment_change · OCA/pos
- Repository
- OCA/pos · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Point Of Sale
- Folder size
- 0.24 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/pos
- Last tracking update
- 2026-08-07 08:23:00
- Authors
- Odoo Community Association (OCA), GRAP
- Maintainers
- Odoo Community Association (OCA), GRAP
- Committers
- Víctor Martínez, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
This module extends the functionnality of the Odoo Point of Sale to allow the cashier to change the payments of a PoS order. This feature is usefull when the user realized that he did a mistake, just after he marked the order as paid, or during the close of the session, Only if entries has not been generated.
Code Analysis ⓘ
Views touched (3)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_pos_order_form |
pos.order | form | Inherits point_of_sale.view_pos_pos_form | |
view_pos_payment_change_wizard_form |
pos.payment.change.wizard | form | New | |
view_res_config_settings_form |
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 (6)
New fields (1)
-
payment_change_policySelectiondefault='refund'help="Payment Change Policy when users want to change the payment lines of a given PoS Order.\n* 'Refund and Resale': Odoo will refund the current Pos Order to cancel it, and create a new PoS Order with the correct payment lines.\n* 'Update Payments': Odoo will change payment lines.\n\nNote : In some countries the 'Update Payments' Option is not allowed by law, because orders history shouldn't not be altered."required=Trueselection=_PAYMENT_CHANGE_POLICY_SELECTION
No public methods.
New fields (0)
No new fields.
Public methods (1)-
change_payment(self, payment_lines)Change payment of a given order. payment_lines should be a list of data that are the argument of the Odoo Core function add_payment() Return a list of order ids, depending on the payment_change_policy of the related pos_config.
New fields (4)
-
amount_totalFloatreadonly=Truestring='Total' -
new_line_idsOne2many → pos.payment.change.wizard.new.linecomodel_name='pos.payment.change.wizard.new.line'inverse_name='wizard_id'string='New Payment Lines' -
old_line_idsOne2many → pos.payment.change.wizard.old.linecomodel_name='pos.payment.change.wizard.old.line'inverse_name='wizard_id'readonly=Truestring='Old Payment Lines' -
order_idMany2one → pos.ordercomodel_name='pos.order'readonly=Truestring='Order'
-
button_change_payment(self) -
default_get(self, fields)@api.model
New fields (5)
-
amountMonetarycurrency_field='company_currency_id'default=0.0required=True -
available_payment_method_idsMany2many → pos.payment.methodcomodel_name='pos.payment.method'related='wizard_id.order_id.session_id.payment_method_ids' -
company_currency_idMany2one → res.currencycomodel_name='res.currency'help='Utility field to express amount currency'readonly=Truerelated='new_payment_method_id.company_id.currency_id'store=Truestring='Company Currency' -
new_payment_method_idMany2one → pos.payment.methodcomodel_name='pos.payment.method'domain="[('id', 'in', available_payment_method_ids)]"required=Truestring='Payment Method' -
wizard_idMany2one → pos.payment.change.wizardcomodel_name='pos.payment.change.wizard'ondelete='cascade'required=True
-
default_get(self, fields)@api.model
New fields (4)
-
amountMonetarycurrency_field='company_currency_id'default=0.0readonly=Truerequired=True -
company_currency_idMany2one → res.currencycomodel_name='res.currency'help='Utility field to express amount currency'readonly=Truerelated='old_payment_method_id.company_id.currency_id'store=Truestring='Company Currency' -
old_payment_method_idMany2one → pos.payment.methodcomodel_name='pos.payment.method'readonly=Truerequired=Truestring='Payment Method' -
wizard_idMany2one → pos.payment.change.wizardcomodel_name='pos.payment.change.wizard'ondelete='cascade'required=True
No public methods.
New fields (1)
-
pos_payment_change_policySelectionreadonly=Falserelated='pos_config_id.payment_change_policy'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 59 days ago
- Last activity
- 58 days ago
- Repository
- OCA/pos
- Pull request
- [18.0][MIG] pos_payment_change: Migration to 18.0 (#1573)