Account Document Reversal
account_document_reversal · OCA/account-financial-tools
Health
48/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 41 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 11.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.11 MB
Module directory on disk
Code analysis
4 migration notes
10 models
6 views
0 HTTP endpoints
Migration considerations
view_account_journal_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_account_payment_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_move_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_reverse_account_document— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
account_invoice_view_tree |
account.invoice.view.tree | account.move | tree | Inherits account.view_invoice_tree |
view_account_invoice_filter |
view.account.invoice.filter | account.move | Inherits account.view_account_invoice_filter | |
view_account_journal_form |
account.journal.form | account.journal | form | Inherits account.view_account_journal_form |
view_account_payment_form |
view.account.payment.form | account.payment | form | Inherits account.view_account_payment_form |
view_move_form |
account.move.form.inherit | account.move | form | Inherits account.view_move_form |
view_reverse_account_document |
reverse.account.document.form | reverse.account.document | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 10
New fields (0)
No new fields.
Public methods (2)-
action_document_reversal(self, date=None, journal_id=None)Reverse all moves related to this statement + delete payment -
button_cancel_reconciliation(self)If cancel method is to reverse, use document reversal wizard
New fields (1)
-
is_cancel_reversalBooleancompute='_compute_is_cancel_reversal'string='Use Cancel Reversal'
-
action_document_reversal(self, date=None, journal_id=None)Reverse with following guildeline, - Check existing document state / raise warning - Find all related moves and unreconcile - Create reversed moves - Set state to cancel -
reverse_document_wizard(self)@api.modelReturn Wizard to Cancel Document
New fields (4)
-
cancel_methodSelectiondefault='normal'required=Truestring='Cancel Method' args: [('normal', 'Normal (remove journal entries)'), ('reversal', 'Reversal (create reversed journal entries)')] -
is_cancel_reversalBooleancompute='_compute_is_cancel_reversal'help='True, when journal allow cancel entries with method is reversal'string='Use Cancel Reversal' -
reversal_journal_idMany2one → account.journalhelp='Journal in this field will show in reversal wizard as default'string='Default Reversal Journal' args: 'account.journal' -
use_different_journalBooleanhelp='If checked, reversal wizard will show field Reversal Journal'string='Use different journal for reversal'
No public methods.
New fields (2)
-
cancel_reversalBooleancopy=Falsedefault=Falsehelp='This document is being cancelled by using reversal method'string='Cancel Reversal' -
reverse_entry_idMany2one → account.movecomodel_name='account.move'compute='_compute_reverse_entry_id'help='The move that reverse this move (opposite of reversed_entry_id)'string='Reversed by'
-
action_document_reversal(self, date=None, journal_id=None) -
button_cancel(self) -
button_cancel_reversal(self) -
button_draft(self)
New fields (0)
No new fields.
Public methods (1)-
remove_move_reconcile(self)Freeze move with cancel_reversal = True, disallow unreconcile
New fields (0)
No new fields.
Public methods (4)-
action_document_reversal(self, date=None, journal_id=None)Reverse all moves related to this payment + set state to cancel -
action_draft(self)Case cancel reversal, set to draft allowed only when no moves -
cancel(self) -
cancel_reversal(self)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (3)
-
dateDatedefault=fields.Date.context_todayrequired=Truestring='Reversal date' -
journal_idMany2one → account.journalhelp='If empty, uses the journal of the journal entry to be reversed.'string='Reversal Journal' args: 'account.journal' -
use_different_journalBooleanhelp='Checked, if the journal of underlineing document is checked.'string='Use different journal for reversal'
-
action_cancel(self) -
default_get(self, default_fields)@api.model
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…