Skip to content
Health
85/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 8 months ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 7 Odoo series since 12.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis 0 migration notes 3 models 1 view 0 HTTP endpoints

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.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
l10n_th_account_tax_multi

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…

Loading…