Payment - Sale

sale_payment
REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/11.0/sale_payment
VERSION
VERSION 1.0
CATEGORY
CATEGORYSales
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORS
MAINTAINERS
MAINTAINERS
COMMITTERS
COMMITTERSOdoo Translation Bot, Martin Trigaux, Thibault Delavallée, Christophe Simonis, Nicolas Martinelli, Lucas Perais (lpe), Damien Bouvy, Yannick Tivisse, Odoo Online, Toufik Benjaa, tbe-odoo, fda-odoo
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-05 23:53:44
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - payment
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - analytic
    - web_planner
    - portal
    - http_routing
    - sale
    - sales_team
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 IDNameModelTypeStatus
crm_team_salesteams_view_kanban_inherit_website_portal_sale crm.team.kanban crm.team data 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 xpath Inherits sale.res_config_settings_view_form
sale_order_view_form sale.order.form sale.order xpath Inherits sale.view_order_form
Models touched (3)

New fields (4)
  • authorized_payment_transactions_amount Integer
    compute='_compute_payment_transactions' readonly=True string='Amount of transactions to capture'
  • authorized_payment_transactions_count Integer
    compute='_compute_payment_transactions' readonly=True string='Number of transactions to capture'
  • pending_payment_transactions_amount Integer
    compute='_compute_payment_transactions' readonly=True string='Amount of pending transactions'
  • pending_payment_transactions_count Integer
    compute='_compute_payment_transactions' readonly=True string='Number of pending transactions'
Public methods (0)

No public methods.

New fields (2)
  • sale_order_id Many2one → sale.order
    auto_join=True string='Sales Order' args: 'sale.order'
  • so_state Selection
    related='sale_order_id.state' string='Sale Order State' args: 'sale.order'
Public methods (3)
  • 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.model
    Override 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_id Many2one → payment.acquirer
    related='payment_tx_id.acquirer_id' store=True string='Payment Acquirer' args: 'payment.acquirer'
  • payment_transaction_count Integer
    compute='_compute_payment_transaction_count' string='Number of payment transactions'
  • payment_tx_id Many2one → payment.transaction
    copy=False string='Last Transaction' args: 'payment.transaction'
  • payment_tx_ids One2many → payment.transaction
    string='Transactions' args: 'payment.transaction', 'sale_order_id'
Public methods (1)
  • action_view_transaction(self)