Skip to content

Commit ac6f0f7

Browse files
committed
Merge PR #4823 into 18.0
Signed-off-by eLBati
2 parents fa3f208 + 9153989 commit ac6f0f7

File tree

17 files changed

+1110
-0
lines changed

17 files changed

+1110
-0
lines changed
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
====================================
2+
Currency Rate Update: Banca d'Italia
3+
====================================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:b0c7c9420323deb9b4abcfe51a6a837f84f3fe409d279a1e06ea3ad2677fe833
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github
20+
:target: https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_currency_rate_update_boi
21+
:alt: OCA/l10n-italy
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/l10n-italy-18-0/l10n-italy-18-0-l10n_it_currency_rate_update_boi
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
**Italiano**
32+
33+
Questo modulo aggiunge la `Banca
34+
d'Italia <https://tassidicambio.bancaditalia.it/>`__ come fornitore dei
35+
tassi di cambio.
36+
37+
Le istruzioni per l'esportazione dei dati sono disponibili all'indirizzo
38+
https://tassidicambio.bancaditalia.it/terzevalute-wf-ui-web/assets/files/Operating_Instructions.pdf
39+
40+
I tassi di cambio sono esportati nel formato JSON.
41+
42+
**English**
43+
44+
This module adds `Bank of
45+
Italy <https://tassidicambio.bancaditalia.it/>`__ currency exchange
46+
rates provider.
47+
48+
Data export instructions are available at
49+
https://tassidicambio.bancaditalia.it/terzevalute-wf-ui-web/assets/files/Operating_Instructions.pdf
50+
51+
Exchange rates are exported in JSON format.
52+
53+
**Table of contents**
54+
55+
.. contents::
56+
:local:
57+
58+
Configuration
59+
=============
60+
61+
**Italiano**
62+
63+
Suggeriamo di eseguire l'azione pianificata "Aggiornamento tassi di
64+
cambio (OCA) giornaliero" alla fine del giorno, per essere sicuri che la
65+
Banca d'Italia abbia aggiornato i dati.
66+
67+
**English**
68+
69+
We suggest to execute the "Currency Rates Update (OCA) daily" cron at
70+
the end of the day, to be sure that Bank of Italy updated the data.
71+
72+
Bug Tracker
73+
===========
74+
75+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/issues>`_.
76+
In case of trouble, please check there if your issue has already been reported.
77+
If you spotted it first, help us to smash it by providing a detailed and welcomed
78+
`feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_currency_rate_update_boi%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
79+
80+
Do not contact contributors directly about support or help with technical issues.
81+
82+
Credits
83+
=======
84+
85+
Authors
86+
-------
87+
88+
* TAKOBI
89+
90+
Contributors
91+
------------
92+
93+
- Giacomo Grasso <giacomo.grasso.82@gmail.com>
94+
- Gabriele Baldessari <gabriele.baldessari@gmail.com>
95+
- `TAKOBI <https://takobi.online>`__:
96+
97+
- Lorenzo Battistini
98+
99+
Maintainers
100+
-----------
101+
102+
This module is maintained by the OCA.
103+
104+
.. image:: https://odoo-community.org/logo.png
105+
:alt: Odoo Community Association
106+
:target: https://odoo-community.org
107+
108+
OCA, or the Odoo Community Association, is a nonprofit organization whose
109+
mission is to support the collaborative development of Odoo features and
110+
promote its widespread use.
111+
112+
.. |maintainer-eLBati| image:: https://github.com/eLBati.png?size=40px
113+
:target: https://github.com/eLBati
114+
:alt: eLBati
115+
116+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
117+
118+
|maintainer-eLBati|
119+
120+
This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/18.0/l10n_it_currency_rate_update_boi>`_ project on GitHub.
121+
122+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import models
2+
from .hooks import pre_absorb_old_module
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2021 Lorenzo Battistini @ TAKOBI
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
3+
4+
{
5+
"name": "Currency Rate Update: Banca d'Italia",
6+
"version": "18.0.1.0.0",
7+
"category": "Financial Management/Configuration",
8+
"summary": "Update exchange rates using www.bancaditalia.it",
9+
"author": "TAKOBI, " "Odoo Community Association (OCA)",
10+
"website": "https://github.com/OCA/l10n-italy",
11+
"maintainers": ["eLBati"],
12+
"license": "AGPL-3",
13+
"installable": True,
14+
"application": False,
15+
"depends": [
16+
"account",
17+
"currency_rate_update",
18+
],
19+
"pre_init_hook": "pre_absorb_old_module",
20+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
2+
3+
from openupgradelib import openupgrade
4+
5+
6+
def pre_absorb_old_module(env):
7+
if openupgrade.is_module_installed(env.cr, "currency_rate_update_boi"):
8+
openupgrade.update_module_names(
9+
env.cr,
10+
[
11+
(
12+
"currency_rate_update_boi",
13+
"l10n_it_currency_rate_update_boi",
14+
),
15+
],
16+
merge_modules=True,
17+
)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * currency_rate_update_boi
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: currency_rate_update_boi
17+
#: model:ir.model.fields.selection,name:currency_rate_update_boi.selection__res_currency_rate_provider__service__boi
18+
msgid "Bank of Italy"
19+
msgstr ""
20+
21+
#. module: currency_rate_update_boi
22+
#: model:ir.model,name:currency_rate_update_boi.model_res_currency_rate_provider
23+
msgid "Currency Rates Provider"
24+
msgstr ""
25+
26+
#. module: currency_rate_update_boi
27+
#: model:ir.model.fields,field_description:currency_rate_update_boi.field_res_currency_rate_provider__service
28+
msgid "Provider"
29+
msgstr ""
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * currency_rate_update_boi
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 12.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2023-12-27 19:36+0000\n"
10+
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
11+
"Language-Team: none\n"
12+
"Language: it\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.17\n"
18+
19+
#. module: currency_rate_update_boi
20+
#: model:ir.model.fields.selection,name:currency_rate_update_boi.selection__res_currency_rate_provider__service__boi
21+
msgid "Bank of Italy"
22+
msgstr "Banca d'Italia"
23+
24+
#. module: currency_rate_update_boi
25+
#: model:ir.model,name:currency_rate_update_boi.model_res_currency_rate_provider
26+
msgid "Currency Rates Provider"
27+
msgstr "Fornitore tassi di cambio"
28+
29+
#. module: currency_rate_update_boi
30+
#: model:ir.model.fields,field_description:currency_rate_update_boi.field_res_currency_rate_provider__display_name
31+
msgid "Display Name"
32+
msgstr "Nome visualizzato"
33+
34+
#. module: currency_rate_update_boi
35+
#: model:ir.model.fields,field_description:currency_rate_update_boi.field_res_currency_rate_provider__id
36+
msgid "ID"
37+
msgstr "ID"
38+
39+
#. module: currency_rate_update_boi
40+
#: model:ir.model.fields,field_description:currency_rate_update_boi.field_res_currency_rate_provider____last_update
41+
msgid "Last Modified on"
42+
msgstr "Ultima modifica il"
43+
44+
#. module: currency_rate_update_boi
45+
#: model:ir.model.fields,field_description:currency_rate_update_boi.field_res_currency_rate_provider__service
46+
msgid "Source Service"
47+
msgstr "Servizio Sorgente"
48+
49+
#~ msgid "European Central Bank"
50+
#~ msgstr "Banca Centrale Europea"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2+
3+
4+
from openupgradelib import openupgrade
5+
6+
from odoo.addons.l10n_it_currency_rate_update_boi import hooks
7+
8+
9+
@openupgrade.migrate()
10+
def migrate(env, version):
11+
# Used by OpenUpgrade when module is in `apriori`
12+
hooks.pre_absorb_old_module(env)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import res_currency_rate_provider_BOI

0 commit comments

Comments
 (0)