Skip to content

Commit

Permalink
Merge commit 'refs/pull/2258/head' of https://github.com/OCA/l10n-italy
Browse files Browse the repository at this point in the history
… into 14.0-supermerge
  • Loading branch information
TheMule71 committed May 28, 2021
2 parents 0c9f467 + f7e254c commit 3b35ab9
Show file tree
Hide file tree
Showing 20 changed files with 1,651 additions and 0 deletions.
79 changes: 79 additions & 0 deletions l10n_it_fatturapa_import_zip/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
======================================
ITA - Fattura elettronica - Import ZIP
======================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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_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-14-0/l10n-italy-14-0-l10n_it_fatturapa_import_zip
: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**

Fatturapa import ZIP.

**English**

Fatturapa import ZIP.

**Table of contents**

.. contents::
:local:

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_import_zip%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
~~~~~~~

* TAKOBI

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

* TAKOBI

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_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_fatturapa_import_zip/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import tests
28 changes: 28 additions & 0 deletions l10n_it_fatturapa_import_zip/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# © 2020 Lorenzo Battistini
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "ITA - Fattura elettronica - Import ZIP",
"version": "14.0.1.0.0",
"category": "Localization/Italy",
"website": "https://github.com/OCA/l10n-italy",
"author": "TAKOBI, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": [
"l10n_it_account",
"l10n_it_fiscal_document_type",
"l10n_it_fatturapa_out",
"l10n_it_fatturapa_in",
"l10n_it_fatturapa_pec",
"l10n_it_withholding_tax_reason",
],
"data": [
"views/account_invoice_views.xml",
"views/attachment_views.xml",
"security/ir.model.access.csv",
"security/rules.xml",
],
"auto_install": False,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<record id="fatturapa_zip_import_multi_company_rule" model="ir.rule">
<field name="name">E-invoice ZIP import multi company rule</field>
<field name="model_id" ref="model_fatturapa_attachment_import_zip" />
<field eval="True" name="global" />
<field
name="domain_force"
>['|',('company_id','=',False),('company_id','in',company_ids)]</field>
</record>

</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from openupgradelib import openupgrade # pylint: disable=W7936


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(
env.cr,
"l10n_it_fatturapa_import_zip",
"migrations/13.0.1.0.0/noupdate_changes.xml",
)
2 changes: 2 additions & 0 deletions l10n_it_fatturapa_import_zip/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import attachment
from . import account_invoice
20 changes: 20 additions & 0 deletions l10n_it_fatturapa_import_zip/models/account_invoice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from odoo import fields, models


class Invoice(models.Model):
_inherit = "account.move"

attachment_out_import_zip_id = fields.Many2one(
"fatturapa.attachment.import.zip",
"E-bills ZIP import",
readonly=True,
related="fatturapa_attachment_out_id.attachment_import_zip_id",
store=True,
)
attachment_in_import_zip_id = fields.Many2one(
"fatturapa.attachment.import.zip",
"E-invoices ZIP import",
readonly=True,
related="fatturapa_attachment_in_id.attachment_import_zip_id",
store=True,
)
Loading

0 comments on commit 3b35ab9

Please sign in to comment.