Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
f846859
[FIX] Porting first level
Mar 16, 2015
6173987
[FIX] imp invoice_id field in fatturapa.related_document_type
archetipo Mar 16, 2015
09e6a75
[FIX] applied 10555382a756e01f4470420665e343f4e74d1651
Mar 19, 2015
462ca43
[FIX] appling 5335deb2f593e07833610ca181ad36c25ab9420f
Mar 19, 2015
1af765c
[FIX] size field as specified in xsd schema
archetipo Mar 19, 2015
5bbae06
[ADD] account.tax files
eLBati Mar 19, 2015
34b4b6b
[FIX] apply various commit
Mar 20, 2015
4a083a7
[FIX] description and deps
eLBati Mar 20, 2015
7bc7bab
[FIX] porting eLBati commit
Mar 24, 2015
085475e
[FIX] payment term tests
eLBati Mar 24, 2015
5e656f0
[FIX] Fix province
Mar 24, 2015
f1a717a
[IMP] description, help and error strings
eLBati Mar 24, 2015
eb4337e
[FIX] Archetipo's mod
Apr 1, 2015
d341202
[FIX] help text
eLBati Apr 15, 2015
5f3849e
[IMP]added new demo code with VAT amount 22 % , duplicating the case …
archetipo Apr 15, 2015
e235861
[FIX] tax demo data
eLBati Apr 15, 2015
d0c7f54
[IMP] demo data for Nature of tax with amount equal 0
archetipo May 7, 2015
9cf1053
porting 8f0fcc00c54ac1f783a13d8e9c1a0d9139f7070c
eLBati Jun 11, 2015
9481156
[FIX] DataFatturaType init
archetipo Jun 10, 2015
b1b783f
[FIX] some PEP8
eLBati Jun 11, 2015
7f72cb4
[FIX] fatturpaPA out Test
archetipo Aug 7, 2015
7a81c59
REF fatturapa_out using split payment module
eLBati Sep 8, 2015
ade77a7
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
26cbb3d
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
2e0de40
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 26, 2016
eef5465
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
2eb42a0
l10n_it_fatturapa(_out): import guards
LeartS Nov 27, 2015
f9d9a28
fatturapa: Log import errors, comments
LeartS Dec 11, 2015
f5bef45
IMP l10n_it_fatturapa: meta data
eLBati Oct 19, 2016
e8c0a50
l10n_it_fatturapa: porting to 10 and new API
eLBati Oct 19, 2016
209ab4d
FIX l10n_it_fatturapa LINT for pyXB
eLBati Dec 14, 2016
9dd145c
FIX l10n_it_fatturapa pyxb version
eLBati Dec 19, 2017
bc7fc30
[FIX] Runbot warnings: (#557)
SimoRubi Jul 24, 2018
295f869
[10.0] split payment fiscal term to a single module to reuse
sergiocorato Aug 3, 2018
effb51f
FIX migration script
eLBati Sep 4, 2018
f82af61
porting
eLBati Jul 10, 2018
ed88a20
l10n_it_ipa ADD is_pa bool field
eLBati Sep 10, 2018
3fe33d5
ADD l10n_it_fatturapa_out_ddt
eLBati Sep 24, 2018
cee4249
Translated using Weblate (Italian)
primes2h Oct 17, 2018
4509881
IMP l10n_it_fatturapa useless field (#613)
eLBati Oct 22, 2018
0aef0a7
Translated using Weblate (Italian)
primes2h Nov 5, 2018
8bc1543
[10.0] fix l10n_it_fatturapa RF19 fiscal position id duplicated (#650)
sergiocorato Nov 8, 2018
aa8840e
IMP l10n_it_fatturapa codice destinatario default 0000000 (#657)
eLBati Nov 12, 2018
fe5756b
IMP README
eLBati Nov 13, 2018
f550380
Translated using Weblate (Italian)
primes2h Nov 16, 2018
0e2b0e1
[MIG] l10n_it_fatturapa: Migration to 11.0
Nov 5, 2018
cf3fbdb
porting l10n_it_fatturapa to 12.0
eLBati Nov 16, 2018
363b7bf
[FIX] translation source strings l10n_it_fatturapa
primes2h Nov 26, 2018
b2069d8
FIX l10n_it_fatturapa: partner checks must be done for customers only…
eLBati Nov 30, 2018
88bf2b6
FIX l10n_it_fatturapa/models/ir_attachment.py self is wrong when set …
eLBati Dec 3, 2018
2a1130a
[FIX] l10n_it_fatturapa translation source strings
primes2h Nov 30, 2018
e5b8a0c
FIX l10n_it_fatturapa: province is not required in XML
eLBati Dec 3, 2018
dbe07d7
[IMP] fatturapa modules, set ITA name and summary (#694)
primes2h Dec 4, 2018
5ad9ab2
Translated using Weblate (Italian)
eLBati Dec 7, 2018
fffb3d4
Translated using Weblate (Italian)
eLBati Dec 9, 2018
3a778a9
FIX l10n_it_fatturapa translations
eLBati Dec 9, 2018
ba700d6
[FIX] fatturapa titles using italian guidelines (#718)
primes2h Dec 12, 2018
ea23b70
Translated using Weblate (Italian)
primes2h Dec 16, 2018
854d86f
Translated using Weblate (Italian)
primes2h Dec 18, 2018
b641113
FIX l10n_it_fatturapa_in: do not automatically add Bollo as invoice l…
eLBati Dec 7, 2018
5c02996
FIX importing XML signed with CAdES (#755)
eLBati Jan 5, 2019
84c9017
[FIX] openssl signature verification error (#791)
primes2h Jan 7, 2019
4613866
[IMP] l10n_fatturapa: allow multiple invoice sequence (#804)
primes2h Jan 8, 2019
f521ae2
[12.0] IMP l10n_it_fatturapa add TD20 to document type (#837)
taifu Jan 14, 2019
f1741fb
FIX l10n_it_fatturapa allowing to import XML elements with blank spac…
eLBati Jan 14, 2019
ff56db5
l10n_it_fatturapa: improve _check_ftpa_partner_data and onchange_coun…
eLBati Jan 23, 2019
cfeee3e
Translated using Weblate (Italian)
primes2h Jan 25, 2019
5d80edb
Recovering parser is needed for files where strings like
eLBati Jan 29, 2019
fe59f99
IMP l10n_it_fatturapa: persons without lastname or firstname can have…
eLBati Feb 1, 2019
17146bd
[FIX] l10n_it_fatturapa: Rename field due to the following warning in…
monen17 Jan 23, 2019
533b5ee
Translated using Weblate (Italian)
primes2h Feb 8, 2019
3e01186
[12.0] l10n_it_fatturapa: use asn1crypto instead of openssl
sherpya Feb 7, 2019
4c392ce
IMP l10n_it_fatturapa better label 'Enable electronic invoicing' to i…
eLBati Feb 10, 2019
3c444a4
Translated using Weblate (Italian)
primes2h Feb 12, 2019
93c26e6
FIX l10n_it_fatturapa when installed with stock:
eLBati Feb 13, 2019
3a36141
Translated using Weblate (Italian)
primes2h Mar 7, 2019
6061685
[FIX] l10n_it_fatturapa: Add cross check pec_destinatario and codice_…
monen17 Mar 6, 2019
01bb73f
l10n_it_fattura: migration to pyxb 1.2.6
sherpya Jan 28, 2019
4c9c8de
FIX
eLBati May 14, 2019
62aac62
l10n_it_fatturapa: xml doctor for fatturapa
sherpya May 3, 2019
bef160b
FIX
eLBati May 23, 2019
c32acd1
IMP l10n_it_fatturapa removing e-invoice sequence
eLBati Mar 6, 2019
288c98c
[12.0][l10n_it_fatturapa] Add support to multiple invoice preview for…
robyf70 Mar 1, 2019
2d9a1a0
[FIX] l10n_it_fatturapa: Remove newlines from base64 file before deco…
SimoRubi Jun 4, 2019
dba346f
[12] Fattura elettronica per indirizzi di fatturazione
jackjack82 May 13, 2019
ff55dd7
[FIX] l10n_it_fatturapa: Do not strip XML elements.
SimoRubi Jun 24, 2019
9d98fe6
New bindings using up to date XSD from
eLBati Jul 4, 2019
bc4186f
FIX l10n_it_fatturapa lint
eLBati Jul 24, 2019
25ff315
Translated using Weblate (Italian)
Aug 7, 2019
7b66bab
Translated using Weblate (Italian)
SimoRubi Aug 13, 2019
fb3f5fa
[12.0][IMP][l10n_it_fatturapa_in] Add the possibility to optionally e…
robyf70 Jul 18, 2019
9399035
[FIX] l10n_it_fatturapa: Fiscal position should be configurable
SimoRubi Aug 8, 2019
434618e
ADD l10n_it_fatturapa 10% demo tax
eLBati Aug 31, 2019
973ffac
[FIX] port display_name from 8.0 for welfare fund type
sergiocorato Mar 6, 2019
0202867
l10n_it_fatturapa: Porting welfare fund type to 12
eLBati Oct 9, 2019
576225a
IMP l10n_it_fatturapa* attachment with "Open full-screen" invoice
eLBati Oct 10, 2019
786e5f3
REF l10n_it_fatturapa_out_wt and l10n_it_fatturapa_out to export ENAS…
eLBati Oct 10, 2019
eacf82d
Translated using Weblate (Italian)
primes2h Oct 27, 2019
d8b7fc5
IMP l10n_it_fatturapa prevent user to create fatturapa.fiscal_positio…
eLBati Nov 4, 2019
b49e737
ADD electronic_invoice_data_complete to l10n_it_fatturapa
eLBati Dec 7, 2019
b2e2cf1
[IMP] set module incompatibility
primes2h Dec 13, 2019
cc158e9
Translated using Weblate (Italian)
primes2h Jan 7, 2020
66878ad
FIX e-invoice fiscal position: update law reference
eLBati Jan 8, 2020
e373d9f
- add fatturapa_pub_administration_ref to res config settings view
GSLabIt Jan 15, 2020
dbf27a2
Translated using Weblate (Italian)
primes2h Jan 20, 2020
6f3813d
Translated using Weblate (Italian)
primes2h Jan 20, 2020
8fc36e3
[IMP] add obliged subject checkbox on partner
primes2h Feb 27, 2019
409757d
Translated using Weblate (Italian)
eLBati Feb 3, 2020
951c96f
IMP l10n_it_fatturapa allowing to set addressee data in sub addresses
eLBati Mar 26, 2020
6f1e4c3
Translated using Weblate (Italian)
eLBati Mar 31, 2020
ea596e7
merge PR 1264 1717 1728 1737 1739
May 13, 2020
6e43944
l10n_it_fatturapa: add "Withholding amount" field
eLBati May 15, 2020
559b0fa
[12.0][FIX] trailing whitespaces in xml data
sergiocorato Aug 17, 2020
707f390
[IMP] l10n_it_fatturapa: default views for related documents
SimoRubi Mar 27, 2020
4c9a617
FIX license compatibility
eLBati Sep 10, 2020
da3ff9a
[IMP] l10n_it_fatturapa: Regenerate binding
SimoRubi Jun 11, 2020
ccf6bd2
[12.0][IMP] l10n it account tax kind fatturapa 1.6 (#1865)
sergiocorato Sep 11, 2020
f405c58
[12.0][FIX] fatturapa withholding tax invoice received e-invoice 1.6 …
sergiocorato Sep 18, 2020
cb4ed8b
[FIX] remove comments
sergiocorato Sep 29, 2020
e72e18b
Remove not used tests
eLBati Oct 1, 2020
2a78171
Use correct english terms, from APPENDIX A -TECHNICAL SPECIFICATIONS
eLBati Oct 2, 2020
20b7e17
Translated using Weblate (Italian)
eLBati Oct 5, 2020
ec110b8
Translated using Weblate (Italian)
eLBati Oct 5, 2020
7c2dcf3
[12.0][FIX][l10n_it_fatturapa] URL in Readme doesn't work
rafaelbn Nov 11, 2020
4cddc22
[FIX] trailing spaces in PECDestinatario
TheMule71 Nov 27, 2020
fc27a9e
[FIX] Email tag trailing spaces
primes2h Dec 23, 2020
4e93754
[FIX] Changed inherit for partner related views for a missing referen…
OpenCode Jan 15, 2021
1c2a83a
Translated using Weblate (Italian)
primes2h Feb 3, 2021
d671184
[FIX] demo nature data remove no more selectable
sergiocorato Feb 4, 2021
c8fbd6b
[12.0][IMP] set INVCONT when needed
sergiocorato Feb 4, 2021
8d85e07
[IMP] l10n_it_fatturapa: black, isort, prettier
TheMule71 Apr 2, 2021
2bc1b5b
[MIG] l10n_it_fatturapa: Migration to 14.0
TheMule71 Dec 15, 2020
44f1131
[FIX] l10n_it_fatturapa: remove parts unneeded
tafaRU May 3, 2021
b8b4f26
l10n_it_fatturapa: the second UPDATE does not depend on "table, colum…
eLBati May 6, 2021
2f77a5b
[IMP] l10n_it_fatturapa: Instructions for issues with l10n_it_edi
SimoRubi Jun 17, 2021
9eea719
FIX l10n_it_fatturapa: fix demo data to select existing accounts
TheMule71 Jun 4, 2021
39f8dd6
[FIX] l10n_it_fatturapa: Compute correct tax for repartition lines of…
SimoRubi Jul 12, 2021
9643e8b
[FIX] update Schema_del_file_xml_FatturaPA_versione_1.2.1.xsd
TheMule71 Jul 18, 2021
818b1f9
[IMP] Better view of payments list
TheMule71 Oct 15, 2021
ba0e75c
Modify development_status in order to met https://odoo-community.org/…
tafaRU Oct 21, 2021
dacda06
[IMP] l10n_it_fatturapa: add intra-UE partner
TheMule71 Nov 27, 2021
145c838
[IMP] update dotfiles
OCA-git-bot Mar 30, 2022
6a947c7
Greenify pre-commit by fixing the following pylint checks:
tafaRU Apr 2, 2022
2601541
Translated using Weblate (Italian)
francesco-ooops May 2, 2022
3b495b2
[IMP] l10n_it_fatturapa: add B2C partner in demo data
TheMule71 Apr 22, 2022
397b3d8
[IMP] XML validator is now in l10n_it_account
TheMule71 May 27, 2022
a4f1245
[IMP] upgrade FatturaPA specs and stylesheets to v1.7.1
TheMule71 Sep 20, 2022
f436402
[14.0][IMP] l10n_it_fatturapa, migration script
GSLabIt Oct 3, 2022
0e40bf4
[IMP] l10n_it_fatturapa: pre-commit stuff
TheMule71 Nov 25, 2022
bb7e06b
[MIG] l10n_it_fatturapa: Migration to 16.0
TheMule71 Dec 15, 2022
da8647d
[FIX] l10n_it_fatturapa_out: url widget not translatable
primes2h Nov 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
180 changes: 180 additions & 0 deletions l10n_it_fatturapa/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
================================
ITA - Fattura elettronica - Base
================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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/14.0/l10n_it_fatturapa
: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-14-0/l10n-italy-14-0-l10n_it_fatturapa
: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/14.0
:alt: Try me on Runbot

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

**Italiano**

Modulo base per gestire le fatture elettroniche.

https://www.fatturapa.gov.it

Consultare anche i file README di l10n_it_fatturapa_out e l10n_it_fatturapa_in.

**English**

Base module to handle Electronic Invoices.

https://www.fatturapa.gov.it

See also l10n_it_fatturapa_out and l10n_it_fatturapa_in README files.

**Table of contents**

.. contents::
:local:

Installation
============

**Italiano**

Se non viene usato Openupgrade per effettuare l'aggiornamento del database,
le fatture in stato bozza o annullate non vengono migrate in modo corretto.
La soluzione consigliata è confermare o eliminare tali fatture prima di procedere.

In caso di problemi dovuti all'incompatibilità con il modulo autoinstallante `l10n_it_edi`, per installare questo modulo è necessario:

1. Installare `l10n_it`
2. Disinstallare `l10n_it_edi`
3. Installare `l10n_it_fatturapa`

**English**

If you don't use OpenUpgrade for upgrading your database, you won't be able to correctly migrate
invoices in draft and cancelled states. The recommended solution is to confirm or delete those invoices
before proceeding.

In case of issues due to the incompatibility with the auto-installing module `l10n_it_edi`, in order to install this module you have to:

1. Install `l10n_it`
2. Uninstall `l10n_it_edi`
3. Install `l10n_it_fatturapa`

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

**Italiano**

* Nella scheda "Fattura elettronica" del partner, selezionare "Abilitare fatturazione
elettronica" per attivare la funzionalità di generazione delle e-fatture.

* Per i clienti e i fornitori che sono soggetti obbligati all'emissione della fattura
elettronica va abilitata la casella "Soggetto obbligato".

* Le pubbliche amministrazioni devono avere un codice IPA.
* Gli altri devono avere il codice destinatario o la PEC.

* Configurare le imposte riguardo a "Natura non imponibile", "Riferimento normativo" ed
"Esigibilità IVA".

* Configurare i dati della fattura elettronica in *Fatturazione/Contabilità →
Configurazione → Impostazioni → Fatture elettroniche*, dove necessario.

* Opzionalmente, configurare lo stile dell'anteprima della fattura elettronica
selezionando lo "Stile formato di anteprima".

**English**

* In partner form, select 'Enable Electronic Invoicing' in 'Electronic Invoice' tab
to activate e-invoices generation feature.

* Enable "Obliged Subject" for customers and suppliers subject to the obligation to
issue electronic invoices.

* Public administrations must have IPA code.
* Others must have Addressee Code or PEC.

* Configure taxes about 'Non taxable nature', 'Law reference' and 'VAT payability'.

* Configure Electronic Invoice data in *Invoicing/Accounting → Configuration →
Settings → Electronic Invoices*, where needed.

* Optionally configure the Electronic Invoice preview format style by selecting
'Preview Format Style'.

Usage
=====

**Italiano**

Il modulo NON È compatibile con il modulo standard l10n_it_edi.

**English**

The module is NOT compatible with the standard l10n_it_edi module.

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_fatturapa%0Aversion:%2014.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
~~~~~~~

* Davide Corio
* Agile Business Group
* Innoviu
* Odoo Italia Network

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

* Davide Corio
* Lorenzo Battistini <https://github.com/eLBati>
* Roberto Onnis
* Alessio Gerace
* Sergio Zanchetta <https://github.com/primes2h>
* Gianluigi Tiesi <https://github.com/sherpya>
* Roberto Fichera <https://github.com/robyf70>
* Marco Colombo <https://github.com/TheMule71>
* `Ooops <https://www.ooops404.com>`_:

* Giovanni Serra <giovanni@gslab.it>

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/14.0/l10n_it_fatturapa>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions l10n_it_fatturapa/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2014 Davide Corio <davide.corio@abstract.it>
# Copyright 2015-2016 Lorenzo Battistini - Agile Business Group

from . import models
from . import controllers
44 changes: 44 additions & 0 deletions l10n_it_fatturapa/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copyright 2014 Davide Corio <davide.corio@abstract.it>
# Copyright 2015-2016 Lorenzo Battistini - Agile Business Group
# Copyright 2018-2019 Sergio Zanchetta (Associazione PNLUG - Gruppo Odoo)
# Copyright 2019 Gianluigi Tiesi - Netfarm S.r.l.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "ITA - Fattura elettronica - Base",
"version": "16.0.1.0.0",
"category": "Localization/Italy",
"summary": "Fatture elettroniche",
"author": "Davide Corio, Agile Business Group, Innoviu, "
"Odoo Italia Network, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-italy",
"license": "AGPL-3",
"excludes": ["l10n_it_edi"],
"depends": [
"l10n_it_account",
"l10n_it_fiscalcode",
"attachment_indexation",
"l10n_it_ipa",
"l10n_it_rea",
"base_iban",
"l10n_it_account_tax_kind",
"l10n_it_vat_payability",
"l10n_it_fiscal_payment_term",
"partner_firstname",
],
"data": [
"data/fatturapa_data.xml",
"data/welfare.fund.type.csv",
"views/account_view.xml",
"views/company_view.xml",
"views/partner_view.xml",
"views/related_document_type_views.xml",
"security/ir.model.access.csv",
],
"demo": ["demo/account_invoice_fatturapa.xml"],
"installable": True,
"external_dependencies": {
"python": ["asn1crypto"],
},
"development_status": "Beta",
}
1 change: 1 addition & 0 deletions l10n_it_fatturapa/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import main
22 changes: 22 additions & 0 deletions l10n_it_fatturapa/controllers/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from odoo.http import Controller, request, route


class FatturaElettronicaController(Controller):
@route(
[
"/fatturapa/preview/<attachment_id>",
],
type="http",
auth="user",
website=True,
)
def pdf_preview(self, attachment_id, **data):
attach = request.env["ir.attachment"].browse(int(attachment_id))
html = attach.get_fattura_elettronica_preview()
pdf = request.env["ir.actions.report"]._run_wkhtmltopdf([html])

pdfhttpheaders = [
("Content-Type", "application/pdf"),
("Content-Length", len(pdf)),
]
return request.make_response(pdf, headers=pdfhttpheaders)
Loading