From 775fc923756ce6b746d255c84b120307eb8230d9 Mon Sep 17 00:00:00 2001 From: SimoRubi Date: Tue, 23 Apr 2019 17:38:15 +0200 Subject: [PATCH] [MIG] l10n_it_reverse_charge: Migration to 12.0 --- l10n_it_reverse_charge/README.rst | 229 +++++--- l10n_it_reverse_charge/__init__.py | 1 - l10n_it_reverse_charge/__manifest__.py | 15 +- l10n_it_reverse_charge/data/rc_type.xml | 6 + l10n_it_reverse_charge/i18n/it.po | 178 +++--- .../i18n/l10n_it_reverse_charge.pot | 117 ++-- l10n_it_reverse_charge/models/__init__.py | 1 - .../models/account_fiscal_position.py | 1 - .../models/account_invoice.py | 29 +- .../models/account_rc_type.py | 1 - l10n_it_reverse_charge/readme/CONFIGURE.rst | 128 +++++ .../readme/CONTRIBUTORS.rst | 3 + l10n_it_reverse_charge/readme/DESCRIPTION.rst | 21 + l10n_it_reverse_charge/readme/ROADMAP.rst | 1 + .../static/description/index.html | 527 ++++++++++++++++++ ...zione.png => registro_riconciliazione.png} | Bin l10n_it_reverse_charge/tests/__init__.py | 1 - l10n_it_reverse_charge/tests/test_rc.py | 4 +- 18 files changed, 1016 insertions(+), 247 deletions(-) create mode 100644 l10n_it_reverse_charge/readme/CONFIGURE.rst create mode 100644 l10n_it_reverse_charge/readme/CONTRIBUTORS.rst create mode 100644 l10n_it_reverse_charge/readme/DESCRIPTION.rst create mode 100644 l10n_it_reverse_charge/readme/ROADMAP.rst create mode 100644 l10n_it_reverse_charge/static/description/index.html rename l10n_it_reverse_charge/static/description/{sezionale_riconciliazione.png => registro_riconciliazione.png} (100%) diff --git a/l10n_it_reverse_charge/README.rst b/l10n_it_reverse_charge/README.rst index fe74e5ce71b6..749de2309624 100644 --- a/l10n_it_reverse_charge/README.rst +++ b/l10n_it_reverse_charge/README.rst @@ -1,137 +1,232 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 +========================== +ITA - Inversione contabile +========================== -================== -Reverse Charge IVA -================== +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github + :target: https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_reverse_charge + :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-12-0/l10n-italy-12-0-l10n_it_reverse_charge + :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/12.0 + :alt: Try me on Runbot -Module to handle reverse charge IVA on supplier invoices... +|badge1| |badge2| |badge3| |badge4| |badge5| -Il modulo permette di automatizzare le registrazioni contabili derivate -dalle fatture fornitori intra UE ed extra UE mediante il reverse charge IVA. -Inoltre è automatizzata la procedura di annullamento e riapertura della fattura -fornitore. +**Italiano** -E' anche possibile utilizzare la modalità "con autofattura fornitore aggiuntiva". -Questo tipicamente è usato per i fornitori extra UE, con lo scopo di mostrare, -nel registro IVA acquisti, una fattura intestata alla propria azienda, -che verrà poi totalmente riconciliata con l'autofattura attiva, sempre intestata alla -propria azienda +Modulo per gestire l'inversione contabile (reverse charge) nelle fatture fornitore. -**NOTA**: al momento è gestito solo il metodo **Autofattura** e non quello -**Integrazione IVA**. +Il modulo permette di automatizzare le registrazioni contabili derivate dalle fatture fornitori intra UE ed extra UE mediante l'inversione contabile IVA. +Inoltre è automatizzata la procedura di annullamento e riapertura della fattura fornitore. + +È inoltre possibile utilizzare la modalità "con autofattura fornitore aggiuntiva". +Questa modalità è usata tipicamente per i fornitori extra UE per mostrare, nel registro IVA acquisti, una fattura intestata alla propria azienda (autofattura passiva). +L'autofattura passiva verrà poi totalmente riconciliata con l'autofattura attiva, anch'essa intestata alla propria azienda. + +**English** + +Module to handle reverse charge IVA in vendor bills. + +The module allows you to automate the accounting entries derived from invoices of intra-EU and extra-EU suppliers through the VAT reverse charge. +Furthermore, the vendor bill cancellation and reopening procedure is automated. + +It is also possible to use the "additional vendor self billing" mode. +This mode is typically used for non-EU suppliers to show, in the purchases VAT journal, a vendor bill addressed to your own company (self-bill). +The self-bill will then be completely reconciled with the self-invoice, which is also addressed to your own company. + +**Table of contents** + +.. contents:: + :local: Configuration ============= -To configure this module, you need to: +**Italiano** -Creare l'imposta **22% intra UE** Vendita: +Creare l'imposta **22% intra UE** - Vendite: -.. figure:: /l10n_it_reverse_charge/static/description/tax_22_v_i_ue.png - :alt: 22% intra UE Vendita +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/tax_22_v_i_ue.png + :alt: 22% intra UE - Vendite :width: 600 px -Creare l'imposta **22% intra UE** Acquisti: +Creare l'imposta **22% intra UE** - Acquisti: -.. figure:: /l10n_it_reverse_charge/static/description/tax_22_a_i_ue.png - :alt: 22% intra UE Acqisti +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/tax_22_a_i_ue.png + :alt: 22% intra UE - Acquisti :width: 600 px -Creare l'imposta **22% extra UE** Vendita: +Creare l'imposta **22% extra UE** - Vendite: -.. figure:: /l10n_it_reverse_charge/static/description/tax_22_v_e_ue.png - :alt: 22% extra UE Vendita +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/tax_22_v_e_ue.png + :alt: 22% extra UE - Vendite :width: 600 px -Creare l'imposta **22% extra UE** Acquisti: +Creare l'imposta **22% extra UE** - Acquisti: -.. figure:: /l10n_it_reverse_charge/static/description/tax_22_a_e_ue.png - :alt: 22% extra UE Acqisti +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/tax_22_a_e_ue.png + :alt: 22% extra UE - Acquisti :width: 600 px -Creare il tipo reverse charge **Intra UE (autofattura)**: +Creare il conto 'Transitorio autofatturazione': -.. figure:: /l10n_it_reverse_charge/static/description/rc_selfinvoice.png - :alt: reverse charge con Autofattura +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/temp_account_auto_inv.png + :alt: conto transitorio Autofattura :width: 600 px -Il sezionale autofattura deve essere di tipo 'vendita' +Il 'Registro pagamento autofattura' deve essere configurato con il conto 'Transitorio autofatturazione' appena creato: + +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/registro_riconciliazione.png + :alt: Registro pagamento autofattura + :width: 600 px -Creare il tipo reverse charge **Extra-EU (autofattura)** : +Modificare il tipo inversione contabile **Intra-UE (autofattura)**: -.. figure:: /l10n_it_reverse_charge/static/description/rc_selfinvoice_extra.png - :alt: reverse charge con Autofattura +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/rc_selfinvoice.png + :alt: inversione contabile con Autofattura :width: 600 px -Il 'Sezionale autofattura passiva' deve essere di tipo 'acquisto' +Il registro autofattura deve essere di tipo 'Vendita'. -Il 'Conto transitorio autofattura' va configurato come segue: +Modificare il tipo inversione contabile **Extra-UE (autofattura)**: -.. figure:: /l10n_it_reverse_charge/static/description/temp_account_auto_inv.png - :alt: conto transitorio Autofattura +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/rc_selfinvoice_extra.png + :alt: inversione contabile con Autofattura :width: 600 px -Il 'Sezionale pagamento autofattura' deve essere configurato con il 'Conto transitorio autofattura': +Il 'Registro autofattura passiva' deve essere di tipo 'Acquisto'. -.. figure:: /l10n_it_reverse_charge/static/description/sezionale_riconciliazione.png - :alt: Sezionale pagamento autofattura - :width: 600 px -Nella posizione fiscale, impostare il tipo reverse charge +Nella posizione fiscale, impostare il tipo inversione contabile: -.. figure:: /l10n_it_reverse_charge/static/description/fiscal_pos_intra.png +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/fiscal_pos_intra.png :alt: Impostazione posizioni fiscali Intra CEE :width: 600 px -.. figure:: /l10n_it_reverse_charge/static/description/fiscal_pos_extra.png +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/fiscal_pos_extra.png :alt: Impostazione posizioni fiscali Extra CEE :width: 600 px +**English** + +Create the tax **22% intra EU** - Sale: + +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/tax_22_v_i_ue.png + :alt: 22% intra UE - Sale + :width: 600 px + +Create the tax **22% intra EU** - Purchase: + +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/tax_22_a_i_ue.png + :alt: 22% intra UE - Purchase + :width: 600 px + +Create the tax **22% extra EU** - Sale: -Usage -===== +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/tax_22_v_e_ue.png + :alt: 22% extra UE - Sale + :width: 600 px + +Create the tax **22% extra EU** - Purchase: + +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/tax_22_a_e_ue.png + :alt: 22% extra UE - Purchase + :width: 600 px + +Create the account 'Self Invoice Transitory' as follows: + +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/temp_account_auto_inv.png + :alt: Self Invoice Transitory Account + :width: 600 px -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/122/10.0 +The 'Self Invoice Payment' Journal has to be configured with the just created 'Self Invoice Transitory' account: + +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/registro_riconciliazione.png + :alt: Registro pagamento autofattura + :width: 600 px + +Edit the reverse charge type **Intra-EU (self-invoice)**: + +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/rc_selfinvoice.png + :alt: reverse charge with Self Invoice + :width: 600 px + +The Self Invoice journal has to be of type 'Sale'. + +Edit the reverse charge type **Extra-EU (self-invoice)** : + +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/rc_selfinvoice_extra.png + :alt: reverse charge with Self Invoice + :width: 600 px + +The 'Supplier Self Invoice Journal' has to be of type 'Purchase'. + +In the fiscal position, set the reverse charge type: + +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/fiscal_pos_intra.png + :alt: Impostazione posizioni fiscali Intra CEE + :width: 600 px + +.. figure:: https://raw.githubusercontent.com/l10n_it_reverse_charge/static/description/fiscal_pos_extra.png + :alt: Impostazione posizioni fiscali Extra CEE + :width: 600 px + +Known issues / Roadmap +====================== + +Only the **self-invoice** method is managed, **VAT integration** method is not managed yet. Bug Tracker =========== -Bugs are tracked on `GitHub Issues -`_. In case of trouble, please -check there if your issue has already been reported. If you spotted it first, -help us smash it by providing detailed and welcomed feedback. +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= -Images ------- +Authors +~~~~~~~ -* Odoo Community Association: `Icon `_. +* Odoo Italia Network Contributors ------------- +~~~~~~~~~~~~ * Davide Corio * Alex Comba * Lorenzo Battistini `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_it_reverse_charge/__init__.py b/l10n_it_reverse_charge/__init__.py index 0d63fc7d809c..f0e81ea288d5 100644 --- a/l10n_it_reverse_charge/__init__.py +++ b/l10n_it_reverse_charge/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Davide Corio # Copyright 2017 Alex Comba - Agile Business Group # Copyright 2017 Lorenzo Battistini - Agile Business Group diff --git a/l10n_it_reverse_charge/__manifest__.py b/l10n_it_reverse_charge/__manifest__.py index 83182e68a890..b7e03f80feb6 100644 --- a/l10n_it_reverse_charge/__manifest__.py +++ b/l10n_it_reverse_charge/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Davide Corio # Copyright 2017 Alex Comba - Agile Business Group # Copyright 2017 Lorenzo Battistini - Agile Business Group @@ -6,21 +5,21 @@ # License LGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { - 'name': 'Reverse Charge IVA', - 'version': '10.0.1.1.8', + 'name': 'ITA - Inversione contabile', + 'version': '12.0.1.0.0', 'category': 'Localization/Italy', - 'summary': 'Reverse Charge for Italy', - 'author': 'Odoo Italia Network,Odoo Community Association (OCA)', + 'summary': 'Inversione contabile', + 'author': 'Odoo Italia Network, Odoo Community Association (OCA)', 'license': 'LGPL-3', - 'website': 'https://www.odoo-italia.net', + 'website': 'https://github.com/OCA/l10n-italy/tree/' + '12.0/l10n_it_reverse_charge', 'depends': [ - 'account_accountant', + 'account', 'account_cancel', ], 'data': [ 'security/ir.model.access.csv', 'data/rc_type.xml', - 'security/ir.model.access.csv', 'views/account_invoice_view.xml', 'views/account_fiscal_position_view.xml', 'views/account_rc_type_view.xml', diff --git a/l10n_it_reverse_charge/data/rc_type.xml b/l10n_it_reverse_charge/data/rc_type.xml index 9fba2cfbff96..d76161d87669 100644 --- a/l10n_it_reverse_charge/data/rc_type.xml +++ b/l10n_it_reverse_charge/data/rc_type.xml @@ -20,5 +20,11 @@ Configuration of Extra-EU trade using the self-invoice method + + Intra-EU (Self-invoice) + selfinvoice + Configuration of Intra-EU trade using the self-invoice method + + diff --git a/l10n_it_reverse_charge/i18n/it.po b/l10n_it_reverse_charge/i18n/it.po index 1ffc776a2e1f..a5dd85fbd01f 100644 --- a/l10n_it_reverse_charge/i18n/it.po +++ b/l10n_it_reverse_charge/i18n/it.po @@ -1,55 +1,51 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * l10n_it_reverse_charge +# * l10n_it_reverse_charge # -# Translators: -# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-12-08 03:45+0000\n" -"PO-Revision-Date: 2018-12-16 23:58+0000\n" -"Last-Translator: Sergio Zanchetta \n" -"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" -"Language: it\n" +"POT-Creation-Date: 2019-04-24 10:37+0000\n" +"PO-Revision-Date: 2019-04-24 10:37+0000\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: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 3.3\n" +"Plural-Forms: \n" #. module: l10n_it_reverse_charge -#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:362 +#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:361 #, python-format msgid "Can't find 1 tax mapping for %s" msgstr "Impossibile trovare una mappatura imposte per %s" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_create_uid -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_create_uid +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__create_uid +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__create_uid msgid "Created by" msgstr "Creato da" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_create_date -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_create_date +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__create_date +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__create_date msgid "Created on" msgstr "Creato il" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_description +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__description msgid "Description" msgstr "Descrizione" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_display_name -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_display_name +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__display_name +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__display_name msgid "Display Name" msgstr "Nome visualizzato" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type_tax_ids +#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type__tax_ids msgid "Example: 22_A_I_UE, 22_V_I_UE" msgstr "Esempio: 22_A_I_UE, 22_V_I_UE" @@ -59,12 +55,8 @@ msgid "Fiscal Position" msgstr "Posizione fiscale" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type_with_supplier_self_invoice -msgid "" -"Flag this to enable the creation of an additional supplier self invoice. " -"This is tipically used for extraUE suppliers, in order to show, in supplier " -"register, an invoice to the specified partner (tipically, my company), " -"instead of the extraUE partner" +#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type__with_supplier_self_invoice +msgid "Flag this to enable the creation of an additional supplier self invoice. This is tipically used for extraUE suppliers, in order to show, in supplier register, an invoice to the specified partner (tipically, my company), instead of the extraUE partner" msgstr "" "Selezionare questo per abilitare la creazione di un'addizionale autofattura " "passiva. Questo è usato tipicamente per i fornitori extra UE, per mostrare, " @@ -72,8 +64,8 @@ msgstr "" "(tipicamente, la propria azienda), invece del fornitore extra UE" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_id -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__id msgid "ID" msgstr "ID" @@ -88,62 +80,60 @@ msgid "Invoice Line" msgstr "Riga fattura" #. module: l10n_it_reverse_charge -#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:319 +#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:318 #, python-format -msgid "" -"Invoice line\n" +msgid "Invoice line\n" "%s\n" "is RC but has not tax" -msgstr "" -"La riga fattura\n" +msgstr "La riga fattura\n" "%s\n" "è RC ma non non ha imposte" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type_journal_id +#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type__journal_id msgid "Journal used on RC self invoices." msgstr "Registro usato per le autofatture RC." #. module: l10n_it_reverse_charge -#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type_supplier_journal_id +#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type__supplier_journal_id msgid "Journal used on RC supplier self invoices." msgstr "Registro usato per le autofatture fornitore in RC." #. module: l10n_it_reverse_charge -#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type_payment_journal_id +#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type__payment_journal_id msgid "Journal used to pay RC self invoices." msgstr "Registro usato per i pagamenti autofatture in RC." #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type___last_update -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax___last_update +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type____last_update +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax____last_update msgid "Last Modified on" msgstr "Ultima modifica il" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_write_uid -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_write_uid +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__write_uid +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__write_uid msgid "Last Updated by" msgstr "Ultimo aggiornamento di" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_write_date -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_write_date +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__write_date +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__write_date msgid "Last Updated on" msgstr "Ultimo aggiornamento il" #. module: l10n_it_reverse_charge -#: model:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form +#: model_terms:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form msgid "Main Informations" msgstr "Informazioni principali" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_method +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__method msgid "Method" msgstr "Metodo" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_name +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__name msgid "Name" msgstr "Nome" @@ -153,60 +143,60 @@ msgid "Other" msgstr "Altro" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type_partner_id +#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type__partner_id msgid "Partner used on RC self invoices." msgstr "Partner usato nelle autofatture in RC." #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_purchase_tax_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__purchase_tax_id msgid "Purchase Tax" msgstr "Imposta acquisti" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice_line_rc +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice_line__rc msgid "RC" msgstr "RC" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice_rc_purchase_invoice_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice__rc_purchase_invoice_id msgid "RC Purchase Invoice" msgstr "Fattura acquisto in RC" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice_rc_self_invoice_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice__rc_self_invoice_id msgid "RC Self Invoice" msgstr "Autofattura in RC" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice_rc_self_purchase_invoice_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice__rc_self_purchase_invoice_id msgid "RC Self Purchase Invoice" msgstr "Autofattura acquisto in RC" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_fiscal_position_rc_type_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_fiscal_position__rc_type_id msgid "RC Type" msgstr "Tipo RC" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_rc_type_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__rc_type_id msgid "RC type" msgstr "Tipo RC" #. module: l10n_it_reverse_charge #: model:ir.model,name:l10n_it_reverse_charge.model_account_rc_type -#: model:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form +#: model_terms:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form msgid "Reverse Charge Type" -msgstr "Tipo reverse charge" +msgstr "Tipo inversione contabile" #. module: l10n_it_reverse_charge #: model:ir.actions.act_window,name:l10n_it_reverse_charge.action_rc_type #: model:ir.ui.menu,name:l10n_it_reverse_charge.menu_action_rc_type -#: model:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_tree +#: model_terms:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_tree msgid "Reverse Charge Types" -msgstr "Tipi reverse charge" +msgstr "Tipi di inversione contabile" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_sale_tax_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__sale_tax_id msgid "Sale Tax" msgstr "Imposta vendite" @@ -216,37 +206,37 @@ msgid "Self Invoice" msgstr "Autofattura" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_journal_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__journal_id msgid "Self Invoice Journal" msgstr "Registro autofattura" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_partner_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__partner_id msgid "Self Invoice Partner" msgstr "Partner autofattura" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_partner_type +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__partner_type msgid "Self Invoice Partner Type" msgstr "Tipo partner autofattura" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_payment_journal_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__payment_journal_id msgid "Self Invoice Payment Journal" msgstr "Registro di pagamento autofattura" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_ids +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__tax_ids msgid "Self Invoice Tax Mapping" msgstr "Mappatura imposte autofattura" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_transitory_account_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__transitory_account_id msgid "Self Invoice Transitory Account" msgstr "Conto transitorio autofattura" #. module: l10n_it_reverse_charge -#: model:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form +#: model_terms:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form msgid "Self Invoicing" msgstr "Autofatturazione" @@ -256,12 +246,12 @@ msgid "Supplier" msgstr "Fornitore" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_supplier_journal_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__supplier_journal_id msgid "Supplier Self Invoice Journal" msgstr "Registro autofattura fornitore" #. module: l10n_it_reverse_charge -#: model:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form +#: model_terms:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form msgid "Tax Mapping" msgstr "Mappatura imposte" @@ -271,13 +261,11 @@ msgid "Tax Mapping for self invoices" msgstr "Mappatura imposte per autofatturazione" #. module: l10n_it_reverse_charge -#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:327 +#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:326 #, python-format -msgid "" -"Tax code used is not a RC tax.\n" +msgid "Tax code used is not a RC tax.\n" "Can't find tax mapping" -msgstr "" -"Il codice imposta utilizzato non è di tipo RC.\n" +msgstr "Il codice imposta utilizzato non è di tipo RC.\n" "Impossibile trovare la mappatura imposte" #. module: l10n_it_reverse_charge @@ -286,39 +274,33 @@ msgid "Tax mappings can be defined only once per rc type." msgstr "Una mappatura può essere definita solo una volta per ogni tipo rc." #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_self_invoice_text +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__self_invoice_text msgid "Text in Self Invoice" msgstr "Testo su autofattura" #. module: l10n_it_reverse_charge -#: model:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form +#: model_terms:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form msgid "Text on Self Invoice" msgstr "Testo su autofattura" #. module: l10n_it_reverse_charge -#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:412 +#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:416 #, python-format -msgid "" -"There are more than one payment line.\n" -"In that case account entries cannot be canceledautomatically. Please proceed " -"manually" -msgstr "" -"È presente più di una riga di pagamento.\n" -"In tal caso le registrazioni non possono essere annullate automaticamente. " -"Procedere manualmente" +msgid "There are more than one payment line.\n" +"In that case account entries cannot be canceledautomatically. Please proceed manually" +msgstr "È presente più di una riga di pagamento.\n" +"In tal caso le registrazioni non possono essere annullate automaticamente. Procedere manualmente" #. module: l10n_it_reverse_charge -#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:304 +#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:303 #, python-format -msgid "" -"There is no default credit account defined \n" +msgid "There is no default credit account defined \n" "on journal \"%s\"." -msgstr "" -"Non c'è un conto di credito di default \n" +msgstr "Non c'è un conto di credito di default \n" "sul sezionale \"%s\"." #. module: l10n_it_reverse_charge -#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type_transitory_account_id +#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type__transitory_account_id msgid "Transitory account used on self invoices." msgstr "Conto transitorio usato sulle autofatture." @@ -328,16 +310,18 @@ msgid "VAT Integration" msgstr "Integrazione IVA" #. module: l10n_it_reverse_charge -#: code:addons/l10n_it_reverse_charge/models/account_rc_type.py:90 +#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:407 #, python-format -msgid "" -"When \"With additional supplier self invoice\" you must set only one tax " -"mapping line: only 1 tax per invoice is supported" -msgstr "" -"Quando \"Con autofattura passiva aggiuntiva\" bisogna impostare una sola " -"riga di mappatura imposte: solo un'imposta per fattura è supportata" +msgid "VAT integration RC type, defined in fiscal position {fp}, is not managed yet" +msgstr "Il tipo RC Integrazione IVA, definito nella posizione fiscale {fp}, non è ancora gestito" + +#. module: l10n_it_reverse_charge +#: code:addons/l10n_it_reverse_charge/models/account_rc_type.py:89 +#, python-format +msgid "When \"With additional supplier self invoice\" you must set only one tax mapping line: only 1 tax per invoice is supported" +msgstr "Quando \"Con autofattura passiva aggiuntiva\" bisogna impostare una sola riga di mappatura imposte: solo un'imposta per fattura è supportata" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_with_supplier_self_invoice +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__with_supplier_self_invoice msgid "With additional supplier self invoice" msgstr "Con autofattura passiva aggiuntiva" diff --git a/l10n_it_reverse_charge/i18n/l10n_it_reverse_charge.pot b/l10n_it_reverse_charge/i18n/l10n_it_reverse_charge.pot index 46ef06f0116b..8dce78ec4e9a 100644 --- a/l10n_it_reverse_charge/i18n/l10n_it_reverse_charge.pot +++ b/l10n_it_reverse_charge/i18n/l10n_it_reverse_charge.pot @@ -4,8 +4,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-04-24 10:45+0000\n" +"PO-Revision-Date: 2019-04-24 10:45+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -14,36 +16,36 @@ msgstr "" "Plural-Forms: \n" #. module: l10n_it_reverse_charge -#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:362 +#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:361 #, python-format msgid "Can't find 1 tax mapping for %s" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_create_uid -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_create_uid +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__create_uid +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__create_uid msgid "Created by" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_create_date -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_create_date +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__create_date +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__create_date msgid "Created on" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_description +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__description msgid "Description" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_display_name -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_display_name +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__display_name +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__display_name msgid "Display Name" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type_tax_ids +#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type__tax_ids msgid "Example: 22_A_I_UE, 22_V_I_UE" msgstr "" @@ -53,13 +55,13 @@ msgid "Fiscal Position" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type_with_supplier_self_invoice +#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type__with_supplier_self_invoice msgid "Flag this to enable the creation of an additional supplier self invoice. This is tipically used for extraUE suppliers, in order to show, in supplier register, an invoice to the specified partner (tipically, my company), instead of the extraUE partner" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_id -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__id msgid "ID" msgstr "" @@ -74,7 +76,7 @@ msgid "Invoice Line" msgstr "" #. module: l10n_it_reverse_charge -#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:319 +#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:318 #, python-format msgid "Invoice line\n" "%s\n" @@ -82,50 +84,50 @@ msgid "Invoice line\n" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type_journal_id +#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type__journal_id msgid "Journal used on RC self invoices." msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type_supplier_journal_id +#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type__supplier_journal_id msgid "Journal used on RC supplier self invoices." msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type_payment_journal_id +#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type__payment_journal_id msgid "Journal used to pay RC self invoices." msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type___last_update -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax___last_update +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type____last_update +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax____last_update msgid "Last Modified on" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_write_uid -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_write_uid +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__write_uid +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__write_uid msgid "Last Updated by" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_write_date -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_write_date +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__write_date +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__write_date msgid "Last Updated on" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form +#: model_terms:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form msgid "Main Informations" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_method +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__method msgid "Method" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_name +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__name msgid "Name" msgstr "" @@ -135,60 +137,60 @@ msgid "Other" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type_partner_id +#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type__partner_id msgid "Partner used on RC self invoices." msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_purchase_tax_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__purchase_tax_id msgid "Purchase Tax" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice_line_rc +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice_line__rc msgid "RC" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice_rc_purchase_invoice_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice__rc_purchase_invoice_id msgid "RC Purchase Invoice" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice_rc_self_invoice_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice__rc_self_invoice_id msgid "RC Self Invoice" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice_rc_self_purchase_invoice_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_invoice__rc_self_purchase_invoice_id msgid "RC Self Purchase Invoice" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_fiscal_position_rc_type_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_fiscal_position__rc_type_id msgid "RC Type" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_rc_type_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__rc_type_id msgid "RC type" msgstr "" #. module: l10n_it_reverse_charge #: model:ir.model,name:l10n_it_reverse_charge.model_account_rc_type -#: model:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form +#: model_terms:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form msgid "Reverse Charge Type" msgstr "" #. module: l10n_it_reverse_charge #: model:ir.actions.act_window,name:l10n_it_reverse_charge.action_rc_type #: model:ir.ui.menu,name:l10n_it_reverse_charge.menu_action_rc_type -#: model:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_tree +#: model_terms:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_tree msgid "Reverse Charge Types" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_sale_tax_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax__sale_tax_id msgid "Sale Tax" msgstr "" @@ -198,37 +200,37 @@ msgid "Self Invoice" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_journal_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__journal_id msgid "Self Invoice Journal" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_partner_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__partner_id msgid "Self Invoice Partner" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_partner_type +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__partner_type msgid "Self Invoice Partner Type" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_payment_journal_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__payment_journal_id msgid "Self Invoice Payment Journal" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_tax_ids +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__tax_ids msgid "Self Invoice Tax Mapping" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_transitory_account_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__transitory_account_id msgid "Self Invoice Transitory Account" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form +#: model_terms:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form msgid "Self Invoicing" msgstr "" @@ -238,12 +240,12 @@ msgid "Supplier" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_supplier_journal_id +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__supplier_journal_id msgid "Supplier Self Invoice Journal" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form +#: model_terms:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form msgid "Tax Mapping" msgstr "" @@ -253,7 +255,7 @@ msgid "Tax Mapping for self invoices" msgstr "" #. module: l10n_it_reverse_charge -#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:327 +#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:326 #, python-format msgid "Tax code used is not a RC tax.\n" "Can't find tax mapping" @@ -265,31 +267,31 @@ msgid "Tax mappings can be defined only once per rc type." msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_self_invoice_text +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__self_invoice_text msgid "Text in Self Invoice" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form +#: model_terms:ir.ui.view,arch_db:l10n_it_reverse_charge.view_rc_type_form msgid "Text on Self Invoice" msgstr "" #. module: l10n_it_reverse_charge -#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:412 +#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:416 #, python-format msgid "There are more than one payment line.\n" "In that case account entries cannot be canceledautomatically. Please proceed manually" msgstr "" #. module: l10n_it_reverse_charge -#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:304 +#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:303 #, python-format msgid "There is no default credit account defined \n" "on journal \"%s\"." msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type_transitory_account_id +#: model:ir.model.fields,help:l10n_it_reverse_charge.field_account_rc_type__transitory_account_id msgid "Transitory account used on self invoices." msgstr "" @@ -299,13 +301,18 @@ msgid "VAT Integration" msgstr "" #. module: l10n_it_reverse_charge -#: code:addons/l10n_it_reverse_charge/models/account_rc_type.py:90 +#: code:addons/l10n_it_reverse_charge/models/account_invoice.py:407 +#, python-format +msgid "VAT integration RC type, defined in fiscal position {fp}, is not managed yet" +msgstr "" + +#. module: l10n_it_reverse_charge +#: code:addons/l10n_it_reverse_charge/models/account_rc_type.py:89 #, python-format msgid "When \"With additional supplier self invoice\" you must set only one tax mapping line: only 1 tax per invoice is supported" msgstr "" #. module: l10n_it_reverse_charge -#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type_with_supplier_self_invoice +#: model:ir.model.fields,field_description:l10n_it_reverse_charge.field_account_rc_type__with_supplier_self_invoice msgid "With additional supplier self invoice" msgstr "" - diff --git a/l10n_it_reverse_charge/models/__init__.py b/l10n_it_reverse_charge/models/__init__.py index cddb669c18b2..2e574604a3ba 100644 --- a/l10n_it_reverse_charge/models/__init__.py +++ b/l10n_it_reverse_charge/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Davide Corio # Copyright 2017 Alex Comba - Agile Business Group # Copyright 2017 Lorenzo Battistini - Agile Business Group diff --git a/l10n_it_reverse_charge/models/account_fiscal_position.py b/l10n_it_reverse_charge/models/account_fiscal_position.py index e6eeebcdf0c2..0c26e6792c9f 100644 --- a/l10n_it_reverse_charge/models/account_fiscal_position.py +++ b/l10n_it_reverse_charge/models/account_fiscal_position.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 Davide Corio # Copyright 2017 Alex Comba - Agile Business Group # Copyright 2017 Lorenzo Battistini - Agile Business Group diff --git a/l10n_it_reverse_charge/models/account_invoice.py b/l10n_it_reverse_charge/models/account_invoice.py index 02e366e33276..4f89fb300902 100644 --- a/l10n_it_reverse_charge/models/account_invoice.py +++ b/l10n_it_reverse_charge/models/account_invoice.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 Davide Corio # Copyright 2017 Alex Comba - Agile Business Group # Copyright 2017 Lorenzo Battistini - Agile Business Group @@ -390,18 +389,24 @@ def generate_supplier_self_invoice(self): @api.multi def invoice_validate(self): - self.ensure_one() res = super(AccountInvoice, self).invoice_validate() - fp = self.fiscal_position_id - rc_type = fp and fp.rc_type_id - if rc_type and rc_type.method == 'selfinvoice'\ - and self.amount_total: - if not rc_type.with_supplier_self_invoice: - self.generate_self_invoice() - else: - # See with_supplier_self_invoice field help - self.generate_supplier_self_invoice() - self.rc_self_purchase_invoice_id.generate_self_invoice() + for invoice in self: + fp = invoice.fiscal_position_id + rc_type = fp and fp.rc_type_id + if not rc_type: + continue + if rc_type.method == 'selfinvoice' and invoice.amount_total: + if not rc_type.with_supplier_self_invoice: + invoice.generate_self_invoice() + else: + # See with_supplier_self_invoice field help + invoice.generate_supplier_self_invoice() + invoice.rc_self_purchase_invoice_id.generate_self_invoice() + elif rc_type.method == 'integration': + raise UserError( + _("VAT integration RC type, " + "defined in fiscal position {fp}, is not managed yet") + .format(fp=fp.display_name)) return res def remove_rc_payment(self): diff --git a/l10n_it_reverse_charge/models/account_rc_type.py b/l10n_it_reverse_charge/models/account_rc_type.py index 3b15354c7031..28247105d431 100644 --- a/l10n_it_reverse_charge/models/account_rc_type.py +++ b/l10n_it_reverse_charge/models/account_rc_type.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2016 Davide Corio # Copyright 2017 Alex Comba - Agile Business Group # Copyright 2017 Lorenzo Battistini - Agile Business Group diff --git a/l10n_it_reverse_charge/readme/CONFIGURE.rst b/l10n_it_reverse_charge/readme/CONFIGURE.rst new file mode 100644 index 000000000000..397599a31e8e --- /dev/null +++ b/l10n_it_reverse_charge/readme/CONFIGURE.rst @@ -0,0 +1,128 @@ +**Italiano** + +Creare l'imposta **22% intra UE** - Vendite: + +.. figure:: /l10n_it_reverse_charge/static/description/tax_22_v_i_ue.png + :alt: 22% intra UE - Vendite + :width: 600 px + +Creare l'imposta **22% intra UE** - Acquisti: + +.. figure:: /l10n_it_reverse_charge/static/description/tax_22_a_i_ue.png + :alt: 22% intra UE - Acquisti + :width: 600 px + +Creare l'imposta **22% extra UE** - Vendite: + +.. figure:: /l10n_it_reverse_charge/static/description/tax_22_v_e_ue.png + :alt: 22% extra UE - Vendite + :width: 600 px + +Creare l'imposta **22% extra UE** - Acquisti: + +.. figure:: /l10n_it_reverse_charge/static/description/tax_22_a_e_ue.png + :alt: 22% extra UE - Acquisti + :width: 600 px + +Creare il conto 'Transitorio autofatturazione': + +.. figure:: /l10n_it_reverse_charge/static/description/temp_account_auto_inv.png + :alt: conto transitorio Autofattura + :width: 600 px + +Il 'Registro pagamento autofattura' deve essere configurato con il conto 'Transitorio autofatturazione' appena creato: + +.. figure:: /l10n_it_reverse_charge/static/description/registro_riconciliazione.png + :alt: Registro pagamento autofattura + :width: 600 px + +Modificare il tipo inversione contabile **Intra-UE (autofattura)**: + +.. figure:: /l10n_it_reverse_charge/static/description/rc_selfinvoice.png + :alt: inversione contabile con Autofattura + :width: 600 px + +Il registro autofattura deve essere di tipo 'Vendita'. + +Modificare il tipo inversione contabile **Extra-UE (autofattura)**: + +.. figure:: /l10n_it_reverse_charge/static/description/rc_selfinvoice_extra.png + :alt: inversione contabile con Autofattura + :width: 600 px + +Il 'Registro autofattura passiva' deve essere di tipo 'Acquisto'. + + +Nella posizione fiscale, impostare il tipo inversione contabile: + +.. figure:: /l10n_it_reverse_charge/static/description/fiscal_pos_intra.png + :alt: Impostazione posizioni fiscali Intra CEE + :width: 600 px + +.. figure:: /l10n_it_reverse_charge/static/description/fiscal_pos_extra.png + :alt: Impostazione posizioni fiscali Extra CEE + :width: 600 px + +**English** + +Create the tax **22% intra EU** - Sale: + +.. figure:: /l10n_it_reverse_charge/static/description/tax_22_v_i_ue.png + :alt: 22% intra UE - Sale + :width: 600 px + +Create the tax **22% intra EU** - Purchase: + +.. figure:: /l10n_it_reverse_charge/static/description/tax_22_a_i_ue.png + :alt: 22% intra UE - Purchase + :width: 600 px + +Create the tax **22% extra EU** - Sale: + +.. figure:: /l10n_it_reverse_charge/static/description/tax_22_v_e_ue.png + :alt: 22% extra UE - Sale + :width: 600 px + +Create the tax **22% extra EU** - Purchase: + +.. figure:: /l10n_it_reverse_charge/static/description/tax_22_a_e_ue.png + :alt: 22% extra UE - Purchase + :width: 600 px + +Create the account 'Self Invoice Transitory' as follows: + +.. figure:: /l10n_it_reverse_charge/static/description/temp_account_auto_inv.png + :alt: Self Invoice Transitory Account + :width: 600 px + +The 'Self Invoice Payment' Journal has to be configured with the just created 'Self Invoice Transitory' account: + +.. figure:: /l10n_it_reverse_charge/static/description/registro_riconciliazione.png + :alt: Registro pagamento autofattura + :width: 600 px + +Edit the reverse charge type **Intra-EU (self-invoice)**: + +.. figure:: /l10n_it_reverse_charge/static/description/rc_selfinvoice.png + :alt: reverse charge with Self Invoice + :width: 600 px + +The Self Invoice journal has to be of type 'Sale'. + +Edit the reverse charge type **Extra-EU (self-invoice)** : + +.. figure:: /l10n_it_reverse_charge/static/description/rc_selfinvoice_extra.png + :alt: reverse charge with Self Invoice + :width: 600 px + +The 'Supplier Self Invoice Journal' has to be of type 'Purchase'. + +In the fiscal position, set the reverse charge type: + +.. figure:: /l10n_it_reverse_charge/static/description/fiscal_pos_intra.png + :alt: Impostazione posizioni fiscali Intra CEE + :width: 600 px + +.. figure:: /l10n_it_reverse_charge/static/description/fiscal_pos_extra.png + :alt: Impostazione posizioni fiscali Extra CEE + :width: 600 px diff --git a/l10n_it_reverse_charge/readme/CONTRIBUTORS.rst b/l10n_it_reverse_charge/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..7f152fa0d7d9 --- /dev/null +++ b/l10n_it_reverse_charge/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Davide Corio +* Alex Comba +* Lorenzo Battistini + + + + + +ITA - Inversione contabile + + + +
+

ITA - Inversione contabile

+ + +

Beta License: LGPL-3 OCA/l10n-italy Translate me on Weblate Try me on Runbot

+

Italiano

+

Modulo per gestire l’inversione contabile (reverse charge) nelle fatture fornitore.

+

Il modulo permette di automatizzare le registrazioni contabili derivate dalle fatture fornitori intra UE ed extra UE mediante l’inversione contabile IVA. +Inoltre è automatizzata la procedura di annullamento e riapertura della fattura fornitore.

+

È inoltre possibile utilizzare la modalità “con autofattura fornitore aggiuntiva”. +Questa modalità è usata tipicamente per i fornitori extra UE per mostrare, nel registro IVA acquisti, una fattura intestata alla propria azienda (autofattura passiva). +L’autofattura passiva verrà poi totalmente riconciliata con l’autofattura attiva, anch’essa intestata alla propria azienda.

+

English

+

Module to handle reverse charge IVA in vendor bills.

+

The module allows you to automate the accounting entries derived from invoices of intra-EU and extra-EU suppliers through the VAT reverse charge. +Furthermore, the vendor bill cancellation and reopening procedure is automated.

+

It is also possible to use the “additional vendor self billing” mode. +This mode is typically used for non-EU suppliers to show, in the purchases VAT journal, a vendor bill addressed to your own company (self-bill). +The self-bill will then be completely reconciled with the self-invoice, which is also addressed to your own company.

+

Table of contents

+ +
+

Configuration

+

Italiano

+

Creare l’imposta 22% intra UE - Vendite:

+
+22% intra UE - Vendite +
+

Creare l’imposta 22% intra UE - Acquisti:

+
+22% intra UE - Acquisti +
+

Creare l’imposta 22% extra UE - Vendite:

+
+22% extra UE - Vendite +
+

Creare l’imposta 22% extra UE - Acquisti:

+
+22% extra UE - Acquisti +
+

Creare il conto ‘Transitorio autofatturazione’:

+
+conto transitorio Autofattura +
+

Il ‘Registro pagamento autofattura’ deve essere configurato con il conto ‘Transitorio autofatturazione’ appena creato:

+
+Registro pagamento autofattura +
+

Modificare il tipo inversione contabile Intra-UE (autofattura):

+
+inversione contabile con Autofattura +
+

Il registro autofattura deve essere di tipo ‘Vendita’.

+

Modificare il tipo inversione contabile Extra-UE (autofattura):

+
+inversione contabile con Autofattura +
+

Il ‘Registro autofattura passiva’ deve essere di tipo ‘Acquisto’.

+

Nella posizione fiscale, impostare il tipo inversione contabile:

+
+Impostazione posizioni fiscali Intra CEE +
+
+Impostazione posizioni fiscali Extra CEE +
+

English

+

Create the tax 22% intra EU - Sale:

+
+22% intra UE - Sale +
+

Create the tax 22% intra EU - Purchase:

+
+22% intra UE - Purchase +
+

Create the tax 22% extra EU - Sale:

+
+22% extra UE - Sale +
+

Create the tax 22% extra EU - Purchase:

+
+22% extra UE - Purchase +
+

Create the account ‘Self Invoice Transitory’ as follows:

+
+Self Invoice Transitory Account +
+

The ‘Self Invoice Payment’ Journal has to be configured with the just created ‘Self Invoice Transitory’ account:

+
+Registro pagamento autofattura +
+

Edit the reverse charge type Intra-EU (self-invoice):

+
+reverse charge with Self Invoice +
+

The Self Invoice journal has to be of type ‘Sale’.

+

Edit the reverse charge type Extra-EU (self-invoice) :

+
+reverse charge with Self Invoice +
+

The ‘Supplier Self Invoice Journal’ has to be of type ‘Purchase’.

+

In the fiscal position, set the reverse charge type:

+
+Impostazione posizioni fiscali Intra CEE +
+
+Impostazione posizioni fiscali Extra CEE +
+
+
+

Known issues / Roadmap

+

Only the self-invoice method is managed, VAT integration method is not managed yet.

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Odoo Italia Network
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/l10n_it_reverse_charge/static/description/sezionale_riconciliazione.png b/l10n_it_reverse_charge/static/description/registro_riconciliazione.png similarity index 100% rename from l10n_it_reverse_charge/static/description/sezionale_riconciliazione.png rename to l10n_it_reverse_charge/static/description/registro_riconciliazione.png diff --git a/l10n_it_reverse_charge/tests/__init__.py b/l10n_it_reverse_charge/tests/__init__.py index ce1e7e8ec806..0bbf88181787 100644 --- a/l10n_it_reverse_charge/tests/__init__.py +++ b/l10n_it_reverse_charge/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from . import test_rc diff --git a/l10n_it_reverse_charge/tests/test_rc.py b/l10n_it_reverse_charge/tests/test_rc.py index 1957f0ddd5e6..cabaea2dcb44 100644 --- a/l10n_it_reverse_charge/tests/test_rc.py +++ b/l10n_it_reverse_charge/tests/test_rc.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2018 Simone Rubino - Agile Business Group # Copyright 2019 Alex Comba - Agile Business Group # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). @@ -402,8 +401,7 @@ def test_intra_EU_cancel_and_draft(self): invoice.action_invoice_open() - self.env['account.journal'].search( - [('name', '=', 'Customer Invoices')]).update_posted = True + invoice.journal_id.update_posted = True invoice.action_cancel() self.assertEqual(invoice.state, 'cancel') invoice.action_invoice_draft()