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

Commit

Permalink
[IMP] l10n_it_vat_statement_communication: black, isort, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
eLBati committed May 7, 2021
1 parent 95db338 commit 5ad9cdb
Show file tree
Hide file tree
Showing 22 changed files with 975 additions and 765 deletions.
1 change: 0 additions & 1 deletion l10n_it_vat_statement_communication/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

from . import models, wizard
40 changes: 20 additions & 20 deletions l10n_it_vat_statement_communication/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@
# Copyright 2017-2019 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': '12.0.1.6.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_codici_carica', 'l10n_it_fiscalcode'
"name": "ITA - Comunicazione liquidazione IVA",
"summary": "Comunicazione liquidazione IVA ed esportazione file xml"
"conforme alle specifiche dell'Agenzia delle Entrate",
"version": "12.0.1.6.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_codici_carica",
"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',
"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,
"installable": True,
}
190 changes: 102 additions & 88 deletions l10n_it_vat_statement_communication/data/comunicazioneIvp_2017_v1.xsd
Original file line number Diff line number Diff line change
@@ -1,85 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<?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: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: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: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="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: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="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: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="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: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: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">
Expand All @@ -90,67 +103,68 @@
<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: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: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: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: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: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:maxLength value="16" />
<xs:pattern value="[\-]{0,1}[0-9]+,[0-9]{2}" />
</xs:restriction>
</xs:simpleType>
</xs:schema>
32 changes: 19 additions & 13 deletions l10n_it_vat_statement_communication/data/fornituraIvp_2017_v1.xsd
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2017 sp2 (x64) (http://www.altova.com) by rsiino
<?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: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
Expand Down
29 changes: 20 additions & 9 deletions l10n_it_vat_statement_communication/data/fornitura_v3.xsd
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
<?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">
<?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[
<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
- 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
Expand All @@ -16,17 +25,19 @@
- modificato targetNamespace
]]></xs:documentation>
</xs:annotation>
<xs:include schemaLocation="typesDati_v3.xsd"/>
<xs:element name="Documento" type="Documento_Type" abstract="true"/>
<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: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: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 5ad9cdb

Please sign in to comment.