TIP: You can type at any time to perform a new search.
Cash basis extensions for vouchers
account_voucher_cash_basis · OCA/account-payment
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.decimal_precision` 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
- For a target of Odoo 10.0+: use the `__manifest__.py` manifest name instead of `__openerp__.py`. The filename alone does not establish module age or compatibility. migration-openerp-manifest · source
AccountConfigSettings— Class 'AccountConfigSettings' 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 · sourceAccountConfigSettings— Class 'AccountConfigSettings' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceAccountVoucher— 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. 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=`. migration-old-style-fields · sourceResCompany— Class 'ResCompany' declares `_defaults` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceview_vendor_payment_form— For a target of Odoo 17.0+: view 'view_vendor_payment_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 · sourceview_vendor_receipt_dialog_form— For a target of Odoo 17.0+: view 'view_vendor_receipt_dialog_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 · sourceview_vendor_receipt_form— For a target of Odoo 17.0+: view 'view_vendor_receipt_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 · 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-payment · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Hidden/Dependency
- Folder size
- 0.12 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://www.agilebg.com
- Last tracking update
- 2026-08-07 07:03:08
- Authors
- Odoo Community Association (OCA), Agile Business Group
- Maintainers
- Odoo Community Association (OCA), Agile Business Group
- Committers
- eLBati, Stéphane Bidoul, Lorenzo Battistini, Pedro M. Baeza, Fekete Mihai, Stéphane Bidoul (ACSONE), Alex Comba, OCA Transbot, archetipo, OCA-git-bot, oca-travis
Code Analysis
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…