Bank statement completion from transaction ID
account_statement_transactionid_completion · OCA/account-reconcile
-
Security25/25No findings
-
Activity0/25Last human commit 102 months ago
-
Required by15/251 module depends on it
-
Maturity18/25In 3 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
AccountStatementLine— Class 'AccountStatementLine' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.tools.translate`) (4 occurrences in this file) 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
Add a completion method based on transaction ID providen by the bank/office.
This transaction ID has been recorded on the SO (by a mapping through the e-commerce connector, or manually). Completion will look in the SO with that transaction ID to match the partner, then it will fill in the bank statement line with it, as well as the reference with the found SO name to ease the reconciliation.
This way, the reconciliation always happen on the SO name stored in ref.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
bank_statement_view_form |
account_bank_statement_import_base.bank_statement.view_form | account.bank.statement | form | Inherits account.view_bank_statement_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (2)-
get_from_transaction_id_and_invoice(self, cr, uid, st_line, context=None)Match the partner based on the transaction ID field of the invoice. Then, call the generic st_line method to complete other values. In that case, we always fullfill the reference of the line with the invoice name. :param dict st_line: read 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, ...} -
get_from_transaction_id_and_so(self, cr, uid, st_line, context=None)Match the partner based on the transaction ID field of the SO. Then, call the generic st_line method to complete other values. In that case, we always fullfill the reference of the line with the SO name. :param dict st_line: read 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, ...}
Loading…
Loading…