Bank statement instant voucher
bank_statement_instant_voucher · OCA/bank-payment
-
Security25/25No findings
-
Activity0/25Last human commit 122 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 5 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
account_bank_statement_line— Class 'account_bank_statement_line' 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 · sourceinstant_voucher— Class 'instant_voucher' 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 · sourceinstant_voucher— Class 'instant_voucher' 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 · sourceinstant_voucher_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 · sourceview_banking_bank_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 · source- Since 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
- 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
This module adds a new button on the bank statement line that allows the accountant to instantly create a sales or purchase voucher based on the values of the bank statement line.
This module does not depend on account_banking, but if this module is installed, the bank statement line will be reconciled automatically in the confirmation step of the wizard.
If account_banking is not installed, the accountant will still have to reconcile the associated move line with the move line from the bank statement line manually.
If the wizard is cancelled,the created voucher will be deleted again.
Known limitations:
Currency conversion and payment difference writeoff are not yet supported.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
instant_voucher_form |
Instant voucher form view | account.voucher.instant | form | New |
view_banking_bank_statement_form |
Add instant voucher button to bank statement line on statement form | account.bank.statement | form | Inherits account_voucher.view_bank_statement_form_voucher |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (1)-
create_instant_voucher(self, cr, uid, ids, context=None)
No new fields.
Public methods (6)-
cancel(self, cr, uid, ids, context=None)Delete the voucher and close window -
confirm(self, cr, uid, ids, context=None)Post the voucher if necessary Post the voucher's move lines if necessary Sanity checks on currency and residual = 0.0 If the account_banking module is installed, perform matching and reconciliation. If not, the user is left to manual reconciliation of OpenERP. -
create_voucher(self, cr, uid, ids, context=None)Create a fully fledged voucher counterpart for the statement line. User only needs to process taxes and may adapt cost/income account. -
default_get(self, cr, uid, fields_list, context=None)Gather sane default values from the originating statement line -
dummy(self, cr, uid, ids, context=None) -
get_voucher_defaults(self, cr, uid, vals, context=None)Gather conditional defaults based on given key, value pairs :param vals: dictionary of key, value pairs :returns: dictionary of default values for fields not in vals
Loading…
Loading…
Loading…
Loading…