Unit rounded invoice
account_invoice_rounding · OCA/account-invoicing
Health
55/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 89 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
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.17 MB
Module directory on disk
Code analysis
3 migration notes
4 models
1 view
0 HTTP endpoints
Migration considerations
AccountInvoice— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceaccount.invoice— Migrating to 13.0: `track_visibility` was replaced by `tracking`; the old kwarg is ignored. Fields: amount_untaxed. migration-track-visibilityview_account_config_settings— 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
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 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_account_config_settings |
account settings.add.rounding | account.config.settings | Inherits account.view_account_config_settings |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (3)
-
tax_calculation_roundingFloatdefault=0.05related='company_id.tax_calculation_rounding'string='Tax Rounding unit' -
tax_calculation_rounding_account_idMany2onecomodel='account.account'domain=[('internal_type', '<>', 'view')]related='company_id.tax_calculation_rounding_account_id'string='Tax Rounding account' -
tax_calculation_rounding_methodSelectionhelp="If you select 'Round per line' : for each tax, the tax amount will first be computed and rounded for each PO/SO/invoice line and then these rounded amounts will be summed, leading to the total amount for that tax. If you select 'Round globally': for each tax, the tax amount will be computed for each PO/SO/invoice line, then these amounts will be summed and eventually this total tax amount will be rounded. If you sell with tax included, you should choose 'Round per line' because you certainly want the sum of your tax-included line subtotals to be equal to the total amount with taxes."related='company_id.tax_calculation_rounding_method'selection=[('round_per_line', 'Round per line'), ('round_globally', 'Round globally'), ('swedish_round_globally', 'Swedish Round globally'), ('swedish_add_invoice_line', 'Swedish Round by adding an invoice line')]string='Tax calculation rounding method'
-
onchange_company_id(self)@api.onchange('company_id')
New fields (4)
-
amount_taxFloatcompute=_compute_amountdigits=dp.get_precision('Account')store=Truestring='Tax' -
amount_totalFloatcompute=_compute_amountdigits=dp.get_precision('Account')store=Truestring='Total' -
amount_untaxedFloatcompute=_compute_amountdigits=dp.get_precision('Account')store=Truestring='Subtotal'track_visibility='always' -
global_round_line_idMany2one → account.invoice.linecompute=_get_rounding_invoice_line_idreadonly=Truestring='Invoice Line for total rounding' args: 'account.invoice.line'
No public methods.
New fields (1)
-
is_roundingBooleanargs: 'Rounding Line'
No public methods.
New fields (3)
-
tax_calculation_roundingFloatargs: 'Tax Rounding unit' -
tax_calculation_rounding_account_idMany2one → account.accountdomain=[('internal_type', '<>', 'view')] args: 'account.account', 'Tax Rounding Account' -
tax_calculation_rounding_methodSelectionhelp="If you select 'Round per line' : for each tax, the tax amount will first be computed and rounded for each PO/SO/invoice line and then these rounded amounts will be summed, leading to the total amount for that tax. If you select 'Round globally': for each tax, the tax amount will be computed for each PO/SO/invoice line, then these amounts will be summed and eventually this total tax amount will be rounded. If you sell with tax included, you should choose 'Round per line' because you certainly want the sum of your tax-included line subtotals to be equal to the total amount with taxes."string='Tax Calculation Rounding Method' args: [('round_per_line', 'Round per Line'), ('round_globally', 'Round Globally'), ('swedish_round_globally', 'Swedish Round globally'), ('swedish_add_invoice_line', 'Swedish Round by adding a line')]
No public methods.
Loading…
Loading…
Loading…