Account Invoice Tax - Computation By Column
account_invoice_tax_by_column · OCA/l10n-italy
-
Security25/25No findings
-
Activity0/25Last human commit 141 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 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_invoice— Class 'account_invoice' still inherits from the old-style `osv.osv` 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 · sourceaccount_invoice— Class 'account_invoice' 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 · sourceaccount_tax— Class 'account_tax' still inherits from the old-style `osv.osv` 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 · sourceaccount_tax_code— Class 'account_tax_code' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · 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
-Invoice taxes:
legend:
TA(l) TaxAmount for line l
TBA(l) TaxBaseAmount for line l
TA(t) TaxAmount for tax t
TBA(t) TaxBaseAmount for tax t
default behaviour:
openerp by default calculates taxes line by line as a function of line tax base amount
and then groups these amounts by tax.
TA(l) = f(TBA(l)
TA(t) = sum( round( TA(l) ) ) /sum on lines l to which tax t is applied
this module behaviour:
In Italy the correct way to compute taxes is to first compute the tax base amount TBA(t)
and the compute TA as a function of TBA(t)
TBA(t) = sum( TBA(t) ) /sum on lines l to which tax t is applied
TA(t) = f( TBA(t) )
the result difference is small but important
NOTE
====
For OpenERP 6.1, please use the patch contained in the following branch:
https://code.launchpad.net/~openerp-community/openobject-addons/fix-account-6-1-tax-computation-method instead of this module
For OpenERP > 6.1, the fix has been merged yet:
https://code.launchpad.net/~akretion-team/openobject-addons/trunk-add-tax-rounding-option/+merge/113833 so this module is not needed anymore
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 |
|---|---|---|---|---|
view_invoice_form |
account.invoice.form | account.invoice | form | Inherits account.invoice_form |
view_invoice_supplier_form |
account.invoice.supplier.form | account.invoice | form | Inherits account.invoice_supplier_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 0
No models found for this module.