Repository
OCA/l10n-portugal · module folder · Try on Runboat
Module version
1.0.0
Category
Accounting/Localizations
Folder size
0.14 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-portugal
Last tracking update
2026-08-07 09:06:36
Authors
Odoo Community Association (OCA), Sossia, Open Source Integrators
Maintainers
Odoo Community Association (OCA), Sossia, Open Source Integrators
Committers
Daniel Reis, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
l10n_pt_account_invoicexpress
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`.

Code Analysis

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…