Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][IMP] new module l10n_it_fatturapa_out_di #2451

Merged
Merged
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
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ exclude: |
# XML tests should not be reformatted
^l10n_it_fatturapa_out/tests/data|
^l10n_it_fatturapa_in/tests/data|
^l10n_it_fatturapa_out_sp/tests/data
^l10n_it_fatturapa_out_sp/tests/data|
^l10n_it_fatturapa_out_di/tests/data
default_language_version:
python: python3
node: "14.13.0"
Expand Down
79 changes: 79 additions & 0 deletions l10n_it_fatturapa_out_di/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
===============================================================
ITA - Fattura elettronica - Emissione - Dichiarazione d'intento
===============================================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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_out_di
: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_out_di
: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 tecnico di integrazione tra l10n_it_declaration_of_intent e l10n_it_fatturapa_out

**English**

Technical module for integrating l10n_it_declaration_of_intent and l10n_it_fatturapa_out

**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_out_di%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
~~~~~~~

* Marco Colombo

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

* Marco Colombo <https://github.com/TheMule71>

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_out_di>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
21 changes: 21 additions & 0 deletions l10n_it_fatturapa_out_di/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2021 Marco Colombo
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "ITA - Fattura elettronica - Emissione - Dichiarazione d'intento",
"version": "14.0.1.0.0",
"development_status": "Beta",
"category": "Localization/Italy",
"summary": "Dichiarazioni d'intento in fatturapa",
"author": "Marco Colombo," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-italy",
"license": "AGPL-3",
"depends": [
"l10n_it_fatturapa_out",
"l10n_it_declaration_of_intent",
],
"data": [
"data/invoice_it_template.xml",
],
"installable": True,
"autoinstall": True,
}
63 changes: 63 additions & 0 deletions l10n_it_fatturapa_out_di/data/invoice_it_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template
id="declaration_of_intent_fattura_elettronica_body"
inherit_id="l10n_it_fatturapa_out.account_invoice_it_fattura_elettronica_body"
>
<xpath expr="//DatiBeniServizi/t[@t-as='line']" position="before">
<t t-set="force_declaration_of_intent_ids" t-value="[]" />
</xpath>
<xpath expr="//DatiBeniServizi/t[@t-as='line']" position="after">
<t
t-set="to_add"
t-value="record.declaration_of_intent_ids - record.declaration_of_intent_ids.browse(force_declaration_of_intent_ids)"
/>
<DettaglioLinee t-if="to_add">
<t t-set="line_counter" t-value="line_counter + 1" />
<NumeroLinea t-esc="line_counter" />
<Descrizione>Altre lettere d'intento</Descrizione>
<PrezzoUnitario>0.00</PrezzoUnitario>
<PrezzoTotale>0.00</PrezzoTotale>
<AliquotaIVA>0.00</AliquotaIVA>
<Natura>N1</Natura>
<AltriDatiGestionali t-foreach="to_add" t-as="dec">
<TipoDato>INTENTO</TipoDato>
<RiferimentoTesto
t-esc="encode_for_export(dec.telematic_protocol, 60)"
/>
<RiferimentoData t-esc="format_date(dec.date)" />
</AltriDatiGestionali>
</DettaglioLinee>
</xpath>
<xpath expr="//DatiBeniServizi/t[@t-as='tax_data']" position="after">
<DatiRiepilogo t-if="to_add">
<AliquotaIVA>0.00</AliquotaIVA>
<Natura>N1</Natura>
<ImponibileImporto>0.00</ImponibileImporto>
<Imposta>0.00</Imposta>
<RiferimentoNormativo>Esclusa ex. Art. 15</RiferimentoNormativo>
</DatiRiepilogo>
</xpath>
</template>
<template
id="declaration_of_intent_line_it_FatturaPA"
inherit_id="l10n_it_fatturapa_out.account_invoice_line_it_FatturaPA"
>
<xpath expr="//DettaglioLinee">
<!-- see: https://www.agenziaentrate.gov.it/portale/documents/20143/3844127/Provvedimento+del+28+ottobre+2021_Antifrode.pdf/33cec057-3e07-f618-969d-dce631777b56 -->
<AltriDatiGestionali t-if="line.force_declaration_of_intent_id">
<t
t-set="foo"
tafaRU marked this conversation as resolved.
Show resolved Hide resolved
t-value="force_declaration_of_intent_ids.append(line.force_declaration_of_intent_id.id)"
/>
<TipoDato>INTENTO</TipoDato>
<RiferimentoTesto
t-esc="encode_for_export(line.force_declaration_of_intent_id.telematic_protocol, 60)"
/>
<RiferimentoData
t-esc="format_date(line.force_declaration_of_intent_id.date)"
/>
</AltriDatiGestionali>
</xpath>
</template>
</odoo>
13 changes: 13 additions & 0 deletions l10n_it_fatturapa_out_di/i18n/l10n_it_fatturapa_out_sp.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
1 change: 1 addition & 0 deletions l10n_it_fatturapa_out_di/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Marco Colombo <https://github.com/TheMule71>
7 changes: 7 additions & 0 deletions l10n_it_fatturapa_out_di/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**Italiano**

Modulo tecnico di integrazione tra l10n_it_declaration_of_intent e l10n_it_fatturapa_out

**English**

Technical module for integrating l10n_it_declaration_of_intent and l10n_it_fatturapa_out
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading