Skip to content

Commit 8db7d56

Browse files
committed
Merge PR #211 into 19.0
Signed-off-by ivs-cetmix
2 parents 1cb38c1 + 5ebaa52 commit 8db7d56

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+33062
-0
lines changed

currency_rate_update/README.rst

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
.. image:: https://odoo-community.org/readme-banner-image
2+
:target: https://odoo-community.org/get-involved?utm_source=readme
3+
:alt: Odoo Community Association
4+
5+
====================
6+
Currency Rate Update
7+
====================
8+
9+
..
10+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11+
!! This file is generated by oca-gen-addon-readme !!
12+
!! changes will be overwritten. !!
13+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14+
!! source digest: sha256:8c24083f326d9e4d44e523b14e6cd1bbcca49bfd938111dbdd06ea3860c405b6
15+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16+
17+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
18+
:target: https://odoo-community.org/page/development-status
19+
:alt: Beta
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
21+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
22+
:alt: License: AGPL-3
23+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcurrency-lightgray.png?logo=github
24+
:target: https://github.com/OCA/currency/tree/19.0/currency_rate_update
25+
:alt: OCA/currency
26+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27+
:target: https://translation.odoo-community.org/projects/currency-19-0/currency-19-0-currency_rate_update
28+
:alt: Translate me on Weblate
29+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/currency&target_branch=19.0
31+
:alt: Try me on Runboat
32+
33+
|badge1| |badge2| |badge3| |badge4| |badge5|
34+
35+
This module provides base for building exchange rates providers and
36+
bundles following built-in providers:
37+
38+
- **European Central Bank** (ported by Grzegorz Grzelak -
39+
OpenGLOBE.pl): reference rates are based on the regular daily query
40+
procedure between central banks within and outside the European
41+
System of Central Banks, which normally takes place at 2:15 p.m.
42+
(14:15) ECB time. Source is in EUR, for more details see
43+
`corresponding ECB
44+
page <https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html>`__.
45+
46+
This module is compatible with ``currency_rate_inverted`` module
47+
provided by OCA, that allows to maintain exchange rates in inverted
48+
format, helping to resolve rounding issues.
49+
50+
**Table of contents**
51+
52+
.. contents::
53+
:local:
54+
55+
Configuration
56+
=============
57+
58+
To enable scheduled currency rates update:
59+
60+
# Go to *Invoicing > Configuration > Settings* # Ensure *Automatic
61+
Currency Rates (OCA)* is checked
62+
63+
To configure currency rates providers:
64+
65+
# Go to *Invoicing > Configuration > Currency Rates Providers* # Create
66+
and configure one or more providers
67+
68+
Usage
69+
=====
70+
71+
To update historical currency rates:
72+
73+
# Go to *Invoicing > Configuration > Currency Rates Providers* # Select
74+
specific providers # Launch *Actions > Update Rates Wizard* # Configure
75+
date interval and click *Update*
76+
77+
Bug Tracker
78+
===========
79+
80+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/currency/issues>`_.
81+
In case of trouble, please check there if your issue has already been reported.
82+
If you spotted it first, help us to smash it by providing a detailed and welcomed
83+
`feedback <https://github.com/OCA/currency/issues/new?body=module:%20currency_rate_update%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
84+
85+
Do not contact contributors directly about support or help with technical issues.
86+
87+
Credits
88+
=======
89+
90+
Authors
91+
-------
92+
93+
* Camptocamp
94+
* CorporateHub
95+
96+
Contributors
97+
------------
98+
99+
- Nicolas Bessi <nicolas.bessi@camptocamp.com>
100+
- Jean-Baptiste Aubort <jean-baptiste.aubort@camptocamp.com>
101+
- Joël Grand-Guillaume <joel.grandguillaume@camptocamp.com>
102+
- Grzegorz Grzelak <grzegorz.grzelak@openglobe.pl> (ECB, NBP)
103+
- Vincent Renaville <vincent.renaville@camptocamp.com>
104+
- Yannick Vaucher <yannick.vaucher@camptocamp.com>
105+
- Guewen Baconnier <guewen.baconnier@camptocamp.com>
106+
- Lorenzo Battistini <lorenzo.battistini@agilebg.com> (Port to V7)
107+
- Agustin Cruz <openpyme.mx> (BdM)
108+
- Jacque-Etienne Baudoux <je@bcim.be>
109+
- Juan Jose Scarafia <jjscarafia@paintballrosario.com.ar>
110+
- Mathieu Benoi <mathben963@gmail.com>
111+
- Fekete Mihai <feketemihai@gmail.com> (Port to V8)
112+
- Dorin Hongu <dhongu@gmail.com> (BNR)
113+
- Paul McDermott
114+
- Alexis de Lattre <alexis@via.ecp.fr>
115+
- Miku Laitinen
116+
- Assem Bayahi
117+
- Daniel Dico <ddico@oerp.ca> (BOC)
118+
- Dmytro Katyukha <firemage.dima@gmail.com>
119+
- Jesús Ventosinos Mayor <jesus@comunitea.com>
120+
- `CorporateHub <https://corporatehub.eu/>`__
121+
122+
- Alexey Pelykh <alexey.pelykh@corphub.eu>
123+
124+
- `Quartile Limited <https://www.quartile.co/>`__:
125+
126+
- Tatsuki Kanda <kanda@quartile.co>
127+
128+
- `Komit Company Limited <https://komit-consulting.com/>`__:
129+
130+
- Quoc Pham Ngoc <quoc-pn@komit-consulting.com>
131+
132+
Maintainers
133+
-----------
134+
135+
This module is maintained by the OCA.
136+
137+
.. image:: https://odoo-community.org/logo.png
138+
:alt: Odoo Community Association
139+
:target: https://odoo-community.org
140+
141+
OCA, or the Odoo Community Association, is a nonprofit organization whose
142+
mission is to support the collaborative development of Odoo features and
143+
promote its widespread use.
144+
145+
This module is part of the `OCA/currency <https://github.com/OCA/currency/tree/19.0/currency_rate_update>`_ project on GitHub.
146+
147+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

currency_rate_update/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
2+
3+
from . import models
4+
from . import wizards
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright 2008-2016 Camptocamp
2+
# Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
3+
# Copyright 2020 CorporateHub (https://corporatehub.eu)
4+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
5+
6+
{
7+
"name": "Currency Rate Update",
8+
"version": "19.0.1.0.1",
9+
"author": "Camptocamp, CorporateHub, Odoo Community Association (OCA)",
10+
"website": "https://github.com/OCA/currency",
11+
"license": "AGPL-3",
12+
"category": "Financial Management/Configuration",
13+
"summary": "Update exchange rates using OCA modules",
14+
"depends": ["base", "mail", "account"],
15+
"data": [
16+
"data/cron.xml",
17+
"security/ir.model.access.csv",
18+
"security/res_currency_rate_provider.xml",
19+
"wizards/res_currency_rate_update_wizard.xml",
20+
"views/res_currency_rate.xml",
21+
"views/res_currency_rate_provider.xml",
22+
"views/res_config_settings.xml",
23+
],
24+
"installable": True,
25+
}

currency_rate_update/data/cron.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" ?>
2+
<!--
3+
Copyright 2019 Brainbean Apps (https://brainbeanapps.com)
4+
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
5+
-->
6+
<odoo noupdate="1">
7+
<record model="ir.cron" id="ir_cron_currency_rates_update_every_day">
8+
<field name="name">Currency Rates Update (OCA) daily</field>
9+
<field name="interval_number">1</field>
10+
<field name="interval_type">days</field>
11+
<field name="state">code</field>
12+
<field name="nextcall">2019-01-01 00:01:00</field>
13+
<field
14+
name="model_id"
15+
ref="currency_rate_update.model_res_currency_rate_provider"
16+
/>
17+
<field name="code">model._scheduled_update()</field>
18+
</record>
19+
</odoo>

0 commit comments

Comments
 (0)