Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Commit

Permalink
Merge PR #2248 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by eLBati
  • Loading branch information
OCA-git-bot committed Jun 22, 2021
2 parents 8ceffd0 + 39c318a commit 6b035a9
Show file tree
Hide file tree
Showing 33 changed files with 4,105 additions and 0 deletions.
92 changes: 92 additions & 0 deletions l10n_it_vat_statement_communication/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
====================================
ITA - Comunicazione liquidazione IVA
====================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |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--italy-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_vat_statement_communication
:alt: OCA/l10n-italy
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_vat_statement_communication
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/122/12.0
:alt: Try me on Runbot

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

Comunicazione liquidazione IVA ed export file XML, conforme alle specifiche dell''Agenzia delle Entrate.

I dati possono essere caricati da liquidazioni IVA effettuate in odoo tramite `account_vat_period_end_statement`

**Table of contents**

.. contents::
:local:

Configuration
=============

Nella scheda dell'imposta è possibile configurare "Escludere dalle operazioni attive / passive" e/o "Escludere dall'IVA esigibile / detratta".

La prima opzione va utilizzata ad esempio nel caso di operazioni in inversione contabile (reverse charge), per escludere l'imponibile di `22% intra UE (debito)` (usata nelle autofatture attive) dal calcolo di `VP2 Totale operazioni attive`

Tramite la seconda opzione è invece possibile, in casi particolari, escludere il valore dell'imposta.

Usage
=====

- Creare una nuova comunicazione.
- Nel "Quadro VP" aggiungere una voce selezionando in alto la liquidazione, precedentemente creata, da inserire.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_vat_statement_communication%0Aversion:%2012.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
~~~~~~~

* Openforce di Camilli Alessandro

Contributors
~~~~~~~~~~~~

* Alessandro Camilli
* Lorenzo Battistini
* Lara Baggio

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.

This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_vat_statement_communication>`_ 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_it_vat_statement_communication/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models, wizard
27 changes: 27 additions & 0 deletions l10n_it_vat_statement_communication/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2017 Alessandro Camilli - Openforce
# Copyright 2017-2021 Lorenzo Battistini
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "ITA - Comunicazione liquidazione IVA",
"summary": "Comunicazione liquidazione IVA ed esportazione file xml"
"conforme alle specifiche dell'Agenzia delle Entrate",
"version": "14.0.1.0.0",
"category": "Account",
"author": "Openforce di Camilli Alessandro, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-italy",
"license": "AGPL-3",
"depends": [
"account_vat_period_end_statement",
"l10n_it_appointment_code",
"l10n_it_fiscalcode",
],
"data": [
"security/ir.model.access.csv",
"views/comunicazione_liquidazione.xml",
"views/config.xml",
"views/account.xml",
"wizard/export_file_view.xml",
"security/security.xml",
],
"installable": True,
}
170 changes: 170 additions & 0 deletions l10n_it_vat_statement_communication/data/comunicazioneIvp_2017_v1.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- edited with XMLSpy v2017 sp2 (x64) (http://www.altova.com) by rsiino (Sogei S.p.A.) -->
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:cm="urn:www.agenziaentrate.gov.it:specificheTecniche:common"
xmlns:sc="urn:www.agenziaentrate.gov.it:specificheTecniche:sco:common"
xmlns:iv="urn:www.agenziaentrate.gov.it:specificheTecniche:sco:ivp"
xmlns:ns1="www.agenziaentrate.gov.it:specificheTecniche:telent:v1"
targetNamespace="urn:www.agenziaentrate.gov.it:specificheTecniche:sco:ivp"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.0"
>
<xs:annotation>
<xs:documentation xml:lang="it"><![CDATA[
Versione 1.0 - 13/02/16]]></xs:documentation>
</xs:annotation>
<xs:import
namespace="urn:www.agenziaentrate.gov.it:specificheTecniche:common"
schemaLocation="../../common/fornitura_v3.xsd"
/>
<xs:element name="Comunicazione" type="iv:Comunicazione_IVP_Type" />
<xs:complexType name="Comunicazione_IVP_Type">
<xs:complexContent>
<xs:extension base="cm:Documento_Type">
<xs:sequence>
<xs:element name="Frontespizio" type="iv:Frontespizio_IVP_Type" />
<xs:element name="DatiContabili" type="iv:DatiContabili_IVP_Type" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="Frontespizio_IVP_Type">
<xs:sequence>
<xs:element name="CodiceFiscale" type="cm:DatoCF_Type" />
<xs:element name="AnnoImposta" type="cm:DatoDA_Type" />
<xs:element name="PartitaIVA" type="cm:DatoPI_Type" />
<xs:element name="PIVAControllante" type="cm:DatoPI_Type" minOccurs="0" />
<xs:element name="UltimoMese" minOccurs="0">
<xs:simpleType>
<xs:restriction base="cm:DatoNP_Type">
<xs:enumeration value="1" />
<xs:enumeration value="2" />
<xs:enumeration value="3" />
<xs:enumeration value="4" />
<xs:enumeration value="5" />
<xs:enumeration value="6" />
<xs:enumeration value="7" />
<xs:enumeration value="8" />
<xs:enumeration value="9" />
<xs:enumeration value="10" />
<xs:enumeration value="11" />
<xs:enumeration value="12" />
<xs:enumeration value="13" />
<xs:enumeration value="99" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="LiquidazioneGruppo" type="cm:DatoCB_Type" minOccurs="0" />
<xs:element name="CFDichiarante" type="cm:DatoCF_Type" minOccurs="0" />
<xs:element name="CodiceCaricaDichiarante" minOccurs="0">
<xs:simpleType>
<xs:restriction base="cm:DatoNP_Type">
<xs:enumeration value="1" />
<xs:enumeration value="2" />
<xs:enumeration value="3" />
<xs:enumeration value="4" />
<xs:enumeration value="5" />
<xs:enumeration value="6" />
<xs:enumeration value="7" />
<xs:enumeration value="8" />
<xs:enumeration value="9" />
<xs:enumeration value="11" />
<xs:enumeration value="12" />
<xs:enumeration value="13" />
<xs:enumeration value="14" />
<xs:enumeration value="15" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodiceFiscaleSocieta" type="cm:DatoCN_Type" minOccurs="0" />
<xs:element name="FirmaDichiarazione" type="cm:DatoCB_Type" />
<xs:element name="CFIntermediario" type="cm:DatoCF_Type" minOccurs="0" />
<xs:element name="ImpegnoPresentazione" minOccurs="0">
<xs:simpleType>
<xs:restriction base="cm:DatoN1_Type">
<xs:enumeration value="1" />
<xs:enumeration value="2" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DataImpegno" type="cm:DatoDT_Type" minOccurs="0" />
<xs:element name="FirmaIntermediario" type="cm:DatoCB_Type" minOccurs="0" />
<xs:element name="FlagConferma" type="cm:DatoCB_Type" minOccurs="0" />
<xs:element name="IdentificativoProdSoftware" type="cm:DatoAN_Type" minOccurs="0" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="DatiContabili_IVP_Type">
<xs:sequence>
<xs:element name="Modulo" maxOccurs="5">
<xs:complexType>
<xs:sequence>
<xs:element name="Mese" minOccurs="0">
<xs:simpleType>
<xs:restriction base="cm:DatoNP_Type">
<xs:enumeration value="1" />
<xs:enumeration value="2" />
<xs:enumeration value="3" />
<xs:enumeration value="4" />
<xs:enumeration value="5" />
<xs:enumeration value="6" />
<xs:enumeration value="7" />
<xs:enumeration value="8" />
<xs:enumeration value="9" />
<xs:enumeration value="10" />
<xs:enumeration value="11" />
<xs:enumeration value="12" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Trimestre" minOccurs="0">
<xs:simpleType>
<xs:restriction base="cm:DatoN1_Type">
<xs:enumeration value="1" />
<xs:enumeration value="2" />
<xs:enumeration value="3" />
<xs:enumeration value="4" />
<xs:enumeration value="5" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Subfornitura" type="cm:DatoCB_Type" minOccurs="0" />
<xs:element name="EventiEccezionali" type="iv:Eventi_Ecc_Type" minOccurs="0" />
<xs:element name="TotaleOperazioniAttive" type="iv:DatoVN_Type" minOccurs="0" />
<xs:element name="TotaleOperazioniPassive" type="iv:DatoVN_Type" minOccurs="0" />
<xs:element name="IvaEsigibile" type="iv:DatoVN_Type" minOccurs="0" />
<xs:element name="IvaDetratta" type="iv:DatoVN_Type" minOccurs="0" />
<xs:element name="IvaDovuta" type="cm:DatoVP_Type" minOccurs="0" />
<xs:element name="IvaCredito" type="cm:DatoVP_Type" minOccurs="0" />
<xs:element name="DebitoPrecedente" type="cm:DatoVP_Type" minOccurs="0" />
<xs:element name="CreditoPeriodoPrecedente" type="cm:DatoVP_Type" minOccurs="0" />
<xs:element name="CreditoAnnoPrecedente" type="iv:DatoVN_Type" minOccurs="0" />
<xs:element name="VersamentiAutoUE" type="cm:DatoVP_Type" minOccurs="0" />
<xs:element name="CreditiImposta" type="cm:DatoVP_Type" minOccurs="0" />
<xs:element name="InteressiDovuti" type="cm:DatoVP_Type" minOccurs="0" />
<xs:element name="Acconto" type="cm:DatoVP_Type" minOccurs="0" />
<xs:element name="ImportoDaVersare" type="cm:DatoVP_Type" minOccurs="0" />
<xs:element name="ImportoACredito" type="cm:DatoVP_Type" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="Eventi_Ecc_Type">
<xs:restriction base="xs:string">
<xs:enumeration value="1" />
<xs:enumeration value="9" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DatoVN_Type">
<xs:annotation>
<xs:documentation
>Tipo semplice che identifica numeri positivi con 2 cifre decimali. La lunghezza massima prevista è di 16 caratteri, il separatore decimale previsto è la virgola.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:maxLength value="16" />
<xs:pattern value="[\-]{0,1}[0-9]+,[0-9]{2}" />
</xs:restriction>
</xs:simpleType>
</xs:schema>
37 changes: 37 additions & 0 deletions l10n_it_vat_statement_communication/data/fornituraIvp_2017_v1.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- edited with XMLSpy v2017 sp2 (x64) (http://www.altova.com) by rsiino
(Sogei S.p.A.) -->
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:cm="urn:www.agenziaentrate.gov.it:specificheTecniche:common"
xmlns:sc="urn:www.agenziaentrate.gov.it:specificheTecniche:sco:common"
xmlns:iv="urn:www.agenziaentrate.gov.it:specificheTecniche:sco:ivp"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
targetNamespace="urn:www.agenziaentrate.gov.it:specificheTecniche:sco:ivp"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.0"
>

<xs:import
namespace="http://www.w3.org/2000/09/xmldsig#"
schemaLocation="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"
/>

<xs:annotation>
<xs:documentation xml:lang="it"><![CDATA[
Versione 1.0 - 13/02/16
]]></xs:documentation>
</xs:annotation>
<xs:include schemaLocation="intestazioneIvp_2017_v1.xsd" />
<xs:include schemaLocation="comunicazioneIvp_2017_v1.xsd" />
<xs:element name="Fornitura">
<xs:complexType>
<xs:sequence>
<xs:element name="Intestazione" type="iv:Intestazione_IVP_Type" />
<xs:element name="Comunicazione" type="iv:Comunicazione_IVP_Type" />
<xs:element ref="ds:Signature" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
43 changes: 43 additions & 0 deletions l10n_it_vat_statement_communication/data/fornitura_v3.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="urn:www.agenziaentrate.gov.it:specificheTecniche:common"
targetNamespace="urn:www.agenziaentrate.gov.it:specificheTecniche:common"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="3.0"
>
<xs:annotation>
<xs:documentation
xml:lang="it"
><![CDATA[
Versione 3.0 - 10/12/13
- modificato import typesDati_v3.xsd
- modificato targetNamespace
Versione 2.1 - 10/07/13
- rimossi gli elementi complessi Fornitura e Intestazione
Versione 2.0 - 15/02/12
- modificato il tipo Intestazione_Type: introdotto il tipo complesso Dati_Intestazione_Type
- modificato il tipo Codice_Fornitura_Type
- modificato l'elemento TipoFornitore: associato il type DatoNP_Type
- modificato targetNamespace
]]></xs:documentation>
</xs:annotation>
<xs:include schemaLocation="typesDati_v3.xsd" />
<xs:element name="Documento" type="Documento_Type" abstract="true" />
<xs:complexType name="Documento_Type">
<xs:annotation>
<xs:documentation xml:lang="it">Documento trasmesso</xs:documentation>
</xs:annotation>
<xs:attribute name="identificativo" type="Identificativo_Type" use="required" />
</xs:complexType>
<xs:simpleType name="Identificativo_Type">
<xs:restriction base="xs:string">
<xs:pattern
value="[0-9]{4}[1-9]|[0-9]{3}[1-9][0-9]|[0-9]{2}[1-9][0-9]{2}|[0-9][1-9][0-9]{3}|[1-9][0-9]{4}"
/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
Loading

0 comments on commit 6b035a9

Please sign in to comment.