diff --git a/l10n_it_withholding_tax_reason/README.rst b/l10n_it_withholding_tax_reason/README.rst new file mode 100644 index 000000000000..e18766c0238a --- /dev/null +++ b/l10n_it_withholding_tax_reason/README.rst @@ -0,0 +1,141 @@ +============================================== +ITA - Causali pagamento per ritenute d'acconto +============================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github + :target: https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_withholding_tax_reason + :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-16-0/l10n-italy-16-0-l10n_it_withholding_tax_reason + :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/16.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Bridge module between l10n_it_withholding_tax and l10n_it_payment_reason + +**Table of contents** + +.. contents:: + :local: + +Installation +============ + +**Italiano** + +Qualora questo modulo venisse installato in un DB dove ``l10n_it_withholding_tax_causali`` è 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_fields( + env, + [ + ( + "withholding.tax", + "withholding_tax", + "causale_pagamento_id", + "payment_reason_id", + ), + ], + ) + >>> env.cr.commit() + +#. Riavviare Odoo +#. Installare ``l10n_it_withholding_tax_reason`` + +**English** + +When ``l10n_it_withholding_tax_causali`` 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_fields( + env, + [ + ( + "withholding.tax", + "withholding_tax", + "causale_pagamento_id", + "payment_reason_id", + ), + ], + ) + >>> env.cr.commit() + +4. Restart Odoo +5. Install ``l10n_it_withholding_tax_reason`` module + +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 +~~~~~~~ + +* Agile Business Group + +Contributors +~~~~~~~~~~~~ + +* Marco Colombo +* 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_withholding_tax_reason/__init__.py b/l10n_it_withholding_tax_reason/__init__.py new file mode 100644 index 000000000000..5b0b7a76c2a4 --- /dev/null +++ b/l10n_it_withholding_tax_reason/__init__.py @@ -0,0 +1,4 @@ +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). +# Copyright 2021 Alex Comba - Agile Business Group + +from . import models diff --git a/l10n_it_withholding_tax_reason/__manifest__.py b/l10n_it_withholding_tax_reason/__manifest__.py new file mode 100644 index 000000000000..c2be4c19642d --- /dev/null +++ b/l10n_it_withholding_tax_reason/__manifest__.py @@ -0,0 +1,22 @@ +# Copyright 2018 Lorenzo Battistini - Agile Business Group +# Copyright 2022 Marco Colombo - +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +{ + "name": "ITA - Causali pagamento per ritenute d'acconto", + "version": "16.0.1.0.0", + "development_status": "Beta", + "category": "Localization/Italy", + "website": "https://github.com/OCA/l10n-italy", + "author": "Agile Business Group, Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "l10n_it_withholding_tax", + "l10n_it_payment_reason", + ], + "data": [ + "views/withholding_tax.xml", + ], + "auto_install": True, +} diff --git a/l10n_it_withholding_tax_reason/i18n/it.po b/l10n_it_withholding_tax_reason/i18n/it.po new file mode 100644 index 000000000000..978f850e205d --- /dev/null +++ b/l10n_it_withholding_tax_reason/i18n/it.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_it_withholding_tax_reason +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-10-10 09:34+0000\n" +"Last-Translator: Sergio Zanchetta \n" +"Language-Team: none\n" +"Language: it\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 4.3.2\n" + +#. module: l10n_it_withholding_tax_reason +#: model:ir.model.fields,field_description:l10n_it_withholding_tax_reason.field_withholding_tax__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: l10n_it_withholding_tax_reason +#: model:ir.model.fields,field_description:l10n_it_withholding_tax_reason.field_withholding_tax__id +msgid "ID" +msgstr "ID" + +#. module: l10n_it_withholding_tax_reason +#: model:ir.model.fields,field_description:l10n_it_withholding_tax_reason.field_withholding_tax____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + +#. module: l10n_it_withholding_tax_reason +#: model:ir.model.fields,field_description:l10n_it_withholding_tax_reason.field_withholding_tax__payment_reason_id +msgid "Payment reason" +msgstr "Causale di pagamento" + +#. module: l10n_it_withholding_tax_reason +#: model:ir.model,name:l10n_it_withholding_tax_reason.model_withholding_tax +msgid "Withholding Tax" +msgstr "Ritenuta d'acconto" diff --git a/l10n_it_withholding_tax_reason/i18n/l10n_it_withholding_tax_reason.pot b/l10n_it_withholding_tax_reason/i18n/l10n_it_withholding_tax_reason.pot new file mode 100644 index 000000000000..51f3921e72e5 --- /dev/null +++ b/l10n_it_withholding_tax_reason/i18n/l10n_it_withholding_tax_reason.pot @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_it_withholding_tax_reason +# +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_withholding_tax_reason +#: model:ir.model.fields,field_description:l10n_it_withholding_tax_reason.field_withholding_tax__display_name +msgid "Display Name" +msgstr "" + +#. module: l10n_it_withholding_tax_reason +#: model:ir.model.fields,field_description:l10n_it_withholding_tax_reason.field_withholding_tax__id +msgid "ID" +msgstr "" + +#. module: l10n_it_withholding_tax_reason +#: model:ir.model.fields,field_description:l10n_it_withholding_tax_reason.field_withholding_tax____last_update +msgid "Last Modified on" +msgstr "" + +#. module: l10n_it_withholding_tax_reason +#: model:ir.model.fields,field_description:l10n_it_withholding_tax_reason.field_withholding_tax__payment_reason_id +msgid "Payment reason" +msgstr "" + +#. module: l10n_it_withholding_tax_reason +#: model:ir.model,name:l10n_it_withholding_tax_reason.model_withholding_tax +msgid "Withholding Tax" +msgstr "" diff --git a/l10n_it_withholding_tax_reason/models/__init__.py b/l10n_it_withholding_tax_reason/models/__init__.py new file mode 100644 index 000000000000..722840030df3 --- /dev/null +++ b/l10n_it_withholding_tax_reason/models/__init__.py @@ -0,0 +1 @@ +from . import withholding_tax diff --git a/l10n_it_withholding_tax_reason/models/withholding_tax.py b/l10n_it_withholding_tax_reason/models/withholding_tax.py new file mode 100644 index 000000000000..920fc319fde6 --- /dev/null +++ b/l10n_it_withholding_tax_reason/models/withholding_tax.py @@ -0,0 +1,6 @@ +from odoo import fields, models + + +class WithholdingTax(models.Model): + _inherit = "withholding.tax" + payment_reason_id = fields.Many2one("payment.reason", string="Payment reason") diff --git a/l10n_it_withholding_tax_reason/readme/CONTRIBUTORS.rst b/l10n_it_withholding_tax_reason/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..25ee5d76e226 --- /dev/null +++ b/l10n_it_withholding_tax_reason/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Marco Colombo +* Alex Comba diff --git a/l10n_it_withholding_tax_reason/readme/DESCRIPTION.rst b/l10n_it_withholding_tax_reason/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..cbae94dd1588 --- /dev/null +++ b/l10n_it_withholding_tax_reason/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Bridge module between l10n_it_withholding_tax and l10n_it_payment_reason diff --git a/l10n_it_withholding_tax_reason/readme/INSTALL.rst b/l10n_it_withholding_tax_reason/readme/INSTALL.rst new file mode 100644 index 000000000000..765591ed02f1 --- /dev/null +++ b/l10n_it_withholding_tax_reason/readme/INSTALL.rst @@ -0,0 +1,63 @@ +**Italiano** + +Qualora questo modulo venisse installato in un DB dove ``l10n_it_withholding_tax_causali`` è 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_fields( + env, + [ + ( + "withholding.tax", + "withholding_tax", + "causale_pagamento_id", + "payment_reason_id", + ), + ], + ) + >>> env.cr.commit() + +#. Riavviare Odoo +#. Installare ``l10n_it_withholding_tax_reason`` + +**English** + +When ``l10n_it_withholding_tax_causali`` 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_fields( + env, + [ + ( + "withholding.tax", + "withholding_tax", + "causale_pagamento_id", + "payment_reason_id", + ), + ], + ) + >>> env.cr.commit() + +4. Restart Odoo +5. Install ``l10n_it_withholding_tax_reason`` module diff --git a/l10n_it_withholding_tax_reason/static/description/icon.png b/l10n_it_withholding_tax_reason/static/description/icon.png new file mode 100644 index 000000000000..3a0328b516c4 Binary files /dev/null and b/l10n_it_withholding_tax_reason/static/description/icon.png differ diff --git a/l10n_it_withholding_tax_reason/static/description/index.html b/l10n_it_withholding_tax_reason/static/description/index.html new file mode 100644 index 000000000000..a7360d0ce2ee --- /dev/null +++ b/l10n_it_withholding_tax_reason/static/description/index.html @@ -0,0 +1,488 @@ + + + + + + +ITA - Causali pagamento per ritenute d'acconto + + + +
+

ITA - Causali pagamento per ritenute d’acconto

+ + +

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

+

Bridge module between l10n_it_withholding_tax and l10n_it_payment_reason

+

Table of contents

+ +
+

Installation

+

Italiano

+

Qualora questo modulo venisse installato in un DB dove l10n_it_withholding_tax_causali è 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_fields(
    +       env,
    +       [
    +           (
    +               "withholding.tax",
    +               "withholding_tax",
    +               "causale_pagamento_id",
    +               "payment_reason_id",
    +           ),
    +       ],
    +)
    +>>> env.cr.commit()
    +
    +
  6. +
  7. Riavviare Odoo

    +
  8. +
  9. Installare l10n_it_withholding_tax_reason

    +
  10. +
+

English

+

When l10n_it_withholding_tax_causali 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_fields(
    +       env,
    +       [
    +           (
    +               "withholding.tax",
    +               "withholding_tax",
    +               "causale_pagamento_id",
    +               "payment_reason_id",
    +           ),
    +       ],
    +)
    +>>> env.cr.commit()
    +
    +
  6. +
  7. Restart Odoo

    +
  8. +
  9. Install l10n_it_withholding_tax_reason module

    +
  10. +
+
+
+

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

+
    +
  • Agile Business Group
  • +
+
+ +
+

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_withholding_tax_reason/views/withholding_tax.xml b/l10n_it_withholding_tax_reason/views/withholding_tax.xml new file mode 100644 index 000000000000..c7bbb1377c6e --- /dev/null +++ b/l10n_it_withholding_tax_reason/views/withholding_tax.xml @@ -0,0 +1,16 @@ + + + + view_withholding_tax_form_reason + withholding.tax + + + + + + + + diff --git a/setup/l10n_it_withholding_tax_reason/odoo/addons/l10n_it_withholding_tax_reason b/setup/l10n_it_withholding_tax_reason/odoo/addons/l10n_it_withholding_tax_reason new file mode 120000 index 000000000000..ffa960f939cb --- /dev/null +++ b/setup/l10n_it_withholding_tax_reason/odoo/addons/l10n_it_withholding_tax_reason @@ -0,0 +1 @@ +../../../../l10n_it_withholding_tax_reason \ No newline at end of file diff --git a/setup/l10n_it_withholding_tax_reason/setup.py b/setup/l10n_it_withholding_tax_reason/setup.py new file mode 100644 index 000000000000..28c57bb64031 --- /dev/null +++ b/setup/l10n_it_withholding_tax_reason/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)