Skip to content
Health
55/100
fair
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 101 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 4 Odoo series since 7.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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.04 MB
Module directory on disk
Code analysis 16 migration notes 5 models 3 views 0 HTTP endpoints

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.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…