TIP: You can type at any time to perform a new search.
Payment - Sale
sale_payment · odoo/odoo
- Repository
- odoo/odoo · module folder
- Module version
- 1.0
- Category
- Sales
- Folder size
- 0.53 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- None
- Last tracking update
- 2026-08-07 05:03:20
- Authors
- Maintainers
- None
- Committers
- Christophe Simonis, Thibault Delavallée, Martin Trigaux, Odoo Translation Bot, Nicolas Martinelli, Lucas Perais (lpe), Damien Bouvy, Yannick Tivisse, Odoo Online, Toufik Benjaa, tbe-odoo, fda-odoo
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- website_sale
- Description
Link Sales and Payment Provide tools for sale-related payment * specific management of transactions like sale order confirmation * tools method to handle transactions when allowing to pay / sell * JS code to handle a payment form (eCommerce * add payment-related fields on SO
Code Analysis ⓘ
Views touched (7)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
crm_team_salesteams_view_kanban_inherit_website_portal_sale |
crm.team.kanban | crm.team | kanban | Inherits sales_team.crm_team_salesteams_view_kanban |
payment_confirmation_status |
payment_confirmation_status | ir.ui.view | qweb | New |
portal_my_orders_payment |
Payment on my orders | ir.ui.view | qweb | Inherits sale.portal_order_page |
portal_order_error |
Order error display: payment errors | ir.ui.view | qweb | Inherits sale.portal_order_error |
portal_order_success |
Order success display: payment success | ir.ui.view | qweb | Inherits sale.portal_order_success |
res_config_settings_view_form |
res.config.settings.view.form.inherit.sale_payment | res.config.settings | form | Inherits sale.res_config_settings_view_form |
sale_order_view_form |
sale.order.form | sale.order | form | Inherits sale.view_order_form |
HTTP endpoints (3)
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/pay/sale/<int:order_id>/form_tx |
PaymentPortal.sale_pay_form |
public | json | ALL | sudo website |
/pay/sale/<int:order_id>/s2s_token_tx |
PaymentPortal.sale_pay_token |
public | http | ALL | sudo website |
/pay/sale/<int:order_id>/s2s_json_token_tx |
PaymentPortal.sale_pay_token_json |
public | json | ALL | sudo |
Models touched (3)
New fields (4)
-
authorized_payment_transactions_amountIntegercompute='_compute_payment_transactions'readonly=Truestring='Amount of transactions to capture' -
authorized_payment_transactions_countIntegercompute='_compute_payment_transactions'readonly=Truestring='Number of transactions to capture' -
pending_payment_transactions_amountIntegercompute='_compute_payment_transactions'readonly=Truestring='Amount of pending transactions' -
pending_payment_transactions_countIntegercompute='_compute_payment_transactions'readonly=Truestring='Number of pending transactions'
No public methods.
New fields (2)
-
sale_order_idMany2one → sale.orderauto_join=Truestring='Sales Order' args: 'sale.order' -
so_stateSelectionrelated='sale_order_id.state'string='Sale Order State' args: 'sale.order'
-
confirm_sale_token(self)Confirm a transaction token and call SO confirmation if it is a success. :return: True if success; error string otherwise -
form_feedback(self, data, acquirer_name)@api.modelOverride to confirm the sales order, if defined, and if the transaction is done. -
render_sale_button(self, order, return_url, submit_txt=None, render_values=None)
New fields (4)
-
payment_acquirer_idMany2one → payment.acquirerrelated='payment_tx_id.acquirer_id'store=Truestring='Payment Acquirer' args: 'payment.acquirer' -
payment_transaction_countIntegercompute='_compute_payment_transaction_count'string='Number of payment transactions' -
payment_tx_idMany2one → payment.transactioncopy=Falsestring='Last Transaction' args: 'payment.transaction' -
payment_tx_idsOne2many → payment.transactionstring='Transactions' args: 'payment.transaction', 'sale_order_id'
-
action_view_transaction(self)