Skip to content

Commit

Permalink
[MIG] l10n_it_account_tax_kind: Migration to 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jado95 committed Apr 2, 2021
1 parent 19df7dc commit 07fc4d5
Show file tree
Hide file tree
Showing 9 changed files with 94 additions and 25 deletions.
44 changes: 35 additions & 9 deletions l10n_it_account_tax_kind/README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
================================================
Italian Localisation - Natura delle aliquote IVA
================================================
===============================
ITA - Natura delle aliquote IVA
===============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
Expand All @@ -14,17 +14,25 @@ Italian Localisation - Natura delle aliquote IVA
: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_account_tax_kind
:target: https://github.com/OCA/l10n-italy/tree/14.0--mig-l10n_it_account_tax_kind/l10n_it_account_tax_kind
: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_account_tax_kind
:target: https://translation.odoo-community.org/projects/l10n-italy-14-0--mig-l10n_it_account_tax_kind/l10n-italy-14-0--mig-l10n_it_account_tax_kind-l10n_it_account_tax_kind
: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--mig-l10n_it_account_tax_kind
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

**Italiano**

Questo modulo estende la funzionalità delle imposte.

Con questo modulo è possibile settare un tipo di esenzione per ogni imposta.

**English**

This module extends the functionality of account tax.

With this module is possibile to set a kind of exemption for every account tax you need.
Expand All @@ -37,14 +45,32 @@ With this module is possibile to set a kind of exemption for every account tax y
Configuration
=============

**Italiano**

Per configurare questo modulo, hai bisogno di:

#. Andare in Fatturazione -> Configurazione -> Fiscalità italiana -> Natura esenzione imposta
#. Creare una nuova Natura esenzione imposta o modificarne una esistente

**English**

To configure this module, you need to:

#. Go to Accounting -> Configuration -> Taxes -> Italian Localization -> Tax Exemption Kind
#. Go to Accounting -> Configuration -> Italian Localization -> Tax Exemption Kind
#. Create a new exemption kind or modify existing one

Usage
=====

**Italiano**

Per usare questo modulo, c'è bisogno di:

#. Andare su Fatturazione -> Configurazione -> Contabilità -> Imposte
#. Aprire l'imposta da modificare, andare al tab "Opzioni Avanzate" e impostare un valore a natura esenzione

**English**

To use this module, you need to:

#. Go to Accounting -> Configuration -> Accounting -> Taxes
Expand All @@ -56,7 +82,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_account_tax_kind%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_account_tax_kind%0Aversion:%2014.0--mig-l10n_it_account_tax_kind%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 Down Expand Up @@ -89,6 +115,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_account_tax_kind>`_ project on GitHub.
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/14.0--mig-l10n_it_account_tax_kind/l10n_it_account_tax_kind>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
8 changes: 5 additions & 3 deletions l10n_it_account_tax_kind/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
# @author Francesco Apruzzese <[email protected]>
# Copyright 2017 Alex Comba - Agile Business Group
# Copyright 2018 Lorenzo Battistini <https://github.com/eLBati>
# Copyright 2021 Gianmarco Conte <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Italian Localisation - Natura delle aliquote IVA",
"version": "12.0.2.0.0",
"name": "ITA - Natura delle aliquote IVA",
"version": "14.0.1.0.0",
"development_status": "Production/Stable",
"category": "Localisation/Italy",
"category": "Localization/Italy",
"summary": "Gestione natura delle aliquote IVA",
"author": "Odoo Community Association (OCA), Apulia Software s.r.l",
"website": "https://github.com/OCA/l10n-italy",
"license": "AGPL-3",
Expand Down
2 changes: 0 additions & 2 deletions l10n_it_account_tax_kind/model/account_tax_kind.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@


class AccountTaxKind(models.Model):

_name = "account.tax.kind"
_description = "Tax exemption kind"

code = fields.Char(string="Code", size=4, required=True)
name = fields.Char(string="Name", required=True)

@api.multi
def name_get(self):
res = []
for tax_kind in self:
Expand Down
11 changes: 10 additions & 1 deletion l10n_it_account_tax_kind/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
**Italiano**

Per configurare questo modulo, è necessario:

#. Andare in Fatturazione -> Configurazione -> Fiscalità italiana -> Natura esenzione imposta
#. Creare una nuova natura esenzione imposta o modificarne una esistente

**English**

To configure this module, you need to:

#. Go to Accounting -> Configuration -> Taxes -> Italian Localization -> Tax Exemption Kind
#. Go to Accounting -> Configuration -> Italian Localization -> Tax Exemption Kind
#. Create a new exemption kind or modify existing one
8 changes: 8 additions & 0 deletions l10n_it_account_tax_kind/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
**Italiano**

Questo modulo estende la funzionalità delle imposte.

Con questo modulo è possibile assegnare un tipo di esenzione per ogni imposta.

**English**

This module extends the functionality of account tax.

With this module is possibile to set a kind of exemption for every account tax you need.
9 changes: 9 additions & 0 deletions l10n_it_account_tax_kind/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
**Italiano**

Per usare questo modulo, è necessario:

#. Andare su Fatturazione -> Configurazione -> Contabilità -> Imposte
#. Aprire l'imposta da modificare, andare nella scheda "Opzioni avanzate" e impostare un valore per natura esenzione

**English**

To use this module, you need to:

#. Go to Accounting -> Configuration -> Accounting -> Taxes
Expand Down
34 changes: 26 additions & 8 deletions l10n_it_account_tax_kind/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
<title>Italian Localisation - Natura delle aliquote IVA</title>
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
<title>ITA - Natura delle aliquote IVA</title>
<style type="text/css">

/*
Expand Down Expand Up @@ -360,14 +360,18 @@
</style>
</head>
<body>
<div class="document" id="italian-localisation-natura-delle-aliquote-iva">
<h1 class="title">Italian Localisation - Natura delle aliquote IVA</h1>
<div class="document" id="ita-natura-delle-aliquote-iva">
<h1 class="title">ITA - Natura delle aliquote IVA</h1>

<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_account_tax_kind"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_account_tax_kind"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/122/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/14.0--mig-l10n_it_account_tax_kind/l10n_it_account_tax_kind"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/l10n-italy-14-0--mig-l10n_it_account_tax_kind/l10n-italy-14-0--mig-l10n_it_account_tax_kind-l10n_it_account_tax_kind"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/122/14.0--mig-l10n_it_account_tax_kind"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><strong>Italiano</strong></p>
<p>Questo modulo estende la funzionalità delle imposte.</p>
<p>Con questo modulo è possibile settare un tipo di esenzione per ogni imposta.</p>
<p><strong>English</strong></p>
<p>This module extends the functionality of account tax.</p>
<p>With this module is possibile to set a kind of exemption for every account tax you need.</p>
<p><strong>Table of contents</strong></p>
Expand All @@ -386,14 +390,28 @@ <h1 class="title">Italian Localisation - Natura delle aliquote IVA</h1>
</div>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#id1">Configuration</a></h1>
<p><strong>Italiano</strong></p>
<p>Per configurare questo modulo, hai bisogno di:</p>
<ol class="arabic simple">
<li>Andare in Fatturazione -&gt; Configurazione -&gt; Fiscalità italiana -&gt; Natura esenzione imposta</li>
<li>Creare una nuova Natura esenzione imposta o modificarne una esistente</li>
</ol>
<p><strong>English</strong></p>
<p>To configure this module, you need to:</p>
<ol class="arabic simple">
<li>Go to Accounting -&gt; Configuration -&gt; Taxes -&gt; Italian Localization -&gt; Tax Exemption Kind</li>
<li>Go to Accounting -&gt; Configuration -&gt; Italian Localization -&gt; Tax Exemption Kind</li>
<li>Create a new exemption kind or modify existing one</li>
</ol>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#id2">Usage</a></h1>
<p><strong>Italiano</strong></p>
<p>Per usare questo modulo, c’è bisogno di:</p>
<ol class="arabic simple">
<li>Andare su Fatturazione -&gt; Configurazione -&gt; Contabilità -&gt; Imposte</li>
<li>Aprire l’imposta da modificare, andare al tab “Opzioni Avanzate” e impostare un valore a natura esenzione</li>
</ol>
<p><strong>English</strong></p>
<p>To use this module, you need to:</p>
<ol class="arabic simple">
<li>Go to Accounting -&gt; Configuration -&gt; Accounting -&gt; Taxes</li>
Expand All @@ -405,7 +423,7 @@ <h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-italy/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_account_tax_kind%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_account_tax_kind%0Aversion:%2014.0--mig-l10n_it_account_tax_kind%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand All @@ -432,7 +450,7 @@ <h2><a class="toc-backref" href="#id7">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_account_tax_kind">OCA/l10n-italy</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/14.0--mig-l10n_it_account_tax_kind/l10n_it_account_tax_kind">OCA/l10n-italy</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion l10n_it_account_tax_kind/view/account_tax_kind_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
<field name="name">Tax Exemption Kind</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">account.tax.kind</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_account_tax_kind_tree" />
</record>
Expand Down
2 changes: 1 addition & 1 deletion l10n_it_account_tax_kind/view/account_tax_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<field name="model">account.tax</field>
<field name="inherit_id" ref="account.view_tax_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='tag_ids']" position="after">
<xpath expr="//field[@name='tax_group_id']" position="after">
<field name="kind_id" />
<field
name="law_reference"
Expand Down

0 comments on commit 07fc4d5

Please sign in to comment.