Payment Register with Multiple Deduction
account_payment_multi_deduction · OCA/account-payment
Health
85/100
good
-
Security25/25No findings
-
Activity20/25Last human commit 8 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 7 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_writeoffBoolean
No public methods.
New fields (7)
-
account_idMany2one → account.accountcheck_company=Truecomodel_name='account.account'domain=[('deprecated', '=', False)] -
amountMonetaryrequired=Truestring='Deduction Amount' -
company_idMany2one → res.companycomodel_name='res.company'related='register_payment_id.company_id' -
currency_idMany2one → res.currencycomodel_name='res.currency'related='register_payment_id.currency_id' -
is_openBooleanhelp='Keep this line open'string='Open' -
nameCharrequired=Truestring='Label' -
register_payment_idMany2one → account.payment.registercomodel_name='account.payment.register'index=Trueondelete='cascade'readonly=True
No public methods.
New fields (4)
-
deduct_analytic_distributionJson -
deduct_residualMonetarycompute='_compute_deduct_residual'string='Remainings' -
deduction_idsOne2many → account.payment.deductioncomodel_name='account.payment.deduction'copy=Falsehelp='Sum of deduction amount(s) must equal to the payment difference'inverse_name='register_payment_id'string='Deductions' -
payment_difference_handlingSelectionondelete={'reconcile_multi_deduct': 'cascade'}selection_add=[('reconcile_multi_deduct', 'Mark invoice as fully paid (multi deduct)')]
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…