Account Banking
account_banking · OCA/bank-payment
Renamed to account_bank_statement_import in 8.0, then renamed to account_statement_import in 14.0, then renamed to account_statement_import_file in 16.0
-
Security25/25No findings
-
Activity0/25Last human commit 116 months ago
-
Required by25/2511 modules depend on it
-
Maturity12/25In 2 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 11.0: the workflow engine (`trg_validate`) was removed: rewrite as state-field transitions. migration-workflow-call · source
- Migrating to 11.0: the workflow engine (`trg_validate`) was removed: rewrite as state-field transitions. (3 occurrences in this file) migration-workflow-call · source
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
BankStatementMonkeypatch— Class 'BankStatementMonkeypatch' still inherits from the old-style `orm.AbstractModel` 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 · sourceResBank— Class 'ResBank' 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 · sourceResPartner— Class 'ResPartner' 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 · sourceResPartnerBank— Class 'ResPartnerBank' 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 · sourceaccount_banking_account_settings— Class 'account_banking_account_settings' 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. (7 occurrences in this file) migration-old-api-base · sourceaccount_banking_account_settings— Class 'account_banking_account_settings' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (9 occurrences in this file) migration-old-style-fields · sourcebanking_import_line— Class 'banking_import_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. (2 occurrences in this file) migration-old-api-base · sourcebanking_import_line— Class 'banking_import_line' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (3 occurrences in this file) migration-old-style-fields · sourcebanking_import_transaction— Class 'banking_import_transaction' 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. (3 occurrences in this file) migration-old-api-base · sourcebanking_import_transaction— Class 'banking_import_transaction' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (5 occurrences in this file) migration-old-style-fields · sourcebanking_transaction_wizard— Class 'banking_transaction_wizard' 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 · sourcebanking_transaction_wizard— Class 'banking_transaction_wizard' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcelink_partner— Class 'link_partner' 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 · sourcelink_partner— Class 'link_partner' 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 · sourcelink_partner_view— 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 · sourcetransaction_wizard_first— 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_banking_account_settings_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. (3 occurrences in this file) migration-view-attrs-states · sourceview_banking_account_settings_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (3 occurrences in this file) migration-view-tree-tag · sourceview_banking_import— 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 · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (3 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (4 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (4 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.tools.translate`) migration-openerp-import · source
- Migrating to 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
- Migrating to 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
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (3 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.tools.translate`) 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
Module to do banking.
This modules tries to combine all current banking import and export
schemes. Rationale for this is that it is quite common to have foreign
bank account numbers next to national bank account numbers. The current
approach, which hides the national banking interface schemes in the
l10n_xxx modules, makes it very difficult to use these simultanious.
A more banking oriented approach seems more logical and cleaner.
Changes to default OpenERP:
* Puts focus on the real life messaging with banks:
+ Bank statement lines upgraded to independent bank transactions.
+ Banking statements have no special accountancy meaning, they're just
message envelopes for a number of bank transactions.
+ Bank statements can be either encoded by hand to reflect the document
version of Bank Statements, or created as an optional side effect of
importing Bank Transactions.
* Preparations for SEPA:
+ IBAN accounts are the standard in the SEPA countries
+ local accounts are derived from SEPA (excluding Turkey) but are
considered to be identical to the corresponding SEPA account.
+ Banks are identified with either Country + Bank code + Branch code or
BIC
+ Each bank can have its own pace in introducing SEPA into their
communication with their customers.
+ National online databases can be used to convert BBAN's to IBAN's.
+ The SWIFT database is consulted for bank information.
* Adds dropin extensible import facility for bank communication in:
- Drop-in input parser development.
- MultiBank (NL) format transaction files available as
account_banking_nl_multibank,
* Extends payments for digital banking:
+ Adapted workflow in payments to reflect banking operations
+ Relies on account_payment mechanics to extend with export generators.
- ClieOp3 (NL) payment and direct debit orders files available as
account_banking_nl_clieop
* Additional features for the import/export mechanism:
+ Automatic matching and creation of bank accounts, banks and partners,
during import of statements.
+ Automatic matching with invoices and payments.
+ Sound import mechanism, allowing multiple imports of the same
transactions repeated over multiple files.
+ Journal configuration per bank account.
+ Business logic and format parsing strictly separated to ease the
development of new parsers.
+ No special configuration needed for the parsers, new parsers are
recognized and made available at server (re)start.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- account_banking_camt, account_banking_fi_patu, account_banking_iban_lookup, account_banking_mt940, account_banking_nl_abnamro, account_banking_nl_girotel, account_banking_nl_ing, account_banking_nl_multibank, account_banking_nl_triodos, account_banking_partner_journal_account, account_banking_payment
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 11
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
link_partner_view |
Link partner wizard view | banking.link_partner | form | New |
transaction_wizard_first |
transaction.wizard.first | banking.transaction.wizard | form | New |
view_account_bank_statement_line_search |
account.bank.statement.line.search | account.bank.statement.line | search | New |
view_account_banking_imported_file_form |
account.banking.imported.file.form | account.banking.imported.file | form | New |
view_account_banking_imported_file_tree |
account.banking.imported.file.tree | account.banking.imported.file | tree | New |
view_bank_statement_line_tree |
Bank statement line tree view | account.bank.statement.line | tree | New |
view_banking_account_settings_form |
account.banking.account.settings.form | account.banking.account.settings | form | New |
view_banking_account_settings_tree |
account.banking.account.settings.tree | account.banking.account.settings | tree | New |
view_banking_bank_statement_form_1 |
account.bank.statement.form.banking-1 | account.bank.statement | form | Inherits account.view_bank_statement_form |
view_banking_bank_statement_tree_1 |
account.bank.statement.tree.banking | account.bank.statement | tree | Inherits account.view_bank_statement_tree |
view_banking_import |
account.banking.bank.import | account.banking.bank.import | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 18
No new fields.
Public methods (3)-
button_cancel(self, cr, uid, ids, context=None)Do nothing but write the state. Delegate all actions to the statement line workflow instead. -
button_confirm_bank(self, cr, uid, ids, context=None)Inject the statement line workflow here -
unlink(self, cr, uid, ids, context=None)Don't allow deletion of statement with confirmed bank statement lines.
No new fields.
Public methods (2)-
button_confirm_bank(self, cr, uid, ids, context=None)Assign journal sequence to statements without a name -
create_move_from_st_line(self, cr, uid, st_line_id, company_currency_id, st_line_number, context=None)
No new fields.
Public methods (7)-
cancel(self, cr, uid, ids, context=None) -
confirm(self, cr, uid, ids, context=None)Create (or update) a voucher for each statement line, and then generate the moves by posting the voucher. If a line does not have a move line against it, but has an account, then generate a journal entry that moves the line amount to the specified account. -
create_instant_transaction(self, cr, uid, ids, context=None)Check for existance of import transaction on the bank statement lines. Create instant items if appropriate. This way, the matching wizard works on manually encoded statements. The transaction is only filled with the most basic information. The use of the transaction at this point is rather to store matching data rather than to provide data about the transaction which have all been transferred to the bank statement line. -
link_partner(self, cr, uid, ids, context=None)Get the appropriate partner or fire a wizard to create or link one -
match_wizard(self, cr, uid, ids, context=None) -
split_off(self, cr, uid, ids, amount, context=None)Create a child statement line with amount, deduce that from this line, change transactions accordingly -
unlink(self, cr, uid, ids, context=None)Don't allow deletion of a confirmed statement line If this statement line comes from a split transaction, give the amount back
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (3)-
find(self, cr, uid, journal_id, partner_bank_id=False, context=None) -
onchange_company_id(self, cr, uid, ids, company_id=False, context=None) -
onchange_partner_bank_id(self, cr, uid, ids, partner_bank_id, context=None)
No new fields.
Public methods (1)-
import_statements_file(self, cr, uid, ids, context)Import bank statements / bank transactions file. This method is a wrapper for the business logic on the transaction. The parser modules represent the decoding logic.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
test_undo_paid(self, cr, uid, ids, context=None)Called from the workflow. Used to unset paid state on invoices that were paid with bank transfers which are being cancelled
No new fields.
Public methods (1)-
get_balance(self, cr, uid, ids, context=None)Return the balance of any set of move lines. Not to be confused with the 'balance' field on this model, which returns the account balance that the move line applies to.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (10)-
cancel(self, cr, uid, ids, context=None) -
clear_and_write(self, cr, uid, ids, vals=None, context=None)Write values in argument 'vals', but clear all match related values first -
combine(self, cr, uid, ids, context=None) -
confirm(self, cr, uid, ids, context=None) -
create(self, cr, uid, vals, context=None)Search for duplicates of the newly created transaction and mark them as such unless a context key 'transaction_no_duplicate_search' is defined and true. -
hook_match_payment(self, cr, uid, transaction, log, context=None)To override in module 'account_banking_payment' -
match(self, cr, uid, ids, results=None, context=None) -
move_info2values(self, move_info) -
split_off(self, cr, uid, res_id, amount, context=None) -
unlink(self, cr, uid, ids, context=None)Unsplit if this if a split transaction
No new fields.
Public methods (4)-
create(self, cr, uid, vals, context=None)Get default values from the transaction data on the statement line -
create_act_window(self, cr, uid, ids, nodestroy=True, context=None)Return a popup window for this model -
link_partner(self, cr, uid, ids, context=None) -
update_partner_values(self, cr, uid, wizard, values, context=None)Updates the new partner values with the values from the wizard :param wizard: read record of wizard (with load='_classic_write') :param values: the dictionary of partner values that will be updated
No new fields.
Public methods (8)-
button_done(self, cr, uid, ids, context=None) -
create(self, cr, uid, vals, context=None)Make sure that the statement line has an import transaction -
create_act_window(self, cr, uid, ids, nodestroy=True, context=None)Return a popup window for this model -
disable_match(self, cr, uid, ids, context=None)Clear manual and automatic match information -
reverse_duplicate(self, cr, uid, ids, context=None) -
trigger_match(self, cr, uid, ids, context=None)Call the automatic matching routine for one or more bank transactions -
trigger_write(self, cr, uid, ids, context=None)Just a button that triggers a write. -
write(self, cr, uid, ids, vals, context=None)Implement a trigger to retrieve the corresponding move line when the invoice_id changes
No new fields.
Public methods (1)-
online_bank_info(self, cr, uid, bic, context=None)API hook for legacy online lookup of BICs, to be removed in OpenERP 8.0.
No new fields.
Public methods (5)-
def_journal_account_bank(self, cr, uid, ids, get_property_account, context=None)Returns the property journal account for the given partners ids. :param get_property_account: method of this object that takes a partner browse record and returns a field name of type many2one. -
def_journal_account_bank_decr(self, cr, uid, ids, context=None)Return the default journal account to be used for this partner in the case of bank transactions that decrease the balance. -
def_journal_account_bank_incr(self, cr, uid, ids, context=None)Return the default journal account to be used for this partner in the case of bank transactions that increase the balance. -
get_property_account_decrease(self, partner) -
get_property_account_increase(self, partner)
No new fields.
Public methods (2)-
online_account_info(self, cr, uid, country_code, acc_number, context=None)API hook for legacy online lookup of account info, to be removed in OpenERP 8.0. -
search(self, cr, uid, args, *rest, **kwargs)When a complete IBAN is searched, also search for its BBAN if we have the domestic column. Disregard spaces when comparing IBANs.
Loading…