Repository
OCA/account-reconcile · module folder · Try on Runboat
Module version
0.3
Category
Finance
Folder size
0.04 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
http://www.camptocamp.com
Last tracking update
2026-08-07 07:17:51
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp
Committers
Pedro M. Baeza, Stéphane Bidoul (ACSONE)
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
        Account Statement Cancel Line

        This module allows to cancel one line of the statement without
        cancelling the whole thing.

        To do that, a state is added to the statement line.

        When the user confirms or cancels the whole statement, we keep the
        previous functionality, and then we change the state in all statement
        lines. We also add a warning if any lines are reconciled. If no lines
        are reconciled, we show a generic warning because the operation could
        take a long time.

        When the user confirms or cancels a statement line, we update the state
        of the line, and if necessary we update the state of the whole
        statement, too.

        If the user tries to cancel a line that is reconciled, we ask for
        confirmation before proceeding.
    

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_bank_statement_form_cancel_line account.bank.statement.form. account.bank.statement form Inherits account.view_bank_statement_form
view_wizard_cancel_statement_form view.wizard.cancel.statement.form wizard.cancel.statement form New
view_wizard_cancel_statement_line_form view.wizard.cancel.statement.line.form wizard.cancel.statement.line form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (0)

No new fields.

Public methods (4)
  • button_cancel(self, cr, uid, ids, context=None)
    Check if there is any reconciliation. Return action.
  • button_confirm_bank(self, cr, uid, ids, context=None)
    If all lines are draft, change their state. Otherwise, confirm line by line to avoid duplicate moves. Return super.
  • confirm_statement_from_lines(self, cr, uid, ids, context=None)
    If all lines are confirmed, so is the whole statement. Return True if we changed anything.
  • do_cancel(self, cr, uid, ids, context=None)
    Change the state on the statement lines. Return super. This method is called directly when there are no reconciliations, or from the warning wizard, if there are reconciliations.

New fields (0)

No new fields.

Public methods (5)
  • button_cancel(self, cr, uid, ids, context=None)
    Check if a line is reconciled, and cancel it. Return action.
  • cancel(self, cr, uid, ids, context=None)
    Cancel one statement line, return action. This is again similar to the method cancel in the account_banking module.
  • confirm(self, cr, uid, ids, context=None)
    Confirm just one statement line, return action. The module account_banking does have a similar method, but at the moment it uses a different logic (for example, it uses vouchers, where the bank-statement-reconcile branch does not).
  • has_reconciliation(self, cr, uid, ids, context=None)
    Check if the line has some reconciliation. Return boolean.
  • unlink(self, cr, uid, ids, context=None)
    Don't allow deletion of a confirmed statement line. Return super.

New fields (0)

No new fields.

Public methods (1)
  • do_cancel_button(self, cr, uid, ids, context=None)
    Proceed and cancel the statement, return Action. This will delete the move.line and the reconciliation.

New fields (0)

No new fields.

Public methods (1)
  • unreconcile(self, cr, uid, ids, context=None)
    Proceed and cancel the statement line, return Action. This will delete the move.line and the reconciliation.

New fields (0)

No new fields.

Public methods (1)
  • unreconcile(self, cr, uid, ids, context=None)
    Proceed and cancel the statement line, return Action. This will delete the move.line and the reconciliation.

Loading…

Loading…

Loading…