Skip to content

Commit

Permalink
Merge PR #115 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by dreispt
  • Loading branch information
OCA-git-bot committed Sep 23, 2024
2 parents 85c7efb + 5b1dccb commit 5df7a16
Show file tree
Hide file tree
Showing 26 changed files with 1,939 additions and 0 deletions.
100 changes: 100 additions & 0 deletions l10n_pt_vat/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
==============
Portugal - IVA
==============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:81e5b6f28b942cb6ca6117b5a4ad766962d1f379856e8ca7eee7dd64ca305c0e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--portugal-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-portugal/tree/17.0/l10n_pt_vat
:alt: OCA/l10n-portugal
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-portugal-17-0/l10n-portugal-17-0-l10n_pt_vat
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-portugal&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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).

**Table of contents**

.. contents::
:local:

Usage
=====

On an Invoice, the VAT adjustment reason is available for selection.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-portugal/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-portugal/issues/new?body=module:%20l10n_pt_vat%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Open Source Integrators
* Sossia

Contributors
------------

- Pedro Castro Silva (`Sossia <http://www.sossia.pt>`__)

- `Open Source Integrators <https://www.opensourceintegrators.com>`__

- Daniel Reis ([email protected])

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-dreispt| image:: https://github.com/dreispt.png?size=40px
:target: https://github.com/dreispt
:alt: dreispt

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-dreispt|

This module is part of the `OCA/l10n-portugal <https://github.com/OCA/l10n-portugal/tree/17.0/l10n_pt_vat>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions l10n_pt_vat/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
27 changes: 27 additions & 0 deletions l10n_pt_vat/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright (C) 2021 Open Source Integrators (<http://www.opensourceintegrators.com>)
# Copyright (C) 2014 Sossia, Lda. (<http://www.sossia.pt>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Portugal - IVA",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "Open Source Integrators, Sossia, Odoo Community Association (OCA)",
"summary": "Portuguese VAT requirements extensions",
"website": "https://github.com/OCA/l10n-portugal",
"category": "Accounting/Localizations",
"maintainers": ["dreispt"],
"development_status": "Production/Stable",
"depends": ["account", "l10n_pt"],
"data": [
"security/ir.model.access.csv",
"data/vat_exempt_reason.xml",
"data/vat_adjustment_norm.xml",
"views/account_journal_view.xml",
"views/account_move_view.xml",
"views/account_tax_view.xml",
"views/l10n_pt_vat_exempt_reason_view.xml",
"views/vat_adjustment_norm_view.xml",
],
"installable": True,
"auto_install": True,
}
96 changes: 96 additions & 0 deletions l10n_pt_vat/data/vat_adjustment_norm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<odoo noupdate="1">
<!--
VAT Adjustment Norm (Fields 40/41 of the VAT Statement)
-->
<record id="vat_adjustment_norm_a78n2" model="account.vat.adjustment_norm">
<field name="name">Art. 78º, nº 2</field>
<field name="out_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78n3" model="account.vat.adjustment_norm">
<field name="name">Art. 78º, nº 3</field>
<field name="out_refunds" eval="True" />
<field name="in_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78n4" model="account.vat.adjustment_norm">
<field name="name">Art. 78º, nº 4</field>
<field name="in_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78n6" model="account.vat.adjustment_norm">
<field name="name">Art. 78º, nº 6</field>
<field name="out_refunds" eval="True" />
<field name="in_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78n7a" model="account.vat.adjustment_norm">
<field name="name">Art. 78º, nº 7, alínea a)</field>
<field name="out_refunds" eval="True" />
<field name="in_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78n7b" model="account.vat.adjustment_norm">
<field name="name">Art. 78º, nº 7, alínea b)</field>
<field name="out_refunds" eval="True" />
<field name="in_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78n7c" model="account.vat.adjustment_norm">
<field name="name">Art. 78º, nº 7, alínea c)</field>
<field name="out_refunds" eval="True" />
<field name="in_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78n7d" model="account.vat.adjustment_norm">
<field name="name">Art. 78º, nº 7, alínea d)</field>
<field name="out_refunds" eval="True" />
<field name="in_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78n8b" model="account.vat.adjustment_norm">
<field name="name">Art. 78º, nº 8, alínea b)</field>
<field name="out_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78n8c" model="account.vat.adjustment_norm">
<field name="name">Art. 78º, nº 8, alínea c)</field>
<field name="out_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78n8d" model="account.vat.adjustment_norm">
<field name="name">Art. 78º, nº 8, alínea d)</field>
<field name="out_refunds" eval="True" />
<field name="in_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78n8e" model="account.vat.adjustment_norm">
<field name="name">Art. 78º, nº 8, alínea e)</field>
<field name="out_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78n12" model="account.vat.adjustment_norm">
<field name="name">Art. 78º, nº 12</field>
<field name="in_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78An2a" model="account.vat.adjustment_norm">
<field name="name">Art. 78º-A, nº 2, alínea a)</field>
<field name="out_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78An4a" model="account.vat.adjustment_norm">
<field name="name">Art. 78º-A, nº 4, alínea a)</field>
<field name="out_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78An4b" model="account.vat.adjustment_norm">
<field name="name">Art. 78º-A, nº 4, alínea b)</field>
<field name="out_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78An4c" model="account.vat.adjustment_norm">
<field name="name">Art. 78º-A, nº 4, alínea c)</field>
<field name="out_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78An4d" model="account.vat.adjustment_norm">
<field name="name">Art. 78º-A, nº 4, alínea d)</field>
<field name="out_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78Bn4" model="account.vat.adjustment_norm">
<field name="name">Art. 78º-B, nº 4</field>
<field name="out_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78Cn1" model="account.vat.adjustment_norm">
<field name="name">Art. 78º-C, nº 1</field>
<field name="in_refunds" eval="True" />
</record>
<record id="vat_adjustment_norm_a78Cn3" model="account.vat.adjustment_norm">
<field name="name">Art. 78º-C, nº 3</field>
<field name="in_refunds" eval="True" />
</record>
</odoo>
Loading

0 comments on commit 5df7a16

Please sign in to comment.