Skip to content

Commit

Permalink
[MIG] l10n_it_appointment_code: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Borruso committed Nov 11, 2022
1 parent c22a56b commit ef32c68
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 418 deletions.
134 changes: 6 additions & 128 deletions l10n_it_appointment_code/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ ITA - Codici carica
: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
:target: https://github.com/OCA/l10n-italy/tree/16.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
:target: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-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
:target: https://runbot.odoo-community.org/runbot/122/16.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand All @@ -38,129 +38,6 @@ Table of appointment codes to use into italian Tax returns.
.. 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
=============

Expand Down Expand Up @@ -195,7 +72,7 @@ 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**>`_.
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_appointment_code%0Aversion:%2016.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.

Expand All @@ -214,6 +91,7 @@ Contributors
* Gianmarco Conte <gconte@dinamicheaziendali.it>
* Stefano Consolaro <https://github.com/mymage>
* Alex Comba <alex.comba@agilebg.com>
* Giuseppe Borruso <gborruso@dinamicheaziendali.it>

Maintainers
~~~~~~~~~~~
Expand All @@ -228,6 +106,6 @@ 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.
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_appointment_code>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion l10n_it_appointment_code/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{
"name": "ITA - Codici carica",
"version": "14.0.1.0.0",
"version": "16.0.1.0.0",
"category": "Localization/Italy",
"summary": "Aggiunge la tabella dei codici carica da usare nelle dichiarazioni"
" fiscali italiane",
Expand Down
53 changes: 26 additions & 27 deletions l10n_it_appointment_code/data/appointment_code_data.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<odoo>
<data noupdate="1">
<odoo noupdate="1">

<record model="appointment.code" id="1">
<field name="code">1</field>
<field name="name">Rappresentante legale, negoziale o di fatto, socio
Expand Down Expand Up @@ -36,49 +36,48 @@
<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 model="l10n_it_appointment.code" id="8">
<field name="l10n_it_code">8</field>
<field name="l10n_it_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
<record model="l10n_it_appointment.code" id="9">
<field name="l10n_it_code">9</field>
<field name="l10n_it_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
<record model="l10n_it_appointment.code" id="10">
<field name="l10n_it_code">10</field>
<field name="l10n_it_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
<record model="l10n_it_appointment.code" id="11">
<field name="l10n_it_code">11</field>
<field name="l10n_it_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
<record model="l10n_it_appointment.code" id="12">
<field name="l10n_it_code">12</field>
<field name="l10n_it_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 model="l10n_it_appointment.code" id="13">
<field name="l10n_it_code">13</field>
<field name="l10n_it_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
<record model="l10n_it_appointment.code" id="14">
<field name="l10n_it_code">14</field>
<field name="l10n_it_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
<record model="l10n_it_appointment.code" id="15">
<field name="l10n_it_code">15</field>
<field name="l10n_it_name">Commissario liquidatore di una pubblica
amministrazione</field>
</record>

</data>
</odoo>
1 change: 1 addition & 0 deletions l10n_it_appointment_code/models/appointment_code.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright 2017 Alessandro Camilli - Openforce
# Copyright 2019 Stefano Consolaro (Associazione PNLUG - Gruppo Odoo)
# Copyright 2021 Alex Comba - Agile Business Group
# Copyright 2022 Giuseppe Borruso - Dinamiche Aziendali

from odoo import _, api, fields, models
from odoo.exceptions import ValidationError
Expand Down
1 change: 1 addition & 0 deletions l10n_it_appointment_code/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
* Gianmarco Conte <gconte@dinamicheaziendali.it>
* Stefano Consolaro <https://github.com/mymage>
* Alex Comba <alex.comba@agilebg.com>
* Giuseppe Borruso <gborruso@dinamicheaziendali.it>
119 changes: 0 additions & 119 deletions l10n_it_appointment_code/readme/INSTALL.rst

This file was deleted.

Loading

0 comments on commit ef32c68

Please sign in to comment.