diff --git a/web_notify_upgrade/README.rst b/web_notify_upgrade/README.rst index 9346623b2..ac632893c 100644 --- a/web_notify_upgrade/README.rst +++ b/web_notify_upgrade/README.rst @@ -32,6 +32,10 @@ This module uses web_notify send a notification to every active users whenever a The notification will ask the user to refresh the page to get the latest changes. + +.. figure:: https://raw.githubusercontent.com/OCA/web/16.0/web_notify_upgrade/static/description/notify.png + :alt: Refresh page + **Table of contents** .. contents:: diff --git a/web_notify_upgrade/i18n/fr.po b/web_notify_upgrade/i18n/fr.po new file mode 100644 index 000000000..f7cc2012b --- /dev/null +++ b/web_notify_upgrade/i18n/fr.po @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * web_notify_upgrade +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: \n" +"PO-Revision-Date: \n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Poedit 3.0.1\n" + +#. module: web_notify_upgrade +#: model:ir.model,name:web_notify_upgrade.model_ir_model_data +msgid "Model Data" +msgstr "Model Data" + +#. module: web_notify_upgrade +#. odoo-python +#: code:addons/web_notify_upgrade/models/ir_model.py:0 +#, python-format +msgid "Reload" +msgstr "Recharger" + +#. module: web_notify_upgrade +#. odoo-python +#: code:addons/web_notify_upgrade/models/ir_model.py:0 +#, python-format +msgid "Your odoo instance has been upgraded, please reload the web page." +msgstr "Votre instance odoo a été mise à jour, merci de recharger la page web." diff --git a/web_notify_upgrade/i18n/web_notify_upgrade.pot b/web_notify_upgrade/i18n/web_notify_upgrade.pot index fc0b462ba..eafc4e86c 100644 --- a/web_notify_upgrade/i18n/web_notify_upgrade.pot +++ b/web_notify_upgrade/i18n/web_notify_upgrade.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -13,22 +13,28 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: web_notify_upgrade -#: model:ir.model.fields,field_description:web_notify_upgrade.field_ir_model_data__display_name -msgid "Display Name" -msgstr "" - -#. module: web_notify_upgrade -#: model:ir.model.fields,field_description:web_notify_upgrade.field_ir_model_data__id -msgid "ID" -msgstr "" - -#. module: web_notify_upgrade -#: model:ir.model.fields,field_description:web_notify_upgrade.field_ir_model_data____last_update -msgid "Last Modified on" -msgstr "" - #. module: web_notify_upgrade #: model:ir.model,name:web_notify_upgrade.model_ir_model_data msgid "Model Data" -msgstr "" +msgstr "Model Data" + +#. module: web_notify_upgrade +#. odoo-python +#: code:addons/web_notify_upgrade/models/ir_model.py:0 +#, python-format +msgid "Reload" +msgstr "Recharger" + +#. module: web_notify_upgrade +#. odoo-python +#: code:addons/web_notify_upgrade/models/ir_model.py:0 +#, python-format +msgid "Upgrade Notification" +msgstr "Notification de mise à jour" + +#. module: web_notify_upgrade +#. odoo-python +#: code:addons/web_notify_upgrade/models/ir_model.py:0 +#, python-format +msgid "Your odoo instance has been upgraded, please reload the web page." +msgstr "Votre instance odoo a été mise à jour, merci de recharger la page web." diff --git a/web_notify_upgrade/models/ir_model.py b/web_notify_upgrade/models/ir_model.py index 684bf3623..d973e4e36 100644 --- a/web_notify_upgrade/models/ir_model.py +++ b/web_notify_upgrade/models/ir_model.py @@ -3,7 +3,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import logging -from odoo import api, models +from odoo import _, api, models from odoo.addons.bus.models.bus_presence import AWAY_TIMER, DISCONNECTION_TIMER @@ -50,11 +50,12 @@ class IrModelData(models.Model): def _get_upgrade_notification_params(self): """Return the parameters to pass to the notify_info method.""" return dict( - message="Your odoo instance has been upgraded, " - "please reload the web page.
" + message=_( + "Your odoo instance has been upgraded, " "please reload the web page." + ) + + "
" '", - title="Upgrade Notification", + '' + _("Reload") + "", + title=_("Upgrade Notification"), sticky=True, ) diff --git a/web_notify_upgrade/readme/DESCRIPTION.rst b/web_notify_upgrade/readme/DESCRIPTION.rst index 854e257a6..49656f4d6 100644 --- a/web_notify_upgrade/readme/DESCRIPTION.rst +++ b/web_notify_upgrade/readme/DESCRIPTION.rst @@ -1,3 +1,7 @@ This module uses web_notify send a notification to every active users whenever a module has been installed or upgraded. The notification will ask the user to refresh the page to get the latest changes. + + +.. figure:: ../static/description/notify.png + :alt: Refresh page diff --git a/web_notify_upgrade/static/description/icon.png b/web_notify_upgrade/static/description/icon.png deleted file mode 100644 index 3a0328b51..000000000 Binary files a/web_notify_upgrade/static/description/icon.png and /dev/null differ diff --git a/web_notify_upgrade/static/description/index.html b/web_notify_upgrade/static/description/index.html index 35f304af5..61d39b54d 100644 --- a/web_notify_upgrade/static/description/index.html +++ b/web_notify_upgrade/static/description/index.html @@ -371,6 +371,9 @@ ul.auto-toc {

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

This module uses web_notify send a notification to every active users whenever a module has been installed or upgraded.

The notification will ask the user to refresh the page to get the latest changes.

+
+Refresh page +

Table of contents