Skip to content

Commit

Permalink
[14.0][MIG] l10n_it_causali_pagamento Migration to 14.0 from 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMule71 committed Apr 2, 2021
1 parent 58ee0ae commit 9a759bb
Show file tree
Hide file tree
Showing 24 changed files with 59 additions and 67 deletions.
25 changes: 0 additions & 25 deletions l10n_it_causali_pagamento/migrations/12.0.1.1.0/post-migrate.py

This file was deleted.

1 change: 0 additions & 1 deletion l10n_it_causali_pagamento/readme/DESCRIPTION.rst

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
========================================
Italian Localization - Causali pagamento
========================================
=======================
ITA - Causali pagamento
=======================

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

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

Tabelle delle causali di pagamento da usare ad esempio nelle ritenute d'acconto
Tabelle delle causali di pagamento da usare, ad esempio, nelle ritenute d'acconto.

**Table of contents**

Expand All @@ -42,7 +42,7 @@ Usage
=====

Installando il modulo vengono precaricati i codici disponibili.
E' possibile aggiungere nuovi codici o modificare quelli esistenti.
È possibile aggiungere nuovi codici o modificare quelli esistenti.
Non è possibile avere più di un elemento con lo stesso codice.

Bug Tracker
Expand All @@ -51,7 +51,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_causali_pagamento%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_payment_reason%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 @@ -68,6 +68,7 @@ Contributors

* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Alex Comba <alex.comba@agilebg.com>
* Marco Colombo <https://github.com/TheMule71>

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Italian Localization - Causali pagamento",
"name": "ITA - Causali pagamento",
"summary": "Aggiunge la tabella delle causali di pagamento da usare ad esempio "
"nelle ritenute d'acconto",
"version": "12.0.2.0.0",
"version": "14.0.1.0.0",
"development_status": "Production/Stable",
"category": "Account",
"author": "Agile Business Group," "Odoo Community Association (OCA)",
Expand Down
File renamed without changes.
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
15 changes: 15 additions & 0 deletions l10n_it_payment_reason/migrations/14.0.1.0.0/pre-migrate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2020 Sergio Zanchetta <https://github.com/primes2h>
# Copyright 2021 Marco Colombo <https://github.com/TheMule71>
# 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_causali_pagamento", "l10n_it_payment_reason"),
],
)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class CausalePagamento(models.Model):
_name = "causale.pagamento"
_description = "Causale Pagamento"
_description = "Payment Reason"

@api.constrains("code")
def _check_code(self):
Expand All @@ -16,7 +16,6 @@ def _check_code(self):
_("The element with code %s already exists") % causale.code
)

@api.multi
def name_get(self):
res = []
for cau in self:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Alex Comba <alex.comba@agilebg.com>
* Marco Colombo <https://github.com/TheMule71>
1 change: 1 addition & 0 deletions l10n_it_payment_reason/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Tabelle delle causali di pagamento da usare, ad esempio, nelle ritenute d'acconto.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Installando il modulo vengono precaricati i codici disponibili.
E' possibile aggiungere nuovi codici o modificare quelli esistenti.
È possibile aggiungere nuovi codici o modificare quelli esistenti.
Non è possibile avere più di un elemento con lo stesso codice.
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 Localization - Causali pagamento</title>
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
<title>ITA - Causali pagamento</title>
<style type="text/css">

/*
Expand Down Expand Up @@ -360,15 +360,15 @@
</style>
</head>
<body>
<div class="document" id="italian-localization-causali-pagamento">
<h1 class="title">Italian Localization - Causali pagamento</h1>
<div class="document" id="ita-causali-pagamento">
<h1 class="title">ITA - Causali pagamento</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_causali_pagamento"><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_causali_pagamento"><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>Tabelle delle causali di pagamento da usare ad esempio nelle ritenute d’acconto</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/l10n_it_payment_reason"><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/l10n-italy-14-0-l10n_it_payment_reason"><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"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>Tabelle delle causali di pagamento da usare, ad esempio, nelle ritenute d’acconto.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -391,15 +391,15 @@ <h1><a class="toc-backref" href="#id1">Configuration</a></h1>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#id2">Usage</a></h1>
<p>Installando il modulo vengono precaricati i codici disponibili.
E’ possibile aggiungere nuovi codici o modificare quelli esistenti.
È possibile aggiungere nuovi codici o modificare quelli esistenti.
Non è possibile avere più di un elemento con lo stesso codice.</p>
</div>
<div class="section" id="bug-tracker">
<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_causali_pagamento%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_payment_reason%0Aversion:%2014.0%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 @@ -415,6 +415,7 @@ <h2><a class="toc-backref" href="#id6">Contributors</a></h2>
<ul class="simple">
<li>Lorenzo Battistini &lt;<a class="reference external" href="mailto:lorenzo.battistini&#64;agilebg.com">lorenzo.battistini&#64;agilebg.com</a>&gt;</li>
<li>Alex Comba &lt;<a class="reference external" href="mailto:alex.comba&#64;agilebg.com">alex.comba&#64;agilebg.com</a>&gt;</li>
<li>Marco Colombo &lt;<a class="reference external" href="https://github.com/TheMule71">https://github.com/TheMule71</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand All @@ -424,7 +425,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_causali_pagamento">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/l10n_it_payment_reason">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
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class TestCausali(TransactionCase):
def setUp(self):
super(TestCausali, self).setUp()
self.causale_model = self.env["causale.pagamento"]
self.causale_b = self.env.ref("l10n_it_causali_pagamento.b")
self.causale_b = self.env.ref("l10n_it_payment_reason.b")

def test_causali(self):
with self.assertRaises(ValidationError):
Expand All @@ -23,9 +23,9 @@ def test_causali(self):
)

def test_renaming_causali(self):
causale_zo = self.env.ref("l10n_it_causali_pagamento.z")
causale_zo = self.env.ref("l10n_it_payment_reason.z")
self.assertEqual(causale_zo.code, "ZO")
causale_l = self.env.ref("l10n_it_causali_pagamento.l")
causale_l = self.env.ref("l10n_it_payment_reason.l")
name = (
"Redditi derivanti dall’utilizzazione economica di opere "
"dell’ingegno, di brevetti industriali e di processi, formule e "
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="view_causale_pagamento_tree" model="ir.ui.view">
<field name="name">view.causale.pagamento.tree</field>
<record id="view_payment_reason_tree" model="ir.ui.view">
<field name="name">view.payment.reason.tree</field>
<field name="model">causale.pagamento</field>
<field name="arch" type="xml">
<tree string="Causale pagamento">
<tree string="Payment Reason">
<field name="code" />
<field name="name" />
</tree>
</field>
</record>

<record id="view_causale_pagamento_form" model="ir.ui.view">
<field name="name">view.causale.pagamento.form</field>
<record id="view_payment_reason_form" model="ir.ui.view">
<field name="name">view.payment.reason.form</field>
<field name="model">causale.pagamento</field>
<field name="arch" type="xml">
<form string="Causale pagamento">
<form string="Payment Reason">
<sheet>
<group>
<field name="code" />
Expand All @@ -27,16 +27,16 @@
</field>
</record>

<record id="action_causale_pagamento" model="ir.actions.act_window">
<field name="name">Causali pagamento</field>
<record id="action_payment_reason" model="ir.actions.act_window">
<field name="name">Payment Reasons</field>
<field name="res_model">causale.pagamento</field>
<field name="view_id" ref="view_causale_pagamento_tree" />
<field name="view_id" ref="view_payment_reason_tree" />
</record>

<menuitem
id="menu_causale_pagamento"
name="Causali pagamento"
action="action_causale_pagamento"
id="menu_payment_reason"
name="Payment Reasons"
action="action_payment_reason"
parent="l10n_it_account.account_italian_localization"
groups="account.group_account_manager"
sequence="45"
Expand Down

This file was deleted.

File renamed without changes.

0 comments on commit 9a759bb

Please sign in to comment.