diff --git a/l10n_it_appointment_code/README.rst b/l10n_it_appointment_code/README.rst new file mode 100644 index 000000000000..f11ef88a2940 --- /dev/null +++ b/l10n_it_appointment_code/README.rst @@ -0,0 +1,233 @@ +=================== +ITA - Codici carica +=================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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/14.0/l10n_it_appointment_code + :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_appointment_code + :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** + +Tabella dei codici carica da usare nelle dichiarazioni fiscali italiane. + +**English** + +Table of appointment codes to use into italian Tax returns. + +**Table of contents** + +.. contents:: + :local: + +Installation +============ + +**Italiano** + +Qualora questo modulo venisse installato in un DB dove ``l10n_it_codici_carica`` è già installato, è necessario eseguire la seguente procedura. + +#. Installare ``openupgradelib``: + + .. code:: + + pip3 install git+https://github.com/OCA/openupgradelib.git@master + +#. Lanciare Odoo con il paramentro ``shell`` +#. Eseguire i seguenti comandi: + + .. code:: python + + >>> from openupgradelib import openupgrade + >>> openupgrade.rename_xmlids( + env.cr, + [ + ( + "l10n_it_codici_carica.view_codice_carica_tree", + "l10n_it_appointment_code.view_appointment_code_tree", + ), + ( + "l10n_it_codici_carica.view_codice_carica_form", + "l10n_it_appointment_code.view_appointment_code_form", + ), + ( + "l10n_it_codici_carica.action_codice_carica", + "l10n_it_appointment_code.action_appointment_code", + ), + ( + "l10n_it_codici_carica.menu_codice_carica", + "l10n_it_appointment_code.menu_appointment_code", + ), + ], + ) + >>> openupgrade.update_module_names( + env.cr, + [ + ("l10n_it_codici_carica", "l10n_it_appointment_code"), + ], + ) + >>> openupgrade.rename_models( + env.cr, + [ + ("codice.carica", "appointment.code"), + ], + ) + >>> openupgrade.rename_tables( + env.cr, + [ + ("codice_carica", "appointment_code"), + ], + ) + >>> env.cr.commit() + +#. Riavviare Odoo +#. Aggiornare ``l10n_it_appointment_code`` + +**English** + +When ``l10n_it_codici_carica`` is installed in the database you need to follow the following steps. + +1. Install ``openupgradelib``: + + .. code:: + + pip3 install git+https://github.com/OCA/openupgradelib.git@master + +2. Run Odoo with the ``shell`` command +3. Execute the following commands: + + .. code:: python + + >>> from openupgradelib import openupgrade + >>> openupgrade.rename_xmlids( + env.cr, + [ + ( + "l10n_it_codici_carica.view_codice_carica_tree", + "l10n_it_appointment_code.view_appointment_code_tree", + ), + ( + "l10n_it_codici_carica.view_codice_carica_form", + "l10n_it_appointment_code.view_appointment_code_form", + ), + ( + "l10n_it_codici_carica.action_codice_carica", + "l10n_it_appointment_code.action_appointment_code", + ), + ( + "l10n_it_codici_carica.menu_codice_carica", + "l10n_it_appointment_code.menu_appointment_code", + ), + ], + ) + >>> openupgrade.update_module_names( + env.cr, + [ + ("l10n_it_codici_carica", "l10n_it_appointment_code"), + ], + ) + >>> openupgrade.rename_models( + env.cr, + [ + ("codice.carica", "appointment.code"), + ], + ) + >>> openupgrade.rename_tables( + env.cr, + [ + ("codice_carica", "appointment_code"), + ], + ) + >>> env.cr.commit() + +4. Restart Odoo +5. Update ``l10n_it_appointment_code`` module + +Configuration +============= + +**Italiano** + +La tabella viene aggiunta nell'area *Fatturazione*, ed è raggiungibile nella +sezione *Configurazione*. Occorre avere i privilegi di *Responsabile fatturazione*. + +**English** + +Table is inserted on *Invoicing* and can be reached in the configuration. +Billing Manager privileges are needed. + +Usage +===== + +**Italiano** + +Installando il modulo vengono precaricati i codici disponibili. +È possibile aggiungere nuovi codici o modificare quelli esistenti. +Non è possibile avere più di un elemento con lo stesso codice. + +**English** + +Available codes are preloaded on module installation. +The existing codes can be modified or new ones can be added. +It is not possible to have more than one element with the same code. + +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 +~~~~~~~ + +* Openforce di Camilli Alessandro + +Contributors +~~~~~~~~~~~~ + +* Alessandro Camilli +* Gianmarco Conte +* Stefano Consolaro +* Alex Comba + +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 `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_it_appointment_code/__init__.py b/l10n_it_appointment_code/__init__.py new file mode 100644 index 000000000000..0650744f6bc6 --- /dev/null +++ b/l10n_it_appointment_code/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_it_appointment_code/__manifest__.py b/l10n_it_appointment_code/__manifest__.py new file mode 100644 index 000000000000..803c15b4bb71 --- /dev/null +++ b/l10n_it_appointment_code/__manifest__.py @@ -0,0 +1,22 @@ +# © 2017 Alessandro Camilli - Openforce +# Copyright 2019 Stefano Consolaro (Associazione PNLUG - Gruppo Odoo) +# Copyright 2021 Alex Comba - Agile Business Group +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). + +{ + "name": "ITA - Codici carica", + "version": "14.0.1.0.0", + "category": "Localization/Italy", + "summary": "Aggiunge la tabella dei codici carica da usare nelle dichiarazioni" + " fiscali italiane", + "author": "Openforce di Camilli Alessandro, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/l10n-italy", + "license": "LGPL-3", + "depends": ["account"], + "data": [ + "security/ir.model.access.csv", + "data/appointment_code_data.xml", + "views/appointment_code_view.xml", + ], + "installable": True, +} diff --git a/l10n_it_appointment_code/data/appointment_code_data.xml b/l10n_it_appointment_code/data/appointment_code_data.xml new file mode 100644 index 000000000000..35c5d6c10001 --- /dev/null +++ b/l10n_it_appointment_code/data/appointment_code_data.xml @@ -0,0 +1,84 @@ + + + + 1 + Rappresentante legale, negoziale o di fatto, socio + amministratore + + + 2 + Rappresentante di minore, inabilitato o interdetto, + amministratore di sostegno, ovvero curatore dell’eredità giacente, + amministratore di eredità devoluta sotto condizione sospensiva o in + favore di nascituro non ancora concepito + + + 3 + Curatore fallimentare + + + 4 + Commissario liquidatore (liquidazione coatta + amministrativa ovvero amministrazione straordinaria) + + + 5 + Custode giudiziario (custodia giudiziaria), ovvero + amministratore giudiziario in qualità di rappresentante dei beni + sequestrati ovvero commissario giudiziale (amministrazione + controllata) + + + 6 + Rappresentante fiscale di soggetto non residente + + + 7 + Erede + + + 8 + Liquidatore (liquidazione volontaria) + + + 9 + Soggetto tenuto a presentare la dichiarazione ai fini + IVA per conto del soggetto estinto a seguito di operazioni + straordinarie o altre trasformazioni sostanziali soggettive + (cessionario d’azienda, società beneficiaria, incorporante, + conferitaria, ecc.); ovvero, ai fini delle imposte sui redditi, + rappresentante della società beneficiaria (scissione) o della società + risultante dalla fusione o incorporazione + + + 10 + Rappresentante fiscale di soggetto non residente con + le limitazioni di cui all’art. 44, comma 3, del D.L. n. 331/1993 + + + 11 + Soggetto esercente l’attività tutoria del minore o + interdetto in relazione alla funzione istituzionale rivestita + + + 12 + Liquidatore (liquidazione volontaria di ditta + individuale - periodo ante messa in liquidazione) + + + 13 + Amministratore di condominio + + + 14 + Soggetto che sottoscrive la dichiarazione per conto + di una pubblica amministrazione + + + 15 + Commissario liquidatore di una pubblica + amministrazione + + + + diff --git a/l10n_it_appointment_code/i18n/it.po b/l10n_it_appointment_code/i18n/it.po new file mode 100644 index 000000000000..9cbb824b80e7 --- /dev/null +++ b/l10n_it_appointment_code/i18n/it.po @@ -0,0 +1,83 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_it_appointment_code +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-04-14 08:52+0000\n" +"PO-Revision-Date: 2021-04-14 10:55+0200\n" +"Last-Translator: Alex Comba \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"Language: it\n" +"X-Generator: Poedit 2.3\n" + +#. module: l10n_it_appointment_code +#: model:ir.model,name:l10n_it_appointment_code.model_appointment_code +#: model_terms:ir.ui.view,arch_db:l10n_it_appointment_code.view_appointment_code_tree +#: model_terms:ir.ui.view,arch_db:l10n_it_appointment_code.view_codice_carica_form +msgid "Appointment Code" +msgstr "Codice carica" + +#. module: l10n_it_appointment_code +#: model:ir.actions.act_window,name:l10n_it_appointment_code.action_appointment_code +#: model:ir.ui.menu,name:l10n_it_appointment_code.menu_codice_carica +msgid "Appointment Codes" +msgstr "Codici carica" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__code +msgid "Code" +msgstr "Codice" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__create_uid +msgid "Created by" +msgstr "Creato da" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__create_date +msgid "Created on" +msgstr "Creato il" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__id +msgid "ID" +msgstr "ID" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__write_uid +msgid "Last Updated by" +msgstr "Ultimo aggiornamento di" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__write_date +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__name +msgid "Name" +msgstr "Nome" + +#. module: l10n_it_appointment_code +#: code:addons/l10n-italy/l10n_it_appointment_code/models/appointment_code.py:0 +#: code:addons/l10n_it_appointment_code/models/appointment_code.py:0 +#, python-format +msgid "The element with code %s already exists" +msgstr "L'elemento con codice %s esiste già" diff --git a/l10n_it_appointment_code/i18n/l10n_it_appointment_code.pot b/l10n_it_appointment_code/i18n/l10n_it_appointment_code.pot new file mode 100644 index 000000000000..b50cbb9a7e8b --- /dev/null +++ b/l10n_it_appointment_code/i18n/l10n_it_appointment_code.pot @@ -0,0 +1,78 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_it_appointment_code +# +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" + +#. module: l10n_it_appointment_code +#: model:ir.model,name:l10n_it_appointment_code.model_appointment_code +#: model_terms:ir.ui.view,arch_db:l10n_it_appointment_code.view_appointment_code_form +#: model_terms:ir.ui.view,arch_db:l10n_it_appointment_code.view_appointment_code_tree +msgid "Appointment Code" +msgstr "" + +#. module: l10n_it_appointment_code +#: model:ir.actions.act_window,name:l10n_it_appointment_code.action_appointment_code +#: model:ir.ui.menu,name:l10n_it_appointment_code.menu_appointment_code +msgid "Appointment Codes" +msgstr "" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__code +msgid "Code" +msgstr "" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__create_uid +msgid "Created by" +msgstr "" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__create_date +msgid "Created on" +msgstr "" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__display_name +msgid "Display Name" +msgstr "" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__id +msgid "ID" +msgstr "" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code____last_update +msgid "Last Modified on" +msgstr "" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__write_date +msgid "Last Updated on" +msgstr "" + +#. module: l10n_it_appointment_code +#: model:ir.model.fields,field_description:l10n_it_appointment_code.field_appointment_code__name +msgid "Name" +msgstr "" + +#. module: l10n_it_appointment_code +#: code:addons/l10n_it_appointment_code/models/appointment_code.py:0 +#, python-format +msgid "The element with code %s already exists" +msgstr "" diff --git a/l10n_it_appointment_code/models/__init__.py b/l10n_it_appointment_code/models/__init__.py new file mode 100644 index 000000000000..dde610a685a4 --- /dev/null +++ b/l10n_it_appointment_code/models/__init__.py @@ -0,0 +1 @@ +from . import appointment_code diff --git a/l10n_it_appointment_code/models/appointment_code.py b/l10n_it_appointment_code/models/appointment_code.py new file mode 100644 index 000000000000..5fb7d860b519 --- /dev/null +++ b/l10n_it_appointment_code/models/appointment_code.py @@ -0,0 +1,24 @@ +# Copyright 2017 Alessandro Camilli - Openforce +# Copyright 2019 Stefano Consolaro (Associazione PNLUG - Gruppo Odoo) +# Copyright 2021 Alex Comba - Agile Business Group + +from odoo import _, api, fields, models +from odoo.exceptions import ValidationError + + +class AppointmentCode(models.Model): + _name = "appointment.code" + _description = "Appointment Code" + + @api.constrains("code") + def _check_code(self): + for appointment_code in self: + domain = [("code", "=", appointment_code.code)] + elements = self.search(domain) + if len(elements) > 1: + raise ValidationError( + _("The element with code %s already exists") % appointment_code.code + ) + + code = fields.Char() + name = fields.Char() diff --git a/l10n_it_appointment_code/readme/CONFIGURE.rst b/l10n_it_appointment_code/readme/CONFIGURE.rst new file mode 100644 index 000000000000..eab84b9888bd --- /dev/null +++ b/l10n_it_appointment_code/readme/CONFIGURE.rst @@ -0,0 +1,9 @@ +**Italiano** + +La tabella viene aggiunta nell'area *Fatturazione*, ed è raggiungibile nella +sezione *Configurazione*. Occorre avere i privilegi di *Responsabile fatturazione*. + +**English** + +Table is inserted on *Invoicing* and can be reached in the configuration. +Billing Manager privileges are needed. diff --git a/l10n_it_appointment_code/readme/CONTRIBUTORS.rst b/l10n_it_appointment_code/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..d3934fb07443 --- /dev/null +++ b/l10n_it_appointment_code/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* Alessandro Camilli +* Gianmarco Conte +* Stefano Consolaro +* Alex Comba diff --git a/l10n_it_appointment_code/readme/DESCRIPTION.rst b/l10n_it_appointment_code/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..193b2aa15387 --- /dev/null +++ b/l10n_it_appointment_code/readme/DESCRIPTION.rst @@ -0,0 +1,7 @@ +**Italiano** + +Tabella dei codici carica da usare nelle dichiarazioni fiscali italiane. + +**English** + +Table of appointment codes to use into italian Tax returns. diff --git a/l10n_it_appointment_code/readme/INSTALL.rst b/l10n_it_appointment_code/readme/INSTALL.rst new file mode 100644 index 000000000000..9e2ce8537fa8 --- /dev/null +++ b/l10n_it_appointment_code/readme/INSTALL.rst @@ -0,0 +1,119 @@ +**Italiano** + +Qualora questo modulo venisse installato in un DB dove ``l10n_it_codici_carica`` è già installato, è necessario eseguire la seguente procedura. + +#. Installare ``openupgradelib``: + + .. code:: + + pip3 install git+https://github.com/OCA/openupgradelib.git@master + +#. Lanciare Odoo con il paramentro ``shell`` +#. Eseguire i seguenti comandi: + + .. code:: python + + >>> from openupgradelib import openupgrade + >>> openupgrade.rename_xmlids( + env.cr, + [ + ( + "l10n_it_codici_carica.view_codice_carica_tree", + "l10n_it_appointment_code.view_appointment_code_tree", + ), + ( + "l10n_it_codici_carica.view_codice_carica_form", + "l10n_it_appointment_code.view_appointment_code_form", + ), + ( + "l10n_it_codici_carica.action_codice_carica", + "l10n_it_appointment_code.action_appointment_code", + ), + ( + "l10n_it_codici_carica.menu_codice_carica", + "l10n_it_appointment_code.menu_appointment_code", + ), + ], + ) + >>> openupgrade.update_module_names( + env.cr, + [ + ("l10n_it_codici_carica", "l10n_it_appointment_code"), + ], + ) + >>> openupgrade.rename_models( + env.cr, + [ + ("codice.carica", "appointment.code"), + ], + ) + >>> openupgrade.rename_tables( + env.cr, + [ + ("codice_carica", "appointment_code"), + ], + ) + >>> env.cr.commit() + +#. Riavviare Odoo +#. Aggiornare ``l10n_it_appointment_code`` + +**English** + +When ``l10n_it_codici_carica`` is installed in the database you need to follow the following steps. + +1. Install ``openupgradelib``: + + .. code:: + + pip3 install git+https://github.com/OCA/openupgradelib.git@master + +2. Run Odoo with the ``shell`` command +3. Execute the following commands: + + .. code:: python + + >>> from openupgradelib import openupgrade + >>> openupgrade.rename_xmlids( + env.cr, + [ + ( + "l10n_it_codici_carica.view_codice_carica_tree", + "l10n_it_appointment_code.view_appointment_code_tree", + ), + ( + "l10n_it_codici_carica.view_codice_carica_form", + "l10n_it_appointment_code.view_appointment_code_form", + ), + ( + "l10n_it_codici_carica.action_codice_carica", + "l10n_it_appointment_code.action_appointment_code", + ), + ( + "l10n_it_codici_carica.menu_codice_carica", + "l10n_it_appointment_code.menu_appointment_code", + ), + ], + ) + >>> openupgrade.update_module_names( + env.cr, + [ + ("l10n_it_codici_carica", "l10n_it_appointment_code"), + ], + ) + >>> openupgrade.rename_models( + env.cr, + [ + ("codice.carica", "appointment.code"), + ], + ) + >>> openupgrade.rename_tables( + env.cr, + [ + ("codice_carica", "appointment_code"), + ], + ) + >>> env.cr.commit() + +4. Restart Odoo +5. Update ``l10n_it_appointment_code`` module diff --git a/l10n_it_appointment_code/readme/USAGE.rst b/l10n_it_appointment_code/readme/USAGE.rst new file mode 100644 index 000000000000..df2b332f8327 --- /dev/null +++ b/l10n_it_appointment_code/readme/USAGE.rst @@ -0,0 +1,11 @@ +**Italiano** + +Installando il modulo vengono precaricati i codici disponibili. +È possibile aggiungere nuovi codici o modificare quelli esistenti. +Non è possibile avere più di un elemento con lo stesso codice. + +**English** + +Available codes are preloaded on module installation. +The existing codes can be modified or new ones can be added. +It is not possible to have more than one element with the same code. diff --git a/l10n_it_appointment_code/security/ir.model.access.csv b/l10n_it_appointment_code/security/ir.model.access.csv new file mode 100644 index 000000000000..35b4c02f4ef6 --- /dev/null +++ b/l10n_it_appointment_code/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_appointment_code_user,appointment_code user,model_appointment_code,base.group_user,1,0,0,0 +access_appointment_code_manager,appointment_code manager,model_appointment_code,account.group_account_manager,1,1,1,1 diff --git a/l10n_it_appointment_code/static/description/icon.png b/l10n_it_appointment_code/static/description/icon.png new file mode 100644 index 000000000000..3a0328b516c4 Binary files /dev/null and b/l10n_it_appointment_code/static/description/icon.png differ diff --git a/l10n_it_appointment_code/static/description/index.html b/l10n_it_appointment_code/static/description/index.html new file mode 100644 index 000000000000..b4a15ef9ad54 --- /dev/null +++ b/l10n_it_appointment_code/static/description/index.html @@ -0,0 +1,571 @@ + + + + + + +ITA - Codici carica + + + +
+

ITA - Codici carica

+ + +

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

+

Italiano

+

Tabella dei codici carica da usare nelle dichiarazioni fiscali italiane.

+

English

+

Table of appointment codes to use into italian Tax returns.

+

Table of contents

+ +
+

Installation

+

Italiano

+

Qualora questo modulo venisse installato in un DB dove l10n_it_codici_carica è già installato, è necessario eseguire la seguente procedura.

+
    +
  1. Installare openupgradelib:

    +
    +pip3 install git+https://github.com/OCA/openupgradelib.git@master
    +
    +
  2. +
  3. Lanciare Odoo con il paramentro shell

    +
  4. +
  5. Eseguire i seguenti comandi:

    +
    + >>> from openupgradelib import openupgrade
    + >>> openupgrade.rename_xmlids(
    +       env.cr,
    +       [
    +           (
    +               "l10n_it_codici_carica.view_codice_carica_tree",
    +               "l10n_it_appointment_code.view_appointment_code_tree",
    +           ),
    +           (
    +               "l10n_it_codici_carica.view_codice_carica_form",
    +               "l10n_it_appointment_code.view_appointment_code_form",
    +           ),
    +           (
    +               "l10n_it_codici_carica.action_codice_carica",
    +               "l10n_it_appointment_code.action_appointment_code",
    +           ),
    +           (
    +               "l10n_it_codici_carica.menu_codice_carica",
    +               "l10n_it_appointment_code.menu_appointment_code",
    +           ),
    +       ],
    +)
    +>>> openupgrade.update_module_names(
    +       env.cr,
    +       [
    +           ("l10n_it_codici_carica", "l10n_it_appointment_code"),
    +       ],
    +)
    +>>> openupgrade.rename_models(
    +       env.cr,
    +       [
    +           ("codice.carica", "appointment.code"),
    +       ],
    +)
    +>>> openupgrade.rename_tables(
    +     env.cr,
    +     [
    +         ("codice_carica", "appointment_code"),
    +     ],
    +)
    +>>> env.cr.commit()
    +
    +
  6. +
  7. Riavviare Odoo

    +
  8. +
  9. Aggiornare l10n_it_appointment_code

    +
  10. +
+

English

+

When l10n_it_codici_carica is installed in the database you need to follow the following steps.

+
    +
  1. Install openupgradelib:

    +
    +pip3 install git+https://github.com/OCA/openupgradelib.git@master
    +
    +
  2. +
  3. Run Odoo with the shell command

    +
  4. +
  5. Execute the following commands:

    +
    + >>> from openupgradelib import openupgrade
    + >>> openupgrade.rename_xmlids(
    +       env.cr,
    +       [
    +           (
    +               "l10n_it_codici_carica.view_codice_carica_tree",
    +               "l10n_it_appointment_code.view_appointment_code_tree",
    +           ),
    +           (
    +               "l10n_it_codici_carica.view_codice_carica_form",
    +               "l10n_it_appointment_code.view_appointment_code_form",
    +           ),
    +           (
    +               "l10n_it_codici_carica.action_codice_carica",
    +               "l10n_it_appointment_code.action_appointment_code",
    +           ),
    +           (
    +               "l10n_it_codici_carica.menu_codice_carica",
    +               "l10n_it_appointment_code.menu_appointment_code",
    +           ),
    +       ],
    +)
    +>>> openupgrade.update_module_names(
    +       env.cr,
    +       [
    +           ("l10n_it_codici_carica", "l10n_it_appointment_code"),
    +       ],
    +)
    +>>> openupgrade.rename_models(
    +       env.cr,
    +       [
    +           ("codice.carica", "appointment.code"),
    +       ],
    +)
    +>>> openupgrade.rename_tables(
    +     env.cr,
    +     [
    +         ("codice_carica", "appointment_code"),
    +     ],
    +)
    +>>> env.cr.commit()
    +
    +
  6. +
  7. Restart Odoo

    +
  8. +
  9. Update l10n_it_appointment_code module

    +
  10. +
+
+
+

Configuration

+

Italiano

+

La tabella viene aggiunta nell’area Fatturazione, ed è raggiungibile nella +sezione Configurazione. Occorre avere i privilegi di Responsabile fatturazione.

+

English

+

Table is inserted on Invoicing and can be reached in the configuration. +Billing Manager privileges are needed.

+
+
+

Usage

+

Italiano

+

Installando il modulo vengono precaricati i codici disponibili. +È possibile aggiungere nuovi codici o modificare quelli esistenti. +Non è possibile avere più di un elemento con lo stesso codice.

+

English

+

Available codes are preloaded on module installation. +The existing codes can be modified or new ones can be added. +It is not possible to have more than one element with the same code.

+
+
+

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

+
    +
  • Openforce di Camilli Alessandro
  • +
+
+
+

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_appointment_code/views/appointment_code_view.xml b/l10n_it_appointment_code/views/appointment_code_view.xml new file mode 100644 index 000000000000..5f277a22ed8c --- /dev/null +++ b/l10n_it_appointment_code/views/appointment_code_view.xml @@ -0,0 +1,43 @@ + + + + + view.appointment.code.tree + appointment.code + + + + + + + + + + view.appointment.code.form + appointment.code + +
+ + + + +
+
+
+ + + Appointment Codes + appointment.code + + + + + +