Repository
OCA/sale-workflow · module folder · Try on Runboat
Module version
0.2.1
Category
Generic Modules/Others
Folder size
0.43 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
http://www.akretion.com/
Last tracking update
2026-08-07 07:03:04
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
Benoit Guillot, Laetitia Gangloff, Jos De Graeve, Pedro M. Baeza, GitHub, Stéphane Bidoul (ACSONE), Weblate, OCA Transbot, Damien Crier, Stefan Rijnhart (Opener), OCA-git-bot, oca-travis
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
sale_payment_method_automatic_workflow, sale_payment_method_transaction_id, sale_quick_payment
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 form Inherits sale.view_order_form
sale_order_view_tree sale.order.view.tree sale.order tree Inherits sale.view_order_tree
view_quotation_tree sale.order.view.tree sale.order tree Inherits sale.view_quotation_tree
view_sales_order_filter sale.order Inherits sale.view_sales_order_filter
HTTP endpoints (0)

No HTTP endpoints found for this module.

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')

Loading…