Skip to content
Health
85/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 11 months ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 8 Odoo series since 8.0

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

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

Description

This modules extends the base localization modules with a few VAT specific functions that are required by the Portuguese Tax Authorities, including:

  • The use of pre-defined legally accepted reasons for issuing credit notes, as required for fields 40/41 of the VAT statement (Portaria nº 255/2013).

NOTE: scheduled to replaced by the future core module l10n_pt_certification.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
l10n_pt_account_invoicexpress

Code analysis

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

Views touched 8

XML IDNameModelTypeStatus
account_invoice_form Invoice: add l10_pt account.move form Inherits account.view_move_form
account_journal_form Account Journal: add l10_pt_vat account.journal form Inherits account.view_account_journal_form
vat_adjustment_norm_view_form account.vat.adjustment_norm.form account.vat.adjustment_norm form New
vat_adjustment_norm_view_search account.vat.adjustment_norm.search account.vat.adjustment_norm search New
vat_adjustment_norm_view_tree account.vat.adjustment_norm.list account.vat.adjustment_norm list New
vat_exempt_reason_form VAT Exempt Reason Form account.l10n_pt.vat.exempt.reason form New
vat_exempt_reason_tree VAT Exempt Reason List account.l10n_pt.vat.exempt.reason list New
view_account_tax_form Account Tax: add Fiscal Zone account.tax form Inherits account.view_tax_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 5

New fields (1)
  • l10npt_vat_exempt_reason Many2one → account.l10n_pt.vat.exempt.reason
    string='VAT Exempt Reason' args: 'account.l10n_pt.vat.exempt.reason'
Public methods (0)

No public methods.

New fields (4)
  • active Boolean
    default=True
  • code Char
    required=True
  • name Char
    required=True translate=True
  • note Text
    string='Description'
Public methods (0)

No public methods.

New fields (4)
  • is_l10npt_vat_enabled Boolean
    compute='_compute_is_l10npt_vat_enabled'
  • l10npt_has_tax_exempt_lines Boolean
    compute='_compute_l10npt_has_tax_exempt_lines'
  • l10npt_vat_exempt_reason Many2one → account.l10n_pt.vat.exempt.reason
    compute='_compute_l10npt_vat_exempt_reason' readonly=False store=True string='VAT Exempt Reason' args: 'account.l10n_pt.vat.exempt.reason'
  • vat_adjustment_norm_id Many2one → account.vat.adjustment_norm
    help='Fields 40/41 of the VAT Statement' ondelete='restrict' string='VAT Adjustment Norm' args: 'account.vat.adjustment_norm'
Public methods (1)
  • action_post(self)
    VAT Exemption reason is required if there are lines without tax

New fields (1)
  • l10n_pt_fiscal_zone Selection
    default='PT' string='Fiscal Zone' args: [('PT', 'Portugal Continental'), ('PT-AC', 'Açores'), ('PT-MA', 'Madeira')]
Public methods (0)

No public methods.

New fields (6)
  • active Boolean
    default=True help='If the active field is set to False, it will allow you to hide the adjustment norm without removing it.'
  • in_refunds Boolean
    help='If True, it will allow you to apply the adjustment norm to third party companies refunds.' string='Use on third party refunds'
  • move_type Selection
    compute='_compute_move_type' selection=[('out_refund', 'Customer Credit Note'), ('in_refund', 'Vendor Credit Note')] store=True
  • name Char
    required=True
  • note Text
    string='Description' translate=True
  • out_refunds Boolean
    help='If True, it will allow you to apply the adjustment norm to your company refunds.' string='Use on company refunds'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…