forked from OCA/l10n-italy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename module to l10n_it_appointment_code
Rename cannot be perfomed with hook as OCA#2220 (comment) Also note: * merge_modules = True is not needed when we simply rename modules * rename_xmlids has to be executed as first to build menus_by_module properly otherwise we get: test-l10n_it_codici_carica=# select id ,name, menus_by_module from ir_module_module where name like '%appointment%'; id | name | menus_by_module -----+--------------------------+------------------------------------------------------ 488 | l10n_it_appointment_code | Invoicing/Configuration/Accounting/Appointment Codes+ | | Invoicing/Configuration/Accounting/Role Codes [UPD] Update l10n_it_appointment_code.pot [UPD] README.rst
- Loading branch information
1 parent
c3359f2
commit ee35079
Showing
17 changed files
with
1,293 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <https://github.com/OCA/l10n-italy/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us smashing it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_appointment_code%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Openforce di Camilli Alessandro | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Alessandro Camilli <alessandrocamilli@openforce.it> | ||
* Gianmarco Conte <gconte@dinamicheaziendali.it> | ||
* Stefano Consolaro <https://github.com/mymage> | ||
* Alex Comba <alex.comba@agilebg.com> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/14.0/l10n_it_appointment_code>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<odoo> | ||
<data noupdate="1"> | ||
<record model="appointment.code" id="1"> | ||
<field name="code">1</field> | ||
<field name="name">Rappresentante legale, negoziale o di fatto, socio | ||
amministratore</field> | ||
</record> | ||
<record model="appointment.code" id="2"> | ||
<field name="code">2</field> | ||
<field name="name">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</field> | ||
</record> | ||
<record model="appointment.code" id="3"> | ||
<field name="code">3</field> | ||
<field name="name">Curatore fallimentare</field> | ||
</record> | ||
<record model="appointment.code" id="4"> | ||
<field name="code">4</field> | ||
<field name="name">Commissario liquidatore (liquidazione coatta | ||
amministrativa ovvero amministrazione straordinaria)</field> | ||
</record> | ||
<record model="appointment.code" id="5"> | ||
<field name="code">5</field> | ||
<field name="name">Custode giudiziario (custodia giudiziaria), ovvero | ||
amministratore giudiziario in qualità di rappresentante dei beni | ||
sequestrati ovvero commissario giudiziale (amministrazione | ||
controllata)</field> | ||
</record> | ||
<record model="appointment.code" id="6"> | ||
<field name="code">6</field> | ||
<field name="name">Rappresentante fiscale di soggetto non residente</field> | ||
</record> | ||
<record model="appointment.code" id="7"> | ||
<field name="code">7</field> | ||
<field name="name">Erede</field> | ||
</record> | ||
<record model="appointment.code" id="8"> | ||
<field name="code">8</field> | ||
<field name="name">Liquidatore (liquidazione volontaria)</field> | ||
</record> | ||
<record model="appointment.code" id="9"> | ||
<field name="code">9</field> | ||
<field name="name">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</field> | ||
</record> | ||
<record model="appointment.code" id="10"> | ||
<field name="code">10</field> | ||
<field name="name">Rappresentante fiscale di soggetto non residente con | ||
le limitazioni di cui all’art. 44, comma 3, del D.L. n. 331/1993</field> | ||
</record> | ||
<record model="appointment.code" id="11"> | ||
<field name="code">11</field> | ||
<field name="name">Soggetto esercente l’attività tutoria del minore o | ||
interdetto in relazione alla funzione istituzionale rivestita</field> | ||
</record> | ||
<record model="appointment.code" id="12"> | ||
<field name="code">12</field> | ||
<field name="name">Liquidatore (liquidazione volontaria di ditta | ||
individuale - periodo ante messa in liquidazione)</field> | ||
</record> | ||
<record model="appointment.code" id="13"> | ||
<field name="code">13</field> | ||
<field name="name">Amministratore di condominio</field> | ||
</record> | ||
<record model="appointment.code" id="14"> | ||
<field name="code">14</field> | ||
<field name="name">Soggetto che sottoscrive la dichiarazione per conto | ||
di una pubblica amministrazione</field> | ||
</record> | ||
<record model="appointment.code" id="15"> | ||
<field name="code">15</field> | ||
<field name="name">Commissario liquidatore di una pubblica | ||
amministrazione</field> | ||
</record> | ||
|
||
</data> | ||
</odoo> |
Oops, something went wrong.