Repository
OCA/account-payment · module folder · Try on Runboat
Module version
1.0.0
Category
Accounting
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-payment
Last tracking update
2026-08-07 08:42:55
Authors
Odoo Community Association (OCA), Ecosoft
Maintainers
Odoo Community Association (OCA), Ecosoft
Committers
Saran440, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
l10n_th_account_tax_multi
Description
This module extend invoice(s)'s register payment feature, from "Mark
invoice as fully paid" with a single writeoff amount, to "Mark invoice
as fully paid (multi deduct)" which allow multiple deduction amounts.

**Note:** We use the word "Deduction", as the diff amount can be
anything not only to writeoff.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_account_payment_register_form account.payment.register.form account.payment.register form Inherits account.view_account_payment_register_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • is_writeoff Boolean
Public methods (0)

No public methods.

New fields (7)
  • account_id Many2one → account.account
    check_company=True comodel_name='account.account' domain=[('deprecated', '=', False)]
  • amount Monetary
    required=True string='Deduction Amount'
  • company_id Many2one → res.company
    comodel_name='res.company' related='register_payment_id.company_id'
  • currency_id Many2one → res.currency
    comodel_name='res.currency' related='register_payment_id.currency_id'
  • is_open Boolean
    help='Keep this line open' string='Open'
  • name Char
    required=True string='Label'
  • register_payment_id Many2one → account.payment.register
    comodel_name='account.payment.register' index=True ondelete='cascade' readonly=True
Public methods (0)

No public methods.

New fields (4)
  • deduct_analytic_distribution Json
  • deduct_residual Monetary
    compute='_compute_deduct_residual' string='Remainings'
  • deduction_ids One2many → account.payment.deduction
    comodel_name='account.payment.deduction' copy=False help='Sum of deduction amount(s) must equal to the payment difference' inverse_name='register_payment_id' string='Deductions'
  • payment_difference_handling Selection
    ondelete={'reconcile_multi_deduct': 'cascade'} selection_add=[('reconcile_multi_deduct', 'Mark invoice as fully paid (multi deduct)')]
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…