forked from odoo-italia/l10n-italy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] Add migration script to rename module (odoo-italia#4)
- Loading branch information
Showing
14 changed files
with
778 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,82 @@ | ||
===================== | ||
ITA - Esigibilità IVA | ||
===================== | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! 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_vat_payability | ||
: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_vat_payability | ||
: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** | ||
|
||
Aggiunge all'imposta il campo esigibilità da usare nei dichiarativi fiscali italiani | ||
|
||
**English** | ||
|
||
Add VAT payability in tax form, to be used in Italian Tax Return | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
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_vat_payability%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 <[email protected]> | ||
* Lorenzo Battistini <[email protected]> | ||
* Gianmarco Conte <[email protected]> | ||
* Giuseppe Borruso - Dinamiche Aziendali srl <[email protected]> | ||
|
||
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_vat_payability>`_ 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,2 @@ | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
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,20 @@ | ||
# Copyright 2017 Alessandro Camilli - Openforce | ||
# Copyright 2018 Lorenzo Battistini <https://github.com/eLBati> | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
{ | ||
"name": "ITA - Esigibilità IVA", | ||
"version": "14.0.1.0.0", | ||
"development_status": "Beta", | ||
"category": "Localization/Italy", | ||
"author": "Openforce di Camilli Alessandro, Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/l10n-italy", | ||
"license": "LGPL-3", | ||
"depends": [ | ||
"account", | ||
], | ||
"data": [ | ||
"views/account_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,60 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * l10n_it_esigibilita_iva | ||
# | ||
# Translators: | ||
# Anael M <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-12-08 03:45+0000\n" | ||
"PO-Revision-Date: 2017-12-08 03:45+0000\n" | ||
"Last-Translator: Anael M <[email protected]>, 2017\n" | ||
"Language-Team: Spanish (Argentina) (https://www.transifex.com/oca/" | ||
"teams/23907/es_AR/)\n" | ||
"Language: es_AR\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" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields,field_description:l10n_it_vat_payability.field_account_tax__display_name | ||
msgid "Display Name" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields,field_description:l10n_it_vat_payability.field_account_tax__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields,field_description:l10n_it_vat_payability.field_account_tax____last_update | ||
msgid "Last Modified on" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model,name:l10n_it_vat_payability.model_account_tax | ||
msgid "Tax" | ||
msgstr "Impuesto" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields,field_description:l10n_it_vat_payability.field_account_tax__payability | ||
msgid "VAT payability" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields.selection,name:l10n_it_vat_payability.selection__account_tax__payability__i | ||
msgid "VAT payable immediately" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields.selection,name:l10n_it_vat_payability.selection__account_tax__payability__s | ||
msgid "split payments" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields.selection,name:l10n_it_vat_payability.selection__account_tax__payability__d | ||
msgid "unrealized VAT" | ||
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,69 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * l10n_it_esigibilita_iva | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-12-08 03:45+0000\n" | ||
"PO-Revision-Date: 2020-10-05 08:16+0000\n" | ||
"Last-Translator: Lorenzo Battistini <[email protected]>\n" | ||
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\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 3.10\n" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields,field_description:l10n_it_vat_payability.field_account_tax__display_name | ||
msgid "Display Name" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields,field_description:l10n_it_vat_payability.field_account_tax__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields,field_description:l10n_it_vat_payability.field_account_tax____last_update | ||
msgid "Last Modified on" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model,name:l10n_it_vat_payability.model_account_tax | ||
msgid "Tax" | ||
msgstr "Imposta" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields,field_description:l10n_it_vat_payability.field_account_tax__payability | ||
msgid "VAT payability" | ||
msgstr "Esigibilità IVA" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields.selection,name:l10n_it_vat_payability.selection__account_tax__payability__i | ||
msgid "VAT payable immediately" | ||
msgstr "IVA esigibile immediatamente" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields.selection,name:l10n_it_vat_payability.selection__account_tax__payability__s | ||
msgid "split payments" | ||
msgstr "scissione pagamenti" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields.selection,name:l10n_it_vat_payability.selection__account_tax__payability__d | ||
msgid "unrealized VAT" | ||
msgstr "IVA differita" | ||
|
||
#~ msgid "Deferred payability" | ||
#~ msgstr "Esigibilità differita" | ||
|
||
#~ msgid "Immediate payability" | ||
#~ msgstr "Esigibilità immediata" | ||
|
||
#~ msgid "Split payment" | ||
#~ msgstr "Scissione dei pagamenti" |
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,54 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * l10n_it_vat_payability | ||
# | ||
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_vat_payability | ||
#: model:ir.model.fields,field_description:l10n_it_vat_payability.field_account_tax__display_name | ||
msgid "Display Name" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields,field_description:l10n_it_vat_payability.field_account_tax__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields,field_description:l10n_it_vat_payability.field_account_tax____last_update | ||
msgid "Last Modified on" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model,name:l10n_it_vat_payability.model_account_tax | ||
msgid "Tax" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields,field_description:l10n_it_vat_payability.field_account_tax__payability | ||
msgid "VAT payability" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields.selection,name:l10n_it_vat_payability.selection__account_tax__payability__i | ||
msgid "VAT payable immediately" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields.selection,name:l10n_it_vat_payability.selection__account_tax__payability__s | ||
msgid "split payments" | ||
msgstr "" | ||
|
||
#. module: l10n_it_vat_payability | ||
#: model:ir.model.fields.selection,name:l10n_it_vat_payability.selection__account_tax__payability__d | ||
msgid "unrealized VAT" | ||
msgstr "" |
23 changes: 23 additions & 0 deletions
23
l10n_it_vat_payability/migrations/14.0.1.0.0/pre-migrate.py
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,23 @@ | ||
# Copyright 2020 Sergio Zanchetta <https://github.com/primes2h> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from openupgradelib import openupgrade | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(env, version): | ||
openupgrade.update_module_names( | ||
env.cr, | ||
[ | ||
("l10n_it_esigibilita_iva", "l10n_it_vat_payability"), | ||
], | ||
) | ||
openupgrade.rename_xmlids( | ||
env.cr, | ||
[ | ||
( | ||
"l10n_it_esigibilita_iva.view_tax_code_esigibilita_form", | ||
"l10n_it_vat_payability.view_tax_code_payability_form", | ||
), | ||
], | ||
) |
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 @@ | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
from . import account |
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,15 @@ | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
from odoo import fields, models | ||
|
||
|
||
class AccountTax(models.Model): | ||
_inherit = "account.tax" | ||
|
||
payability = fields.Selection( | ||
[ | ||
("I", "VAT payable immediately"), | ||
("D", "unrealized VAT"), | ||
("S", "split payments"), | ||
], | ||
string="VAT payability", | ||
) |
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 @@ | ||
* Alessandro Camilli <[email protected]> | ||
* Lorenzo Battistini <[email protected]> | ||
* Gianmarco Conte <[email protected]> | ||
* Giuseppe Borruso - Dinamiche Aziendali srl <[email protected]> |
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,7 @@ | ||
**Italiano** | ||
|
||
Aggiunge all'imposta il campo esigibilità da usare nei dichiarativi fiscali italiani | ||
|
||
**English** | ||
|
||
Add VAT payability in tax form, to be used in Italian Tax Return |
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.