Repository
OCA/account-invoicing · module folder · Try on Runboat
Module version
1.0.2
Category
Accounting
Folder size
0.17 MB
License
AGPL-3
Application
Yes
Auto-installable
No
Website
http://www.camptocamp.com/
Last tracking update
2026-08-07 07:17:41
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp
Committers
eLBati, Lorenzo Battistini, Pedro M. Baeza, GitHub, Akim Juillerat, Stéphane Bidoul (ACSONE), tafaRU, Weblate, OCA Transbot, OCA-git-bot, oca-travis
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
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_rounding Float
    default=0.05 related='company_id.tax_calculation_rounding' string='Tax Rounding unit'
  • tax_calculation_rounding_account_id Many2one
    comodel='account.account' domain=[('internal_type', '<>', 'view')] related='company_id.tax_calculation_rounding_account_id' string='Tax Rounding account'
  • tax_calculation_rounding_method Selection
    help="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'
Public methods (1)
  • onchange_company_id(self)
    @api.onchange('company_id')

New fields (4)
  • amount_tax Float
    compute=_compute_amount digits=dp.get_precision('Account') store=True string='Tax'
  • amount_total Float
    compute=_compute_amount digits=dp.get_precision('Account') store=True string='Total'
  • amount_untaxed Float
    compute=_compute_amount digits=dp.get_precision('Account') store=True string='Subtotal' track_visibility='always'
  • global_round_line_id Many2one → account.invoice.line
    compute=_get_rounding_invoice_line_id readonly=True string='Invoice Line for total rounding' args: 'account.invoice.line'
Public methods (0)

No public methods.

New fields (1)
  • is_rounding Boolean
    args: 'Rounding Line'
Public methods (0)

No public methods.

New fields (3)
  • tax_calculation_rounding Float
    args: 'Tax Rounding unit'
  • tax_calculation_rounding_account_id Many2one → account.account
    domain=[('internal_type', '<>', 'view')] args: 'account.account', 'Tax Rounding Account'
  • tax_calculation_rounding_method Selection
    help="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')]
Public methods (0)

No public methods.

Loading…

Loading…

Loading…