Skip to content

Commit 1e63e56

Browse files
committed
Merge PR #202 into 18.0
Signed-off-by bguillot
2 parents d330c1b + f6f3915 commit 1e63e56

23 files changed

Lines changed: 1067 additions & 0 deletions
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
========================
2+
Currency Old Rate Notify
3+
========================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:7e5282e5571a806f8b97996c4d64363702cf7a7db49e9ea5c33bbc8fbba6baea
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%2Fcurrency-lightgray.png?logo=github
20+
:target: https://github.com/OCA/currency/tree/18.0/currency_old_rate_notify
21+
:alt: OCA/currency
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/currency-18-0/currency-18-0-currency_old_rate_notify
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/currency&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module notifies users of the group *Billing Administrator* when
32+
currency rates are older than 3 days (this default number of days can be
33+
modified).
34+
35+
|image1|
36+
37+
When Odoo converts an amount to another currency at date D in company C,
38+
it takes the currency rate of company C (or with an empty *Company*
39+
field) that is dated date D or the closest rate before date D. But Odoo
40+
doesn't say anything when there is no rate on date D and the closest
41+
rate before date D is far away in the past. This is a real problem
42+
because the converted amount may be irrelevant!
43+
44+
This module provides a daily monitoring of the necessity to always have
45+
up-to-date rates in your Odoo database.
46+
47+
If the user is allowed in several companies, the notification pop-up
48+
will display, for each currency, in which companies the lastest rate is
49+
too old.
50+
51+
.. |image1| image:: https://raw.githubusercontent.com/OCA/currency/18.0/currency_old_rate_notify/static/description/notify_old_rates.png
52+
53+
**Table of contents**
54+
55+
.. contents::
56+
:local:
57+
58+
Configuration
59+
=============
60+
61+
Go to the menu *Invoicing > Configuration > Settings*: in the
62+
**Currencies** section, you can change the limit above which users
63+
receive a warning if the last currency rate is older than this number of
64+
days (3 by default).
65+
66+
Bug Tracker
67+
===========
68+
69+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/currency/issues>`_.
70+
In case of trouble, please check there if your issue has already been reported.
71+
If you spotted it first, help us to smash it by providing a detailed and welcomed
72+
`feedback <https://github.com/OCA/currency/issues/new?body=module:%20currency_old_rate_notify%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
73+
74+
Do not contact contributors directly about support or help with technical issues.
75+
76+
Credits
77+
=======
78+
79+
Authors
80+
-------
81+
82+
* Akretion
83+
84+
Contributors
85+
------------
86+
87+
- Alexis de Lattre <alexis.delattre@akretion.com>
88+
89+
Maintainers
90+
-----------
91+
92+
This module is maintained by the OCA.
93+
94+
.. image:: https://odoo-community.org/logo.png
95+
:alt: Odoo Community Association
96+
:target: https://odoo-community.org
97+
98+
OCA, or the Odoo Community Association, is a nonprofit organization whose
99+
mission is to support the collaborative development of Odoo features and
100+
promote its widespread use.
101+
102+
.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
103+
:target: https://github.com/alexis-via
104+
:alt: alexis-via
105+
106+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
107+
108+
|maintainer-alexis-via|
109+
110+
This module is part of the `OCA/currency <https://github.com/OCA/currency/tree/18.0/currency_old_rate_notify>`_ project on GitHub.
111+
112+
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 . import wizards
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2022 Akretion France (http://www.akretion.com/)
2+
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4+
5+
{
6+
"name": "Currency Old Rate Notify",
7+
"version": "18.0.1.0.0",
8+
"category": "Accounting",
9+
"license": "AGPL-3",
10+
"summary": "Notify accounting managers when currency rates are too old",
11+
"author": "Akretion,Odoo Community Association (OCA)",
12+
"maintainers": ["alexis-via"],
13+
"website": "https://github.com/OCA/currency",
14+
"depends": ["account", "web_notify"],
15+
"data": [
16+
"data/ir_config_parameter.xml",
17+
"data/ir_cron.xml",
18+
"wizards/res_config_settings.xml",
19+
],
20+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
Copyright 2022 Akretion France (http://www.akretion.com/)
4+
@author: Alexis de Lattre <alexis.delattre@akretion.com>
5+
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
6+
-->
7+
<odoo noupdate="1">
8+
<record
9+
id="currency_old_rate_notify_max_days"
10+
model="ir.config_parameter"
11+
forcecreate="False"
12+
>
13+
<field name="key">currency_old_rate_notify.max_days</field>
14+
<field name="value">3</field>
15+
</record>
16+
</odoo>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
Copyright 2022 Akretion France (https://www.akretion.com/)
4+
@author: Alexis de Lattre <alexis.delattre@akretion.com>
5+
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
6+
-->
7+
<odoo noupdate="1">
8+
<record id="notify_rates_too_old_cron" model="ir.cron">
9+
<field name="name">Currency rates: notify if too old</field>
10+
<field name="active" eval="True" />
11+
<field name="user_id" ref="base.user_root" />
12+
<field name="interval_number">1</field>
13+
<field name="interval_type">days</field>
14+
<field name="model_id" ref="base.model_res_currency_rate" />
15+
<field name="state">code</field>
16+
<field name="code">model.notify_rates_too_old()</field>
17+
</record>
18+
</odoo>
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * currency_old_rate_notify
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_old_rate_notify
17+
#: model_terms:ir.ui.view,arch_db:currency_old_rate_notify.res_config_settings_view_form
18+
msgid "<span class=\"col-lg-1 o_light_label oe_inline\">days</span>"
19+
msgstr ""
20+
21+
#. module: currency_old_rate_notify
22+
#: model_terms:ir.ui.view,arch_db:currency_old_rate_notify.res_config_settings_view_form
23+
msgid "<span class=\"o_form_label\">Warn when currency rates are too old</span>"
24+
msgstr ""
25+
26+
#. module: currency_old_rate_notify
27+
#: model:ir.model,name:currency_old_rate_notify.model_res_config_settings
28+
msgid "Config Settings"
29+
msgstr ""
30+
31+
#. module: currency_old_rate_notify
32+
#: model:ir.model,name:currency_old_rate_notify.model_res_currency_rate
33+
msgid "Currency Rate"
34+
msgstr ""
35+
36+
#. module: currency_old_rate_notify
37+
#. odoo-python
38+
#: code:addons/currency_old_rate_notify/models/res_currency_rate.py:0
39+
#, python-format
40+
msgid "Currency rates older than %d days"
41+
msgstr ""
42+
43+
#. module: currency_old_rate_notify
44+
#: model:ir.actions.server,name:currency_old_rate_notify.notify_rates_too_old_cron_ir_actions_server
45+
#: model:ir.cron,cron_name:currency_old_rate_notify.notify_rates_too_old_cron
46+
msgid "Currency rates: notify if too old"
47+
msgstr ""
48+
49+
#. module: currency_old_rate_notify
50+
#: model:ir.model.fields,field_description:currency_old_rate_notify.field_res_config_settings__currency_old_rate_notify_days
51+
msgid "Warn when currency rates are older than"
52+
msgstr ""
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * currency_old_rate_notify
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2023-09-05 21:37+0000\n"
10+
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
11+
"Language-Team: none\n"
12+
"Language: es\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_old_rate_notify
20+
#: model_terms:ir.ui.view,arch_db:currency_old_rate_notify.res_config_settings_view_form
21+
msgid "<span class=\"col-lg-1 o_light_label oe_inline\">days</span>"
22+
msgstr ""
23+
24+
#. module: currency_old_rate_notify
25+
#: model_terms:ir.ui.view,arch_db:currency_old_rate_notify.res_config_settings_view_form
26+
msgid ""
27+
"<span class=\"o_form_label\">Warn when currency rates are too old</span>"
28+
msgstr ""
29+
30+
#. module: currency_old_rate_notify
31+
#: model:ir.model,name:currency_old_rate_notify.model_res_config_settings
32+
msgid "Config Settings"
33+
msgstr ""
34+
35+
#. module: currency_old_rate_notify
36+
#: model:ir.model,name:currency_old_rate_notify.model_res_currency_rate
37+
msgid "Currency Rate"
38+
msgstr "Valor de divisa"
39+
40+
#. module: currency_old_rate_notify
41+
#. odoo-python
42+
#: code:addons/currency_old_rate_notify/models/res_currency_rate.py:0
43+
#, python-format
44+
msgid "Currency rates older than %d days"
45+
msgstr "Divisas con una antigüedad superior a %d días"
46+
47+
#. module: currency_old_rate_notify
48+
#: model:ir.actions.server,name:currency_old_rate_notify.notify_rates_too_old_cron_ir_actions_server
49+
#: model:ir.cron,cron_name:currency_old_rate_notify.notify_rates_too_old_cron
50+
msgid "Currency rates: notify if too old"
51+
msgstr "Tipos de divisa: notificar si son demasiado antiguos"
52+
53+
#. module: currency_old_rate_notify
54+
#: model:ir.model.fields,field_description:currency_old_rate_notify.field_res_config_settings__currency_old_rate_notify_days
55+
msgid "Warn when currency rates are older than"
56+
msgstr ""
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * currency_old_rate_notify
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2022-09-23 18:41+0000\n"
10+
"PO-Revision-Date: 2023-06-20 16:09+0000\n"
11+
"Last-Translator: Alexis de Lattre <alexis@via.ecp.fr>\n"
12+
"Language-Team: \n"
13+
"Language: fr\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: \n"
17+
"Plural-Forms: nplurals=2; plural=n > 1;\n"
18+
"X-Generator: Weblate 4.17\n"
19+
20+
#. module: currency_old_rate_notify
21+
#: model_terms:ir.ui.view,arch_db:currency_old_rate_notify.res_config_settings_view_form
22+
msgid "<span class=\"col-lg-1 o_light_label oe_inline\">days</span>"
23+
msgstr ""
24+
25+
#. module: currency_old_rate_notify
26+
#: model_terms:ir.ui.view,arch_db:currency_old_rate_notify.res_config_settings_view_form
27+
msgid ""
28+
"<span class=\"o_form_label\">Warn when currency rates are too old</span>"
29+
msgstr ""
30+
31+
#. module: currency_old_rate_notify
32+
#: model:ir.model,name:currency_old_rate_notify.model_res_config_settings
33+
msgid "Config Settings"
34+
msgstr ""
35+
36+
#. module: currency_old_rate_notify
37+
#: model:ir.model,name:currency_old_rate_notify.model_res_currency_rate
38+
msgid "Currency Rate"
39+
msgstr "Taux de change"
40+
41+
#. module: currency_old_rate_notify
42+
#. odoo-python
43+
#: code:addons/currency_old_rate_notify/models/res_currency_rate.py:0
44+
#, python-format
45+
msgid "Currency rates older than %d days"
46+
msgstr "Taux de change de plus de %d jours"
47+
48+
#. module: currency_old_rate_notify
49+
#: model:ir.actions.server,name:currency_old_rate_notify.notify_rates_too_old_cron_ir_actions_server
50+
#: model:ir.cron,cron_name:currency_old_rate_notify.notify_rates_too_old_cron
51+
msgid "Currency rates: notify if too old"
52+
msgstr "Taux de change : préviens si trop vieux"
53+
54+
#. module: currency_old_rate_notify
55+
#: model:ir.model.fields,field_description:currency_old_rate_notify.field_res_config_settings__currency_old_rate_notify_days
56+
msgid "Warn when currency rates are older than"
57+
msgstr ""
58+
59+
#~ msgid "Display Name"
60+
#~ msgstr "Nom à afficher"
61+
62+
#~ msgid "Last Modified on"
63+
#~ msgstr "Dernière modification le"

0 commit comments

Comments
 (0)