Sale Payment Method

sale_payment_method
REPOSITORY
REPOSITORYOCA/sale-workflow
GIT
GIThttps://github.com/OCA/sale-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/sale-workflow/tree/8.0/sale_payment_method
VERSION
VERSION 0.2.1
CATEGORY
CATEGORYGeneric Modules/Others
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSBenoit Guillot, Laetitia Gangloff, Jos De Graeve, Pedro M. Baeza, GitHub, Stéphane Bidoul (ACSONE), OCA Transbot, Stefan Rijnhart (Opener), Damien Crier, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttp://www.akretion.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:22
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web_kanban
    - web
    - web_kanban_sparkline
    - account_voucher
    - account
    - product
    - decimal_precision
    - report
    - analytic
    - board
    - edi
    - email_template
    - procurement
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
payment_method_view_form sale_payment_method.payment_method.view_form payment.method form New
payment_method_view_tree sale_payment_method.payment_method.view_tree payment.method tree New
sale_order_view_form sale.order.view.form sale.order field Inherits sale.view_order_form
sale_order_view_tree sale.order.view.tree sale.order field Inherits sale.view_order_tree
view_quotation_tree sale.order.view.tree sale.order field Inherits sale.view_quotation_tree
view_sales_order_filter sale.order filter Inherits sale.view_sales_order_filter
Models touched (3)

New fields (1)
  • sale_ids Many2many → sale.order
    comodel_name='sale.order' string='Sales Orders'
Public methods (0)

No public methods.

New fields (4)
  • company_id Many2one → res.company
    comodel_name='res.company' default=_default_company_id string='Company'
  • journal_id Many2one → account.journal
    comodel_name='account.journal' help='If a journal is selected, when a payment is recorded on a backend, payment entries will be created in this journal.' string='Journal'
  • name Char
    help='The name of the method on the backend' required=True
  • payment_term_id Many2one → account.payment.term
    comodel_name='account.payment.term' help='Default payment term of a sale order using this method.' string='Payment Term'
Public methods (0)

No public methods.

New fields (4)
  • amount_paid Float
    compute='_compute_amount' digits_compute=dp.get_precision('Account') store=False string='Amount Paid'
  • payment_ids Many2many → account.move.line
    comodel_name='account.move.line' copy=False domain=[('account_id.type', '=', 'receivable')] string='Payments Entries'
  • payment_method_id Many2one → payment.method
    comodel_name='payment.method' ondelete='restrict' string='Payment Method'
  • residual Float
    compute='_compute_amount' digits_compute=dp.get_precision('Account') store=False string='Balance'
Public methods (5)
  • action_cancel(self)
    @api.multi
  • action_view_payments(self)
    @api.multi
    Return an action to display the payment linked with the sale order
  • add_payment(self, journal_id, amount, date=None, description=None)
    @api.multi
    Generate payment move lines of a certain amount linked with the sale order.
  • automatic_payment(self, amount=None)
    @api.multi
    Create the payment entries to pay a sale order, respecting the payment terms. If no amount is defined, it will pay the residual amount of the sale order.
  • onchange_payment_method_id_set_payment_term(self)
    @api.onchange('payment_method_id')
REPOSITORY
REPOSITORYOCA/e-commerce
GIT
GIThttps://github.com/OCA/e-commerce.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/e-commerce/tree/7.0/sale_payment_method
VERSION
VERSION 0.2.1
CATEGORY
CATEGORYGeneric Modules/Others
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSBenoit Guillot, Yannick Vaucher, Guewen Baconnier, Alexandre Fayolle, Matthieu Dietrich, Laurent Mignon (Acsone), Sebastien Beau, Rudolf Schnapka, Arthur Vuillard, Alberto Garcia, Jan-Philipp Fischer, dudunato
WEBSITE
WEBSITEhttp://www.akretion.com/
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - sale
    - account_voucher
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - process
    - decimal_precision
    - mail
    - analytic
    - board
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Sale Payment Method
===================

This module adds low-level features used for instance by modules:

- Sale Automatic Workflow
- Sale Quick Payment

It adds a payment method on the sales orders and allow to register
payments entries on sales orders.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
payment_method_view_form sale_payment_method.payment_method.view_form payment.method form New
payment_method_view_tree sale_payment_method.payment_method.view_tree payment.method tree New
sale_order_view_form sale.order.view.form sale.order page Inherits sale.view_order_form
sale_order_view_tree sale.order.view.tree sale.order field Inherits sale.view_order_tree
view_quotation_tree sale.order.view.tree sale.order field Inherits sale.view_quotation_tree
view_sales_order_filter sale.order filter Inherits sale.view_sales_order_filter
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (7)
  • action_cancel(self, cr, uid, ids, context=None)
  • action_view_payments(self, cr, uid, ids, context=None)
    Return an action to display the payment linked with the sale order
  • add_payment(self, cr, uid, ids, journal_id, amount, date=None, description=None, context=None)
    Generate payment move lines of a certain amount linked with the sale order.
  • automatic_payment(self, cr, uid, ids, amount=None, context=None)
    Create the payment entries to pay a sale order, respecting the payment terms. If no amount is defined, it will pay the residual amount of the sale order.
  • copy(self, cr, uid, id, default=None, context=None)
  • get_payment_amount(self, cr, uid, ids, context=None)
  • onchange_payment_method_id(self, cr, uid, ids, payment_method_id, context=None)