Account Statement Cancel Line
account_statement_cancel_line · OCA/account-reconcile
Health
55/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 101 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 7.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.04 MB
Module directory on disk
Code analysis
16 migration notes
5 models
3 views
0 HTTP endpoints
Migration considerations
Statement— Class 'Statement' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceStatementLine— Class 'StatementLine' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceStatementLine— Class 'StatementLine' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourceview_bank_statement_form_cancel_line— 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_wizard_cancel_statement_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 · sourcewizard_cancel_statement— Class 'wizard_cancel_statement' still inherits from the old-style `orm.TransientModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourcewizard_cancel_statement— Class 'wizard_cancel_statement' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcewizard_cancel_statement_line— Class 'wizard_cancel_statement_line' still inherits from the old-style `orm.TransientModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourcewizard_cancel_statement_line— Class 'wizard_cancel_statement_line' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcewizard_cancel_statement_line— Class 'wizard_cancel_statement_line' still inherits from the old-style `orm.TransientModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourcewizard_cancel_statement_line— Class 'wizard_cancel_statement_line' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · 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
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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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…