Repository
OCA/account-financial-tools · module folder · Try on Runboat
Module version
1.0.4
Category
Accounting & Finance
Folder size
0.11 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-financial-tools
Last tracking update
2026-08-07 07:38:24
Authors
Odoo Community Association (OCA), Ecosoft, ForgeFlow
Maintainers
Odoo Community Association (OCA), Ecosoft, ForgeFlow
Committers
Carlos Lopez, Jordi Ballester Alomar, Weblate, OCA Transbot, OCA-git-bot, oca-ci, Kitti U, kittiu
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
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_reversal Boolean
    compute='_compute_is_cancel_reversal' string='Use Cancel Reversal'
Public methods (2)
  • 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.model
    Return Wizard to Cancel Document

New fields (4)
  • cancel_method Selection
    default='normal' required=True string='Cancel Method' args: [('normal', 'Normal (remove journal entries)'), ('reversal', 'Reversal (create reversed journal entries)')]
  • is_cancel_reversal Boolean
    compute='_compute_is_cancel_reversal' help='True, when journal allow cancel entries with method is reversal' string='Use Cancel Reversal'
  • reversal_journal_id Many2one → account.journal
    help='Journal in this field will show in reversal wizard as default' string='Default Reversal Journal' args: 'account.journal'
  • use_different_journal Boolean
    help='If checked, reversal wizard will show field Reversal Journal' string='Use different journal for reversal'
Public methods (0)

No public methods.

New fields (2)
  • cancel_reversal Boolean
    copy=False default=False help='This document is being cancelled by using reversal method' string='Cancel Reversal'
  • reverse_entry_id Many2one → account.move
    comodel_name='account.move' compute='_compute_reverse_entry_id' help='The move that reverse this move (opposite of reversed_entry_id)' string='Reversed by'
Public methods (4)
  • 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)
  • date Date
    default=fields.Date.context_today required=True string='Reversal date'
  • journal_id Many2one → account.journal
    help='If empty, uses the journal of the journal entry to be reversed.' string='Reversal Journal' args: 'account.journal'
  • use_different_journal Boolean
    help='Checked, if the journal of underlineing document is checked.' string='Use different journal for reversal'
Public methods (2)
  • action_cancel(self)
  • default_get(self, default_fields)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…