Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
124 changes: 124 additions & 0 deletions l10n_it_edi_import_zip/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
================================
Italy - E-invoicing - Import ZIP
================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:7a1ff422d683729aac06fd1f91b25d0d18a39318445cc91aed392eeebb8a585e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/18.0/l10n_it_edi_import_zip
: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-18-0/l10n-italy-18-0-l10n_it_edi_import_zip
: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-italy&target_branch=18.0
:alt: Try me on Runboat

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

**Italiano**

Questo modulo aggiunge una vista per importare diversi file XML di
fatture elettroniche (OUT/IN) tramite file ZIP.

Il modulo importerà dal file ZIP solo file XML o P7M, anche se in
subdirectory, ignorando file non riconosciuti.

**English**

This module adds a view to import several XML e-invoice files (OUT/IN)
via ZIP file.

The module will import only XML or P7M files from the ZIP file, even if
in subdirectories, ignoring unrecognized files.

**Table of contents**

.. contents::
:local:

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

**Italiano**

Impostare la partita IVA o il codice fiscale dell'azienda corrente: le
fatture elettroniche importate risulteranno attive quando il nodo
CedentePrestatore identifica il partner dell'azienda corrente.

**English**

Set the VAT number or the fiscal code of the current company: the
imported electronic invoices will be active when the CedentePrestatore
node identifies the partner of the current company.

Usage
=====

**Italiano**

- Andare in Fatturazione -> Configurazione -> Fiscalità italiana ->
Import E-bill ZIP Files
- Caricare un file ZIP contenente i file XML di fatture elettroniche
(OUT/IN)
- Eseguire "Import Invoices" per creare le fatture in bozza

**English**

- Go to Accounting -> Configuration -> Italian Localization -> Import
E-bill ZIP Files
- Upload ZIP file including XML e-invoice files (OUT/IN)
- Run "Import Invoices" to create a draft invoices/bills

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_edi_import_zip%0Aversion:%2018.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
-------

* Giuseppe Borruso

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

- Giuseppe Borruso - Dinamiche Aziendali srl
<gborruso@dinamicheaziendali.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/18.0/l10n_it_edi_import_zip>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions l10n_it_edi_import_zip/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
23 changes: 23 additions & 0 deletions l10n_it_edi_import_zip/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2025 Giuseppe Borruso - Dinamiche Aziendali srl <gborruso@dinamicheaziendali.it>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Italy - E-invoicing - Import ZIP",
"summary": "Permette di importare in uno ZIP diversi file XML di "
"fatture elettroniche",
"version": "18.0.1.0.0",
"category": "Localization/Italy",
"website": "https://github.com/OCA/l10n-italy",
"author": "Giuseppe Borruso, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": [
"account",
"l10n_it_edi",
],
"data": [
"security/ir.model.access.csv",
"wizards/wizard_import_fatturapa.xml",
],
"application": False,
"installable": True,
}
1 change: 1 addition & 0 deletions l10n_it_edi_import_zip/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import account_move
16 changes: 16 additions & 0 deletions l10n_it_edi_import_zip/models/account_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2025 Giuseppe Borruso - Dinamiche Aziendali srl <gborruso@dinamicheaziendali.it>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import models


class AccountMove(models.TransientModel):
_inherit = "account.move"

def _l10n_it_edi_search_partner(self, company, vat, codice_fiscale, email):
partner = super()._l10n_it_edi_search_partner(
company, vat, codice_fiscale, email
)
# if not partner:
# TODO: create partner
return partner
3 changes: 3 additions & 0 deletions l10n_it_edi_import_zip/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
11 changes: 11 additions & 0 deletions l10n_it_edi_import_zip/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
**Italiano**

Impostare la partita IVA o il codice fiscale dell'azienda corrente: le
fatture elettroniche importate risulteranno attive quando il nodo
CedentePrestatore identifica il partner dell'azienda corrente.

**English**

Set the VAT number or the fiscal code of the current company: the
imported electronic invoices will be active when the CedentePrestatore
node identifies the partner of the current company.
2 changes: 2 additions & 0 deletions l10n_it_edi_import_zip/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Giuseppe Borruso - Dinamiche Aziendali srl
\<<gborruso@dinamicheaziendali.it>\>
13 changes: 13 additions & 0 deletions l10n_it_edi_import_zip/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**Italiano**

Questo modulo aggiunge una vista per importare diversi file XML di
fatture elettroniche (OUT/IN) tramite file ZIP.

Il modulo importerà dal file ZIP solo file XML o P7M, anche se in subdirectory, ignorando file non riconosciuti.

**English**

This module adds a view to import several XML e-invoice files (OUT/IN)
via ZIP file.

The module will import only XML or P7M files from the ZIP file, even if in subdirectories, ignoring unrecognized files.
14 changes: 14 additions & 0 deletions l10n_it_edi_import_zip/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
**Italiano**

- Andare in Fatturazione -\> Configurazione -\> Fiscalità italiana -\>
Import E-bill ZIP Files
- Caricare un file ZIP contenente i file XML di fatture elettroniche
(OUT/IN)
- Eseguire "Import Invoices" per creare le fatture in bozza

**English**

- Go to Accounting -\> Configuration -\> Italian Localization -\> Import
E-bill ZIP Files
- Upload ZIP file including XML e-invoice files (OUT/IN)
- Run "Import Invoices" to create a draft invoices/bills
2 changes: 2 additions & 0 deletions l10n_it_edi_import_zip/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_wizard_import_fatturapa,access_wizard_import_fatturapa,l10n_it_edi_import_zip.model_wizard_import_fatturapa,account.group_account_invoice,1,1,1,1
Loading