Account Invoice Clearing
account_invoice_clearing · OCA/account-invoicing
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 15.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
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.12 MB
Module directory on disk
Code analysis
0 migration notes
3 models
2 views
0 HTTP endpoints
Description
This module complements the functionality of Automatic Entries in Accounting. It provides a Wizard to clear invoices by creating an intermediate journal entry. It allows to clear any invoice with its opposite types. out_ types are cleared with in_ types and vice versa. The invoices to be cleared have to be not paid or partially paid. The wizard will use the residual amount of the invoices in the clearing process.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
account_invoice_clearing_wizard_form_view |
account.invoice.clearing.wizard.form.view | account.invoice.clearing.wizard | form | New |
view_move_form |
account.move.form | account.move | form | Inherits account.view_move_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (15)
-
account_idMany2onereadonly=Truerelated='move_line_id.account_id' -
amount_residualMonetarycurrency_field='company_currency_id'readonly=Truerelated='move_line_id.amount_residual' -
amount_to_clearMonetarycurrency_field='company_currency_id'default=0.0readonly=Truestring='Clearing amount' -
can_use_lineBooleancompute='_compute_can_use_line'store=False -
clearing_idMany2one → account.invoice.clearing.wizardcomodel_name='account.invoice.clearing.wizard' -
company_currency_idMany2onereadonly=Truerelated='move_line_id.company_currency_id' -
creditMonetarycurrency_field='company_currency_id'readonly=Truerelated='move_line_id.credit' -
dateDatereadonly=Truerelated='move_line_id.date' -
date_maturityDatereadonly=Truerelated='move_line_id.date_maturity' -
debitMonetarycurrency_field='company_currency_id'readonly=Truerelated='move_line_id.debit' -
invoice_idMany2onereadonly=Truerelated='move_line_id.move_id' -
move_line_idMany2one → account.move.linecomodel_name='account.move.line'required=True -
nameCharreadonly=Truerelated='move_line_id.name' -
product_idMany2onereadonly=Truerelated='move_line_id.product_id' -
sequenceIntegerdefault=10
-
action_use_all_amount_residual(self)Fill the amount to clear with the residual amount.
New fields (14)
-
amount_to_clearMonetarycompute='_compute_amount_to_clear'currency_field='company_currency_id'store=False -
commercial_partner_idMany2one → res.partnercomodel_name='res.partner'compute='_compute_initial_data'store=True -
company_currency_idMany2one → res.currencycomodel_name='res.currency'compute='_compute_initial_data'store=True -
company_idMany2one → res.companycomodel_name='res.company'compute='_compute_initial_data'store=True -
dateDatedefault=fields.Date.context_todayrequired=True -
invoice_idsMany2many → account.movecomodel_name='account.move'domain=[('move_type', '!=', 'entry'), ('state', '=', 'posted')]required=Truestring='Invoices/Bills' -
journal_idMany2one → account.journalcheck_company=Truecomodel_name='account.journal'default=<expr>domain="[('type', '=', 'general'), ('company_id', '=', company_id)]"required=True -
line_idsOne2many → account.invoice.clearing.lines.wizardcomodel_name='account.invoice.clearing.lines.wizard'inverse_name='clearing_id'string='Lines' -
move_dataTextcompute='_compute_move_data'help='JSON value of the moves to be created' -
move_line_idsMany2many → account.move.linecomodel_name='account.move.line'compute='_compute_initial_data'store=True -
move_line_prefixChardefault='Clearing operation'help='Prefix to be used in the name of the move lines generated by this wizard'string='Prefix for move lines' -
move_nameChardefault='Clearing operation'help='Name of the move generated by this wizard' -
move_typeCharcompute='_compute_initial_data'store=True -
preview_move_dataTextcompute='_compute_preview_move_data'help='JSON value of the data to be displayed in the previewer'
-
action_fill_amount_to_clear(self)Fill the amount to clear in all lines until amount to clear is zero. -
action_reopen_wizard(self)Reopen the wizard. -
action_reset_lines(self)Reset all lines. -
action_sort_by_date_due(self, reverse=False)Sort lines by date due. -
action_sort_by_residual(self)Sort lines by residual amount. -
button_confirm(self)Create the clearing move. -
default_get(self, fields)
New fields (0)
No new fields.
Public methods (1)-
action_open_invoice_clearing_wizard(self)
Loading…
Loading…
Loading…
Loading…