TIP: You can type at any time to perform a new search.
Account Statement Cancel Line
account_statement_cancel_line · OCA/account-reconcile
Security findings
Migration considerations
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools.translate` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
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=`. migration-old-style-fields · sourceStatementLine— Class 'StatementLine' declares `_defaults` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceview_bank_statement_form_cancel_line— For a target of Odoo 17.0+: view 'view_bank_statement_form_cancel_line' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · sourceview_wizard_cancel_statement_form— For a target of Odoo 17.0+: view 'view_wizard_cancel_statement_form' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve 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
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- 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 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…