-
-
Notifications
You must be signed in to change notification settings - Fork 306
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by tafaRU
- Loading branch information
Showing
15 changed files
with
832 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,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 <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_withholding_tax_reason%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. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Agile Business Group | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Marco Colombo <https://github.com/TheMule71> | ||
* 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/16.0/l10n_it_withholding_tax_reason>`_ 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,4 @@ | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
# Copyright 2021 Alex Comba - Agile Business Group | ||
|
||
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 @@ | ||
# Copyright 2018 Lorenzo Battistini - Agile Business Group | ||
# Copyright 2022 Marco Colombo - <marco.colombo@phi.technology> | ||
# 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, | ||
} |
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,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 <primes2h@gmail.com>\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" |
39 changes: 39 additions & 0 deletions
39
l10n_it_withholding_tax_reason/i18n/l10n_it_withholding_tax_reason.pot
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,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 "" |
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 withholding_tax |
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,6 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class WithholdingTax(models.Model): | ||
_inherit = "withholding.tax" | ||
payment_reason_id = fields.Many2one("payment.reason", string="Payment reason") |
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,2 @@ | ||
* Marco Colombo <https://github.com/TheMule71> | ||
* Alex Comba <alex.comba@agilebg.com> |
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 @@ | ||
Bridge module between l10n_it_withholding_tax and l10n_it_payment_reason |
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,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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.