TIP: You can type at any time to perform a new search.
Bank statement completion from label
account_statement_completion_label · 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.tools.translate` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.addons.account_statement_base_completion.statement` 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
AccountBankSatement— Class 'AccountBankSatement' 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 · sourceAccountStatementCompletionRule— Class 'AccountStatementCompletionRule' 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 · sourceAccountStatementLabel— Class 'AccountStatementLabel' 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 · sourceAccountStatementLabel— Class 'AccountStatementLabel' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceAccountStatementLabel— Class 'AccountStatementLabel' declares `_defaults` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcebank_statement_view_form— For a target of Odoo 17.0+: view 'bank_statement_view_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 · sourceres_partner— Class 'res_partner' 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 · sourceres_partner— Class 'res_partner' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcestatement_label_view_tree— View 'statement_label_view_tree' is defined with a `<tree>` root tag: renamed to `<list>` in Odoo 18.0. migration-view-tree-tag · 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.1
- Category
- Generic Modules/Others
- Folder size
- 0.02 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://www.akretion.com/
- Last tracking update
- 2026-08-07 07:17:51
- Authors
- Akretion, Odoo Community Association (OCA)
- Maintainers
- Akretion, Odoo Community Association (OCA)
- Committers
- Pedro M. Baeza
- Odoo dependencies
- None
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
Improve the basic rule "Match from statement line label (based on partner field 'Bank Statement Label')" provided by the Bank statement base completion module. The goal is to match the label field from the bank statement line with a partner and an account. For this, you have to create your record in the new class account.statement.label where you can link the label you want with a partner and an account.
Code Analysis
Views touched (5)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
bank_statement_view_form |
account_statement_completion_label.bank_statement.view_form | account.bank.statement | form | Inherits account.view_bank_statement_form |
bk_view_partner_form |
account_bank_statement_import.view.partner.form | res.partner | form | Inherits account_statement_base_completion.bk_view_partner_form |
statement_label_view_form |
account.statement.label.view | account.statement.label | form | New |
statement_label_view_search |
account.statement.label.search | account.statement.label | search | New |
statement_label_view_tree |
account.statement.label.view | account.statement.label | tree | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (4)
New fields (0)
No new fields.
Public methods (1)-
open_completion_label(self, cr, uid, ids, context=None)
New fields (0)
No new fields.
Public methods (1)-
get_from_label_and_partner_field(self, cr, uid, st_line, context=None)Match the partner and the account based on the name field of the statement line and the table account.statement.label. If more than one statement label matched, raise the ErrorTooManylabel error. :param int line_id: id of the concerned account.bank.statement.line :return: A dict of value that can be passed directly to the write method of the statement line or {} {'partner_id': value, 'account_id': value, ...}
New fields (0)
No new fields.
Public methods (1)-
save_and_close_label(self, cr, uid, ids, context=None)
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…