Skip to content

Commit

Permalink
[14.0][MIG] l10n_it_withholding_tax Migration to 14.0 from 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMule71 committed Jan 15, 2021
1 parent b872a04 commit 9752b78
Show file tree
Hide file tree
Showing 13 changed files with 268 additions and 381 deletions.
23 changes: 12 additions & 11 deletions l10n_it_withholding_tax/README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
=======================
Italian Withholding Tax
=======================
=====================
ITA - Withholding Tax
=====================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
Expand All @@ -14,13 +14,13 @@ Italian Withholding Tax
: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/12.0/l10n_it_withholding_tax
:target: https://github.com/OCA/l10n-italy/tree/14.0/l10n_it_withholding_tax
: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-12-0/l10n-italy-12-0-l10n_it_withholding_tax
:target: https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-l10n_it_withholding_tax
: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/12.0
:target: https://runbot.odoo-community.org/runbot/122/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand All @@ -43,7 +43,7 @@ Visto che le aliquote possono variare nel corso del tempo, nella codifica sono p

E’ necessario anche inserire i conti contabili che verranno utilizzati quando il modulo si occuperà di generare registrazioni contabili per la rilevazione della ritenuta.

.. figure:: https://raw.githubusercontent.com/OCA/l10n-italy/12.0/l10n_it_withholding_tax/static/img/ritenuta-acconto-odoo-codifica-768x457.png
.. figure:: https://raw.githubusercontent.com/OCA/l10n-italy/14.0/l10n_it_withholding_tax/static/img/ritenuta-acconto-odoo-codifica-768x457.png
:alt: Withholding tax
:width: 600 px

Expand All @@ -55,7 +55,7 @@ Il modulo ritenute calcolerà i valori corrispondenti e ne mostrerà il dettagli

In calce ai totali, verrà totalizzato l’ammontare della ritenuta e il netto a pagare. Questa sezione sarà visibile solamente in presenza di almeno una ritenuta

.. figure:: https://raw.githubusercontent.com/OCA/l10n-italy/12.0/l10n_it_withholding_tax/static/img/fattura-fornitore-768x517.png
.. figure:: https://raw.githubusercontent.com/OCA/l10n-italy/14.0/l10n_it_withholding_tax/static/img/fattura-fornitore-768x517.png
:alt: Supplier invoice
:width: 600 px

Expand All @@ -69,7 +69,7 @@ I campi principalmente da tenere in considerazione in questa tabella sono: riten

*Ritenuta versata* contiene l’importo di ritenuta, già applicata, che è stata versata all’erario

.. figure:: https://raw.githubusercontent.com/OCA/l10n-italy/12.0/l10n_it_withholding_tax/static/img/foto-3-1-1024x505.png
.. figure:: https://raw.githubusercontent.com/OCA/l10n-italy/14.0/l10n_it_withholding_tax/static/img/foto-3-1-1024x505.png
:alt: WT statement
:width: 600 px

Expand All @@ -79,7 +79,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_withholding_tax%0Aversion:%2012.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_withholding_tax%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.

Expand All @@ -97,6 +97,7 @@ Contributors

* Alessandro Camilli <[email protected]>
* Lorenzo Battistini <[email protected]>
* Marco Colombo <https://github.com/TheMule71>

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 2 additions & 2 deletions l10n_it_withholding_tax/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Italian Withholding Tax",
"version": "12.0.2.0.0",
"name": "ITA - Withholding Tax",
"version": "14.0.2.0.0",
"category": "Account",
"author": "Openforce, Odoo Italia Network, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-italy",
Expand Down
2 changes: 1 addition & 1 deletion l10n_it_withholding_tax/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-11 07:51+0000\n"
"PO-Revision-Date: 2020-10-05 08:16+0000\n"
Expand Down
2 changes: 1 addition & 1 deletion l10n_it_withholding_tax/i18n/l10n_it_withholding_tax.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
Expand Down
23 changes: 23 additions & 0 deletions l10n_it_withholding_tax/migration/13.0.1.0.0/noupdate_changes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version='1.0' encoding='utf-8' ?>
<odoo>
<record id="withholding_tax_comp_rule" model="ir.rule">
<field name="name">Withholding tax</field>
<field
name="domain_force"
>['|',('company_id','=',False),('company_id','in',company_ids)]</field>
</record>

<record id="withholding_tax_statement_comp_rule" model="ir.rule">
<field name="name">Withholding tax statement</field>
<field
name="domain_force"
>['|',('company_id','=',False),('company_id','in',company_ids)]</field>
</record>

<record id="withholding_tax_move_comp_rule" model="ir.rule">
<field name="name">Withholding tax move</field>
<field
name="domain_force"
>['|',('company_id','=',False),('company_id','in',company_ids)]</field>
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from openupgradelib import openupgrade # pylint: disable=W7936


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(
env.cr, "l10n_it_withholding_tax", "migrations/13.0.1.0.0/noupdate_changes.xml"
)
Loading

0 comments on commit 9752b78

Please sign in to comment.