Account voucher display writeoff
account_voucher_display_writeoff · OCA/account-payment
-
Security25/25No findings
-
Activity0/25Last human commit 102 months ago
-
Required by5/250 modules depend 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
account_voucher— Class 'account_voucher' still inherits from the old-style `osv.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_voucher— Class 'account_voucher' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceview_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. (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`) 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
Display writeoff options on sale or purchase vouchers. Without setting these options explicitely, if a payment difference is encountered on vouchers of these types, it is booked on the account payable or account receivable which can pose problems for automatic reconciliation.
This addon also enables setting the voucher type as a selection criterium for default values, so that you can set different default values for writeoff settings for different voucher types.
At Therp, we use this functionality to write off small rounding differences when applying an inclusive tax on purchase vouchers. This is currently depending on lp:827649 for which we are proposing a fix.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_purchase_receipt_form |
Voucher form: enable writeoff on purchase receipt vouchers | account.voucher | form | Inherits account_voucher.view_purchase_receipt_form |
view_sale_receipt_form |
Voucher form: enable writeoff on sale receipt vouchers | account.voucher | form | Inherits account_voucher.view_sale_receipt_form |
view_voucher_form |
Voucher form: enable writeoff on sale/purchase vouchers | account.voucher | form | Inherits account_voucher.view_voucher_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
No new fields.
Public methods (0)No public methods.
Loading…
Loading…