Cash basis extensions for vouchers
account_voucher_cash_basis · OCA/account-payment
Health
52/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 102 months ago
-
Required by15/251 module depends on it
-
Maturity12/25In 2 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.12 MB
Module directory on disk
Code analysis
8 migration notes
3 models
4 views
0 HTTP endpoints
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
AccountVoucher— Class 'AccountVoucher' 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 · sourceAccountVoucher— Class 'AccountVoucher' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceResCompany— Class 'ResCompany' 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. (2 occurrences in this file) migration-old-api-base · sourceResCompany— Class 'ResCompany' 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 · sourceview_vendor_payment_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 · 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.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
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_account_config_settings |
view_account_config_settings | account.config.settings | Inherits account.view_account_config_settings | |
view_vendor_payment_form |
view_vendor_payment_form | account.voucher | form | Inherits account_voucher.view_vendor_payment_form |
view_vendor_receipt_dialog_form |
view_vendor_receipt_dialog_form | account.voucher | form | Inherits account_voucher.view_vendor_receipt_dialog_form |
view_vendor_receipt_form |
view_vendor_receipt_form | account.voucher | form | Inherits account_voucher.view_vendor_receipt_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (0)
No new fields.
Public methods (1)-
onchange_company_id(self, cr, uid, ids, company_id, context=None)
New fields (0)
No new fields.
Public methods (5)-
allocated_amounts_grouped_by_invoice(self, cr, uid, voucher, context=None)this method builds a dictionary in the following form { first_invoice_id: { 'allocated': 120.0, 'total': 120.0, 'total_currency': 0.0, 'write-off': -20.0, 'allocated_currency': 0.0, 'foreign_currency_id': False, # int 'currency-write-off': 0.0, } second_invoice_id: { 'allocated': 50.0, 'total': 100.0, 'total_currency': 0.0, 'write-off': 0.0, 'allocated_currency': 0.0, 'foreign_currency_id': False, 'currency-write-off': 0.0, } } every amout is expressed in company currency. In order to compute cashed amount correctly, write-off will be subtract to reconciled amount. If more than one invoice is paid with this voucher, we distribute write-off equally (if allowed) -
balance_move(self, cr, uid, move_id, context=None) -
get_invoice_total(self, invoice) -
get_invoice_total_currency(self, invoice) -
voucher_move_line_create(self, cr, uid, voucher_id, line_total, move_id, company_currency, current_currency, context=None)
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…