Skip to content

Commit

Permalink
[IMP] l10n_it_account: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Borruso committed Jan 17, 2025
1 parent 77ffb39 commit 1462553
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 42 deletions.
39 changes: 21 additions & 18 deletions l10n_it_account/reports/account_reports_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,18 @@
<div class="header">
<div class="row">
<div class="col-xs-4">
<h3><span t-esc="company.name" /></h3>
<h3>
<span t-esc="company.name" />
</h3>
<span t-esc="company.street" class="" /><br />
<span t-esc="company.zip" class="" /> - <span
t-esc="company.city"
class=""
/> - <span t-esc="company.state_id.code" class="" /><br />
t-esc="company.city"
class=""
/> - <span t-esc="company.state_id.code" class="" /><br />
<span class="text-end">TIN: </span><span
t-esc="company.partner_id.vat"
class=""
/><br />
t-esc="company.partner_id.vat"
class=""
/><br />
</div>
<div class="col-xs-4 col-xs-offset-4 text-end" style="margin-left:10px">
<h3 t-esc="title" />
Expand All @@ -81,27 +83,28 @@
<div class="text-center">
<div class="text-muted">
<span
style="display: none;"
id="l10n_it_count_fiscal_page_base"
t-esc="l10n_it_count_fiscal_page_base"
/>
style="display: none;"
id="l10n_it_count_fiscal_page_base"
t-esc="l10n_it_count_fiscal_page_base"
/>
Page:
<t t-if="l10n_it_count_fiscal_year">
<span t-esc="l10n_it_count_fiscal_year" />
</t>
<span t-esc="l10n_it_count_fiscal_year" />
</t>
<t t-if="not l10n_it_count_fiscal_year">
<li><span
t-esc="context_timestamp(datetime.datetime.now()).strftime('%Y')"
/></li>
</t>
<li>
<span
t-esc="context_timestamp(datetime.datetime.now()).strftime('%Y')"
/>
</li>
</t>
<span> / </span>
<span class="page" />
</div>
</div>
</div>
</template>


<template id="minimal_layout" inherit_id="web.minimal_layout" priority="100">
<xpath expr="//head/script" position="replace">
<script t-if="subst">
Expand Down
42 changes: 21 additions & 21 deletions l10n_it_account/tools/xsd/Schema_VFSM10.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
version="1.0.1">

<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:element name="FatturaElettronicaSemplificata" type="FatturaElettronicaType">
<xs:annotation>
<xs:documentation>
Expand Down Expand Up @@ -62,15 +62,15 @@
<xs:element name="IdCodice" type="CodiceType" />
</xs:sequence>
</xs:complexType>
<xs:simpleType name="CodiceType">
<xs:simpleType name="CodiceType">
<xs:restriction base="xs:string">
<xs:minLength value="1" />
<xs:maxLength value="28" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="FormatoTrasmissioneType">
<xs:simpleType name="FormatoTrasmissioneType">
<xs:restriction base="xs:string">
<xs:length value="5" />
<xs:length value="5" />
<xs:enumeration value="FSM10">
<xs:annotation>
<xs:documentation>Fattura verso privati semplificata</xs:documentation>
Expand All @@ -92,11 +92,11 @@
<xs:element name="TipoDocumento" type="TipoDocumentoType" />
<xs:element name="Divisa" type="DivisaType" />
<xs:element name="Data" type="DataFatturaType" />
<xs:element name="Numero" type="String20Type" />
<xs:element name="BolloVirtuale" type="BolloVirtualeType" minOccurs="0" />
<xs:element name="Numero" type="String20Type" />
<xs:element name="BolloVirtuale" type="BolloVirtualeType" minOccurs="0" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="DatiFatturaRettificataType">
<xs:complexType name="DatiFatturaRettificataType">
<xs:sequence>
<xs:element name="NumeroFR" type="String20Type" />
<xs:element name="DataFR" type="DataFatturaType" />
Expand Down Expand Up @@ -173,12 +173,12 @@
<xs:element name="Nome" type="String60LatinType"/>
<xs:element name="Cognome" type="String60LatinType"/>
</xs:sequence>
</xs:choice>
</xs:choice>
<xs:element name="Sede" type="IndirizzoType" />
<xs:element name="StabileOrganizzazione" type="IndirizzoType" minOccurs="0" />
<xs:element name="RappresentanteFiscale" type="RappresentanteFiscaleType" minOccurs="0" />
<xs:element name="IscrizioneREA" type="IscrizioneREAType" minOccurs="0" />
<xs:element name="RegimeFiscale" type="RegimeFiscaleType" />
<xs:element name="RegimeFiscale" type="RegimeFiscaleType" />
</xs:sequence>
</xs:complexType>
<xs:simpleType name="RegimeFiscaleType">
Expand Down Expand Up @@ -308,13 +308,13 @@
</xs:annotation>
<xs:sequence>
<xs:element name="IdentificativiFiscali" type="IdentificativiFiscaliType" />
<xs:element name="AltriDatiIdentificativi" type="AltriDatiIdentificativiType" minOccurs="0" />
<xs:element name="AltriDatiIdentificativi" type="AltriDatiIdentificativiType" minOccurs="0" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="IdentificativiFiscaliType">
<xs:sequence>
<xs:element name="IdFiscaleIVA" type="IdFiscaleType" minOccurs="0" />
<xs:element name="CodiceFiscale" type="CodiceFiscaleType" minOccurs="0" />
<xs:element name="CodiceFiscale" type="CodiceFiscaleType" minOccurs="0" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="AltriDatiIdentificativiType">
Expand Down Expand Up @@ -439,7 +439,7 @@
<xs:pattern value="[A-Z0-9]{11,16}" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="SocioUnicoType">
<xs:simpleType name="SocioUnicoType">
<xs:restriction base="xs:string">
<xs:enumeration value="SU">
<xs:annotation>
Expand All @@ -453,7 +453,7 @@
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="StatoLiquidazioneType">
<xs:simpleType name="StatoLiquidazioneType">
<xs:restriction base="xs:string">
<xs:enumeration value="LS">
<xs:annotation>
Expand All @@ -477,12 +477,12 @@
<xs:pattern value="(\p{IsBasicLatin}{1,20})" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="String60LatinType">
<xs:simpleType name="String60LatinType">
<xs:restriction base="xs:normalizedString">
<xs:pattern value="[\p{IsBasicLatin}\p{IsLatin-1Supplement}]{1,60}" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="String80LatinType">
<xs:simpleType name="String80LatinType">
<xs:restriction base="xs:normalizedString">
<xs:pattern value="[\p{IsBasicLatin}\p{IsLatin-1Supplement}]{1,80}" />
</xs:restriction>
Expand All @@ -502,7 +502,7 @@
<xs:pattern value="[A-Z]{2}" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="NazioneType">
<xs:simpleType name="NazioneType">
<xs:restriction base="xs:string">
<xs:pattern value="[A-Z]{2}" />
</xs:restriction>
Expand All @@ -512,7 +512,7 @@
<xs:pattern value="[A-Z]{3}" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="NumeroCivicoType">
<xs:simpleType name="NumeroCivicoType">
<xs:restriction base="xs:normalizedString">
<xs:pattern value="(\p{IsBasicLatin}{1,8})" />
</xs:restriction>
Expand All @@ -524,18 +524,18 @@
</xs:restriction>
</xs:simpleType>
<!--________________ NUMBERS ____________________-->
<xs:simpleType name="Amount2DecimalType">
<xs:simpleType name="Amount2DecimalType">
<xs:restriction base="xs:decimal">
<xs:pattern value="[\-]?[0-9]{1,11}\.[0-9]{2}" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="RateType">
<xs:simpleType name="RateType">
<xs:restriction base="xs:decimal">
<xs:maxInclusive value="100.00" />
<xs:pattern value="[0-9]{1,3}\.[0-9]{2}" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="CAPType">
<xs:simpleType name="CAPType">
<xs:restriction base="xs:string">
<xs:pattern value="[0-9][0-9][0-9][0-9][0-9]" />
</xs:restriction>
Expand All @@ -550,4 +550,4 @@
<xs:enumeration value="SI" />
</xs:restriction>
</xs:simpleType>
</xs:schema>
</xs:schema>
2 changes: 0 additions & 2 deletions l10n_it_account/views/account_menuitem.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
Copyright 2022 Alex Comba - Agile Business Group
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>

<!-- accounting label -->
<record id="account.menu_finance" model="ir.ui.menu">
<field name="name">Accounting</field>
Expand All @@ -29,5 +28,4 @@
action="date_range.date_range_generator_action"
/>
</menuitem>

</odoo>
1 change: 0 additions & 1 deletion l10n_it_account/views/account_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@
</field>
</field>
</record>

</odoo>
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# generated from manifests external_dependencies
xmlschema

0 comments on commit 1462553

Please sign in to comment.