Skip to content
Health
77/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 9 months ago
  • Required by20/25
    2 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 16.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
2
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.06 MB
Module directory on disk
Code analysis 0 migration notes 7 models 4 views 0 HTTP endpoints

Description

This module ensures that only one VAT tax can be selected because the invoices (at least in Belgium) must have one and only one VAT tax per line. So this module comes to complete the OCA module account_invoice_tax_required which ensures a line has a tax. It deals with taxes on these objects: * account move line (onchange warning only) * product template for both customer and supplier (constraint only)

The module adds two computed fields on product - vat_id and vat (vat_id.name) - which might be set if the restriction is on.

It also adds a boolean field in the account.tax model to indicates the tax is a VAT.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
account_tax_one_vat_purchase, account_tax_one_vat_sale

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 4

XML IDNameModelTypeStatus
res_config_settings_view_form res.config.settings.view.form in (account_tax_one_vat) res.config.settings form Inherits account.res_config_settings_view_form
view_account_tax_search account.tax.search in (account_tax_one_vat) account.tax search Inherits account.view_account_tax_search
view_tax_form account.tax.form in (account_tax_one_vat) account.tax form Inherits account.view_tax_form
view_tax_tree account.tax.tree in (account_tax_one_vat) account.tax tree Inherits account.view_tax_tree

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 7

New fields (0)

No new fields.

Public methods (1)
  • action_post(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • is_vat Boolean
    args: 'VAT tax'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • vat Char
    compute='_compute_product_vat' string='VAT name'
  • vat_id Many2one → account.tax
    compute='_compute_product_vat' string='VAT' args: 'account.tax'
Public methods (0)

No public methods.

New fields (1)
  • account_tax_one_vat Boolean
    help='Avoid the selection of multiple VAT taxes.' string='One VAT tax only'
Public methods (0)

No public methods.

New fields (1)
  • account_tax_one_vat Boolean
    readonly=False related='company_id.account_tax_one_vat'
Public methods (0)

No public methods.

Loading…

Loading…