[MIG] scheduler_error_mailer: Migration to 11.0

[UPD] Update scheduler_error_mailer.pot
pull/2602/head
Achref Mhadhbi 2018-06-21 12:15:53 +02:00 committed by OCA-git-bot
parent 66ae223448
commit 9f32061d59
14 changed files with 411 additions and 89 deletions

View File

@ -24,7 +24,7 @@ To use this module, you need to:
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/10.0
:target: https://runbot.odoo-community.org/runbot/149/11.0
Bug Tracker
===========
@ -49,6 +49,7 @@ Contributors
* David Beal <bealdavid@gmail.com>
* Alexis de Lattre <alexis.delattre@akretion.com>
* Sodexis <dev@sodexis.com>
* Achraf Mhadhbi <machraf@bloopark.de>
Maintainer

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# © 2012-2013 Akretion Sébastien BEAU,David Beal,Alexis de Lattre
# © 2016 Sodexis
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

View File

@ -1,11 +1,11 @@
# -*- coding: utf-8 -*-
# © 2012-2013 Akretion Sébastien BEAU,David Beal,Alexis de Lattre
# © 2016 Sodexis
# © 2018 bloopark systems (<http://bloopark.de>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Scheduler Error Mailer',
'version': '10.0.1.0.0',
'version': '11.0.1.0.0',
'category': 'Extra Tools',
'license': 'AGPL-3',
'author': "Akretion,Sodexis,Odoo Community Association (OCA)",

View File

@ -3,6 +3,7 @@
scheduler_error_mailer for Odoo
Copyright (C) 2012-2013 Akretion Sébastien BEAU,David Beal,Alexis de Lattre
Copyright (C) 2016 Sodexis
Copyright (C) 2018 bloopark systems (<http://bloopark.de>)
The licence is in the file __openerp__.py
-->
@ -18,8 +19,9 @@
<field name="numbercall">-1</field>
<!-- don't limit the number of calls -->
<field name="doall" eval="True"/>
<field name="model">ir.cron</field>
<field name="function">_test_scheduler_failure</field>
<field name="model_id" ref="model_ir_cron"/>
<field name="state">code</field>
<field name="code">model._test_scheduler_failure()</field>
<field name="email_template_id" ref="scheduler_error_mailer.scheduler_error_mailer"/>
</record>

View File

@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * scheduler_error_mailer
#
#
# Translators:
# Niki Waibel <niki.waibel@gmail.com>, 2017
msgid ""
@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2017-02-08 03:37+0000\n"
"Last-Translator: Niki Waibel <niki.waibel@gmail.com>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: scheduler_error_mailer
@ -23,22 +23,28 @@ msgstr ""
msgid ""
"\n"
" \n"
"<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
"<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
"serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
"\n"
"<p>Odoo tried to run the scheduler <em>${object.name or ''}</em> in the database <em>${ctx.get('dbname')}</em> but it failed. Here is the error message :</p>\n"
"<p>Odoo tried to run the scheduler <em>${object.name or ''}</em> in the "
"database <em>${ctx.get('dbname')}</em> but it failed. Here is the error "
"message :</p>\n"
"\n"
"<strong>\n"
"${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}\n"
"${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to "
"get the error message from the context.'}\n"
"</strong>\n"
"\n"
"<p>You may check the logs of the Odoo server to get more information about this failure.</p>\n"
"<p>You may check the logs of the Odoo server to get more information about "
"this failure.</p>\n"
"\n"
"<p>Properties of the scheduler <em>${object.name or ''}</em> :</p>\n"
"<ul>\n"
"<li>Model : ${object.model or ''}</li>\n"
"<li>Method : ${object.function or ''}</li>\n"
"<li>Arguments : ${object.args or ''}</li>\n"
"<li>Interval : ${object.interval_number or '0'} ${object.interval_type or ''}</li>\n"
"<li>Interval : ${object.interval_number or '0'} ${object.interval_type or ''}"
"</li>\n"
"<li>Number of calls : ${object.numbercall or '0'}</li>\n"
"<li>Repeat missed : ${object.doall}</li>\n"
"<li>User : ${object.user_id.name or ''}</li>\n"
@ -54,13 +60,39 @@ msgid ""
" "
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_channel_ids
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_channel_ids
msgid "Add Channels"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_partner_ids
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_partner_ids
msgid "Add Followers"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_template_id
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_template_id
#, fuzzy
msgid "Email Template"
msgstr "Fehler e-Mail Vorlage"
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_email_template_id
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_email_template_id
msgid "Error E-mail Template"
msgstr "Fehler e-Mail Vorlage"
#. module: scheduler_error_mailer
#: model:ir.model,name:scheduler_error_mailer.model_ir_cron
msgid "Scheduled Actions"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,help:scheduler_error_mailer.field_ir_cron_email_template_id
#: model:ir.model.fields,help:scheduler_error_mailer.field_nsca_check_email_template_id
msgid "Select the email template that will be sent when this scheduler fails."
msgstr ""
"Wähle die e-Mail Vorlage welche bei einem Fehler dieses Schedulers gesendet "
@ -72,12 +104,17 @@ msgstr ""
msgid "Task failure with UID = %d."
msgstr "Task Fehler von UID = %d."
#. module: scheduler_error_mailer
#: model:ir.actions.server,name:scheduler_error_mailer.test_scheduler_error_mailer_ir_actions_server
#: model:ir.cron,cron_name:scheduler_error_mailer.test_scheduler_error_mailer
#: model:ir.cron,name:scheduler_error_mailer.test_scheduler_error_mailer
msgid "Test Scheduler Error Mailer"
msgstr ""
#. module: scheduler_error_mailer
#: model:mail.template,subject:scheduler_error_mailer.scheduler_error_mailer
msgid "[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FAILED"
msgstr "[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FEHLER"
#. module: scheduler_error_mailer
#: model:ir.model,name:scheduler_error_mailer.model_ir_cron
msgid "ir.cron"
msgstr "ir.cron"
#~ msgid "ir.cron"
#~ msgstr "ir.cron"

View File

@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * scheduler_error_mailer
#
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Fernando Lara <gennesis45@gmail.com>, 2017
@ -13,10 +13,10 @@ msgstr ""
"PO-Revision-Date: 2017-02-22 00:55+0000\n"
"Last-Translator: Fernando Lara <gennesis45@gmail.com>, 2017\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: scheduler_error_mailer
@ -24,22 +24,28 @@ msgstr ""
msgid ""
"\n"
" \n"
"<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
"<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
"serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
"\n"
"<p>Odoo tried to run the scheduler <em>${object.name or ''}</em> in the database <em>${ctx.get('dbname')}</em> but it failed. Here is the error message :</p>\n"
"<p>Odoo tried to run the scheduler <em>${object.name or ''}</em> in the "
"database <em>${ctx.get('dbname')}</em> but it failed. Here is the error "
"message :</p>\n"
"\n"
"<strong>\n"
"${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}\n"
"${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to "
"get the error message from the context.'}\n"
"</strong>\n"
"\n"
"<p>You may check the logs of the Odoo server to get more information about this failure.</p>\n"
"<p>You may check the logs of the Odoo server to get more information about "
"this failure.</p>\n"
"\n"
"<p>Properties of the scheduler <em>${object.name or ''}</em> :</p>\n"
"<ul>\n"
"<li>Model : ${object.model or ''}</li>\n"
"<li>Method : ${object.function or ''}</li>\n"
"<li>Arguments : ${object.args or ''}</li>\n"
"<li>Interval : ${object.interval_number or '0'} ${object.interval_type or ''}</li>\n"
"<li>Interval : ${object.interval_number or '0'} ${object.interval_type or ''}"
"</li>\n"
"<li>Number of calls : ${object.numbercall or '0'}</li>\n"
"<li>Repeat missed : ${object.doall}</li>\n"
"<li>User : ${object.user_id.name or ''}</li>\n"
@ -55,13 +61,39 @@ msgid ""
" "
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_channel_ids
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_channel_ids
msgid "Add Channels"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_partner_ids
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_partner_ids
msgid "Add Followers"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_template_id
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_template_id
#, fuzzy
msgid "Email Template"
msgstr "Plantilla de correo electrónico de error"
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_email_template_id
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_email_template_id
msgid "Error E-mail Template"
msgstr "Plantilla de correo electrónico de error"
#. module: scheduler_error_mailer
#: model:ir.model,name:scheduler_error_mailer.model_ir_cron
msgid "Scheduled Actions"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,help:scheduler_error_mailer.field_ir_cron_email_template_id
#: model:ir.model.fields,help:scheduler_error_mailer.field_nsca_check_email_template_id
msgid "Select the email template that will be sent when this scheduler fails."
msgstr ""
"Seleccione la plantilla de correo electrónico que se enviará cuando falla "
@ -73,12 +105,17 @@ msgstr ""
msgid "Task failure with UID = %d."
msgstr "Error de Tarea con UID = %d."
#. module: scheduler_error_mailer
#: model:ir.actions.server,name:scheduler_error_mailer.test_scheduler_error_mailer_ir_actions_server
#: model:ir.cron,cron_name:scheduler_error_mailer.test_scheduler_error_mailer
#: model:ir.cron,name:scheduler_error_mailer.test_scheduler_error_mailer
msgid "Test Scheduler Error Mailer"
msgstr ""
#. module: scheduler_error_mailer
#: model:mail.template,subject:scheduler_error_mailer.scheduler_error_mailer
msgid "[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FAILED"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model,name:scheduler_error_mailer.model_ir_cron
msgid "ir.cron"
msgstr "ir.cron"
#~ msgid "ir.cron"
#~ msgstr "ir.cron"

View File

@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * scheduler_error_mailer
#
#
# Translators:
# Bole <bole@dajmi5.com>, 2018
msgid ""
@ -12,33 +12,40 @@ msgstr ""
"PO-Revision-Date: 2018-03-02 18:41+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2018\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: hr\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: scheduler_error_mailer
#: model:mail.template,body_html:scheduler_error_mailer.scheduler_error_mailer
msgid ""
"\n"
" \n"
"<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
"<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
"serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
"\n"
"<p>Odoo tried to run the scheduler <em>${object.name or ''}</em> in the database <em>${ctx.get('dbname')}</em> but it failed. Here is the error message :</p>\n"
"<p>Odoo tried to run the scheduler <em>${object.name or ''}</em> in the "
"database <em>${ctx.get('dbname')}</em> but it failed. Here is the error "
"message :</p>\n"
"\n"
"<strong>\n"
"${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}\n"
"${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to "
"get the error message from the context.'}\n"
"</strong>\n"
"\n"
"<p>You may check the logs of the Odoo server to get more information about this failure.</p>\n"
"<p>You may check the logs of the Odoo server to get more information about "
"this failure.</p>\n"
"\n"
"<p>Properties of the scheduler <em>${object.name or ''}</em> :</p>\n"
"<ul>\n"
"<li>Model : ${object.model or ''}</li>\n"
"<li>Method : ${object.function or ''}</li>\n"
"<li>Arguments : ${object.args or ''}</li>\n"
"<li>Interval : ${object.interval_number or '0'} ${object.interval_type or ''}</li>\n"
"<li>Interval : ${object.interval_number or '0'} ${object.interval_type or ''}"
"</li>\n"
"<li>Number of calls : ${object.numbercall or '0'}</li>\n"
"<li>Repeat missed : ${object.doall}</li>\n"
"<li>User : ${object.user_id.name or ''}</li>\n"
@ -54,13 +61,38 @@ msgid ""
" "
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_channel_ids
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_channel_ids
msgid "Add Channels"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_partner_ids
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_partner_ids
msgid "Add Followers"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_template_id
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_template_id
msgid "Email Template"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_email_template_id
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_email_template_id
msgid "Error E-mail Template"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model,name:scheduler_error_mailer.model_ir_cron
msgid "Scheduled Actions"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,help:scheduler_error_mailer.field_ir_cron_email_template_id
#: model:ir.model.fields,help:scheduler_error_mailer.field_nsca_check_email_template_id
msgid "Select the email template that will be sent when this scheduler fails."
msgstr ""
@ -70,12 +102,17 @@ msgstr ""
msgid "Task failure with UID = %d."
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.actions.server,name:scheduler_error_mailer.test_scheduler_error_mailer_ir_actions_server
#: model:ir.cron,cron_name:scheduler_error_mailer.test_scheduler_error_mailer
#: model:ir.cron,name:scheduler_error_mailer.test_scheduler_error_mailer
msgid "Test Scheduler Error Mailer"
msgstr ""
#. module: scheduler_error_mailer
#: model:mail.template,subject:scheduler_error_mailer.scheduler_error_mailer
msgid "[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FAILED"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model,name:scheduler_error_mailer.model_ir_cron
msgid "ir.cron"
msgstr "ir.cron"
#~ msgid "ir.cron"
#~ msgstr "ir.cron"

View File

@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * scheduler_error_mailer
#
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
@ -11,11 +11,12 @@ msgstr ""
"POT-Creation-Date: 2016-08-06 02:49+0000\n"
"PO-Revision-Date: 2016-08-06 02:49+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/"
"teams/23907/pt_BR/)\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: pt_BR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: scheduler_error_mailer
@ -23,22 +24,28 @@ msgstr ""
msgid ""
"\n"
" \n"
"<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
"<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
"serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
"\n"
"<p>Odoo tried to run the scheduler <em>${object.name or ''}</em> in the database <em>${ctx.get('dbname')}</em> but it failed. Here is the error message :</p>\n"
"<p>Odoo tried to run the scheduler <em>${object.name or ''}</em> in the "
"database <em>${ctx.get('dbname')}</em> but it failed. Here is the error "
"message :</p>\n"
"\n"
"<strong>\n"
"${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}\n"
"${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to "
"get the error message from the context.'}\n"
"</strong>\n"
"\n"
"<p>You may check the logs of the Odoo server to get more information about this failure.</p>\n"
"<p>You may check the logs of the Odoo server to get more information about "
"this failure.</p>\n"
"\n"
"<p>Properties of the scheduler <em>${object.name or ''}</em> :</p>\n"
"<ul>\n"
"<li>Model : ${object.model or ''}</li>\n"
"<li>Method : ${object.function or ''}</li>\n"
"<li>Arguments : ${object.args or ''}</li>\n"
"<li>Interval : ${object.interval_number or '0'} ${object.interval_type or ''}</li>\n"
"<li>Interval : ${object.interval_number or '0'} ${object.interval_type or ''}"
"</li>\n"
"<li>Number of calls : ${object.numbercall or '0'}</li>\n"
"<li>Repeat missed : ${object.doall}</li>\n"
"<li>User : ${object.user_id.name or ''}</li>\n"
@ -54,13 +61,39 @@ msgid ""
" "
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_channel_ids
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_channel_ids
msgid "Add Channels"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_partner_ids
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_partner_ids
msgid "Add Followers"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_template_id
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_template_id
#, fuzzy
msgid "Email Template"
msgstr "Modelo de Erro de E-mail"
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_email_template_id
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_email_template_id
msgid "Error E-mail Template"
msgstr "Modelo de Erro de E-mail"
#. module: scheduler_error_mailer
#: model:ir.model,name:scheduler_error_mailer.model_ir_cron
msgid "Scheduled Actions"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,help:scheduler_error_mailer.field_ir_cron_email_template_id
#: model:ir.model.fields,help:scheduler_error_mailer.field_nsca_check_email_template_id
msgid "Select the email template that will be sent when this scheduler fails."
msgstr ""
"Selecione o modelo de email que será enviado quando o agendador falhar."
@ -71,12 +104,14 @@ msgstr ""
msgid "Task failure with UID = %d."
msgstr "Tarefa falhou com UID = %d."
#. module: scheduler_error_mailer
#: model:ir.actions.server,name:scheduler_error_mailer.test_scheduler_error_mailer_ir_actions_server
#: model:ir.cron,cron_name:scheduler_error_mailer.test_scheduler_error_mailer
#: model:ir.cron,name:scheduler_error_mailer.test_scheduler_error_mailer
msgid "Test Scheduler Error Mailer"
msgstr ""
#. module: scheduler_error_mailer
#: model:mail.template,subject:scheduler_error_mailer.scheduler_error_mailer
msgid "[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FAILED"
msgstr "[DB ${ctx.get('dbname')}] Agendador '${object.name or ''}' FALHOU"
#. module: scheduler_error_mailer
#: model:ir.model,name:scheduler_error_mailer.model_ir_cron
msgid "ir.cron"
msgstr ""

View File

@ -0,0 +1,103 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * scheduler_error_mailer
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: scheduler_error_mailer
#: model:mail.template,body_html:scheduler_error_mailer.scheduler_error_mailer
msgid "\n"
" \n"
"<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
"\n"
"<p>Odoo tried to run the scheduler <em>${object.name or ''}</em> in the database <em>${ctx.get('dbname')}</em> but it failed. Here is the error message :</p>\n"
"\n"
"<strong>\n"
"${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}\n"
"</strong>\n"
"\n"
"<p>You may check the logs of the Odoo server to get more information about this failure.</p>\n"
"\n"
"<p>Properties of the scheduler <em>${object.name or ''}</em> :</p>\n"
"<ul>\n"
"<li>Model : ${object.model or ''}</li>\n"
"<li>Method : ${object.function or ''}</li>\n"
"<li>Arguments : ${object.args or ''}</li>\n"
"<li>Interval : ${object.interval_number or '0'} ${object.interval_type or ''}</li>\n"
"<li>Number of calls : ${object.numbercall or '0'}</li>\n"
"<li>Repeat missed : ${object.doall}</li>\n"
"<li>User : ${object.user_id.name or ''}</li>\n"
"</ul>\n"
"\n"
"<p>\n"
"-- <br/>\n"
"Automatic e-mail sent by Odoo. Do not reply.<br/>\n"
"Database : ${ctx.get('dbname')}\n"
"</p>\n"
"</div>\n"
" \n"
" "
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_channel_ids
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_channel_ids
msgid "Add Channels"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_partner_ids
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_partner_ids
msgid "Add Followers"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_template_id
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_template_id
msgid "Email Template"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_email_template_id
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_email_template_id
msgid "Error E-mail Template"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model,name:scheduler_error_mailer.model_ir_cron
msgid "Scheduled Actions"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,help:scheduler_error_mailer.field_ir_cron_email_template_id
#: model:ir.model.fields,help:scheduler_error_mailer.field_nsca_check_email_template_id
msgid "Select the email template that will be sent when this scheduler fails."
msgstr ""
#. module: scheduler_error_mailer
#: code:addons/scheduler_error_mailer/models/ir_cron.py:55
#, python-format
msgid "Task failure with UID = %d."
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.actions.server,name:scheduler_error_mailer.test_scheduler_error_mailer_ir_actions_server
#: model:ir.cron,cron_name:scheduler_error_mailer.test_scheduler_error_mailer
#: model:ir.cron,name:scheduler_error_mailer.test_scheduler_error_mailer
msgid "Test Scheduler Error Mailer"
msgstr ""
#. module: scheduler_error_mailer
#: model:mail.template,subject:scheduler_error_mailer.scheduler_error_mailer
msgid "[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FAILED"
msgstr ""

View File

@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * scheduler_error_mailer
#
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
@ -12,33 +12,40 @@ msgstr ""
"PO-Revision-Date: 2016-08-06 02:49+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: sl\n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
"%100==4 ? 2 : 3);\n"
#. module: scheduler_error_mailer
#: model:mail.template,body_html:scheduler_error_mailer.scheduler_error_mailer
msgid ""
"\n"
" \n"
"<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
"<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
"serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
"\n"
"<p>Odoo tried to run the scheduler <em>${object.name or ''}</em> in the database <em>${ctx.get('dbname')}</em> but it failed. Here is the error message :</p>\n"
"<p>Odoo tried to run the scheduler <em>${object.name or ''}</em> in the "
"database <em>${ctx.get('dbname')}</em> but it failed. Here is the error "
"message :</p>\n"
"\n"
"<strong>\n"
"${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}\n"
"${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to "
"get the error message from the context.'}\n"
"</strong>\n"
"\n"
"<p>You may check the logs of the Odoo server to get more information about this failure.</p>\n"
"<p>You may check the logs of the Odoo server to get more information about "
"this failure.</p>\n"
"\n"
"<p>Properties of the scheduler <em>${object.name or ''}</em> :</p>\n"
"<ul>\n"
"<li>Model : ${object.model or ''}</li>\n"
"<li>Method : ${object.function or ''}</li>\n"
"<li>Arguments : ${object.args or ''}</li>\n"
"<li>Interval : ${object.interval_number or '0'} ${object.interval_type or ''}</li>\n"
"<li>Interval : ${object.interval_number or '0'} ${object.interval_type or ''}"
"</li>\n"
"<li>Number of calls : ${object.numbercall or '0'}</li>\n"
"<li>Repeat missed : ${object.doall}</li>\n"
"<li>User : ${object.user_id.name or ''}</li>\n"
@ -54,13 +61,39 @@ msgid ""
" "
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_channel_ids
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_channel_ids
msgid "Add Channels"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_partner_ids
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_partner_ids
msgid "Add Followers"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_template_id
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_template_id
#, fuzzy
msgid "Email Template"
msgstr "Predloga obvestila o napaki"
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_email_template_id
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_email_template_id
msgid "Error E-mail Template"
msgstr "Predloga obvestila o napaki"
#. module: scheduler_error_mailer
#: model:ir.model,name:scheduler_error_mailer.model_ir_cron
msgid "Scheduled Actions"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,help:scheduler_error_mailer.field_ir_cron_email_template_id
#: model:ir.model.fields,help:scheduler_error_mailer.field_nsca_check_email_template_id
msgid "Select the email template that will be sent when this scheduler fails."
msgstr "Izberite predlogo za razpošiljanje ob napakah razporejevalca."
@ -70,13 +103,15 @@ msgstr "Izberite predlogo za razpošiljanje ob napakah razporejevalca."
msgid "Task failure with UID = %d."
msgstr "Napaka pri opravilu UID = %d."
#. module: scheduler_error_mailer
#: model:ir.actions.server,name:scheduler_error_mailer.test_scheduler_error_mailer_ir_actions_server
#: model:ir.cron,cron_name:scheduler_error_mailer.test_scheduler_error_mailer
#: model:ir.cron,name:scheduler_error_mailer.test_scheduler_error_mailer
msgid "Test Scheduler Error Mailer"
msgstr ""
#. module: scheduler_error_mailer
#: model:mail.template,subject:scheduler_error_mailer.scheduler_error_mailer
msgid "[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FAILED"
msgstr ""
"[DB ${ctx.get('dbname')}] Razporejevalec '${object.name or ''}' NEUSPEŠEN"
#. module: scheduler_error_mailer
#: model:ir.model,name:scheduler_error_mailer.model_ir_cron
msgid "ir.cron"
msgstr ""

View File

@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * scheduler_error_mailer
#
#
# Translators:
# Jeffery Chenn <jeffery9@gmail.com>, 2016
msgid ""
@ -11,11 +11,12 @@ msgstr ""
"POT-Creation-Date: 2016-08-31 11:58+0000\n"
"PO-Revision-Date: 2016-08-31 11:58+0000\n"
"Last-Translator: Jeffery Chenn <jeffery9@gmail.com>, 2016\n"
"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/zh_CN/)\n"
"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/"
"zh_CN/)\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: scheduler_error_mailer
@ -23,22 +24,28 @@ msgstr ""
msgid ""
"\n"
" \n"
"<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
"<div style=\"font-family: 'Lucida Grande', Ubuntu, Arial, Verdana, sans-"
"serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
"\n"
"<p>Odoo tried to run the scheduler <em>${object.name or ''}</em> in the database <em>${ctx.get('dbname')}</em> but it failed. Here is the error message :</p>\n"
"<p>Odoo tried to run the scheduler <em>${object.name or ''}</em> in the "
"database <em>${ctx.get('dbname')}</em> but it failed. Here is the error "
"message :</p>\n"
"\n"
"<strong>\n"
"${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}\n"
"${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to "
"get the error message from the context.'}\n"
"</strong>\n"
"\n"
"<p>You may check the logs of the Odoo server to get more information about this failure.</p>\n"
"<p>You may check the logs of the Odoo server to get more information about "
"this failure.</p>\n"
"\n"
"<p>Properties of the scheduler <em>${object.name or ''}</em> :</p>\n"
"<ul>\n"
"<li>Model : ${object.model or ''}</li>\n"
"<li>Method : ${object.function or ''}</li>\n"
"<li>Arguments : ${object.args or ''}</li>\n"
"<li>Interval : ${object.interval_number or '0'} ${object.interval_type or ''}</li>\n"
"<li>Interval : ${object.interval_number or '0'} ${object.interval_type or ''}"
"</li>\n"
"<li>Number of calls : ${object.numbercall or '0'}</li>\n"
"<li>Repeat missed : ${object.doall}</li>\n"
"<li>User : ${object.user_id.name or ''}</li>\n"
@ -54,13 +61,39 @@ msgid ""
" "
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_channel_ids
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_channel_ids
msgid "Add Channels"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_partner_ids
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_partner_ids
msgid "Add Followers"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_template_id
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_template_id
#, fuzzy
msgid "Email Template"
msgstr "错误E-mail 模板"
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron_email_template_id
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_nsca_check_email_template_id
msgid "Error E-mail Template"
msgstr "错误E-mail 模板"
#. module: scheduler_error_mailer
#: model:ir.model,name:scheduler_error_mailer.model_ir_cron
msgid "Scheduled Actions"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model.fields,help:scheduler_error_mailer.field_ir_cron_email_template_id
#: model:ir.model.fields,help:scheduler_error_mailer.field_nsca_check_email_template_id
msgid "Select the email template that will be sent when this scheduler fails."
msgstr ""
@ -71,11 +104,13 @@ msgid "Task failure with UID = %d."
msgstr ""
#. module: scheduler_error_mailer
#: model:mail.template,subject:scheduler_error_mailer.scheduler_error_mailer
msgid "[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FAILED"
#: model:ir.actions.server,name:scheduler_error_mailer.test_scheduler_error_mailer_ir_actions_server
#: model:ir.cron,cron_name:scheduler_error_mailer.test_scheduler_error_mailer
#: model:ir.cron,name:scheduler_error_mailer.test_scheduler_error_mailer
msgid "Test Scheduler Error Mailer"
msgstr ""
#. module: scheduler_error_mailer
#: model:ir.model,name:scheduler_error_mailer.model_ir_cron
msgid "ir.cron"
#: model:mail.template,subject:scheduler_error_mailer.scheduler_error_mailer
msgid "[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FAILED"
msgstr ""

View File

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# © 2012-2013 Akretion Sébastien BEAU,David Beal,Alexis de Lattre
# © 2016 Sodexis
# © 2018 bloopark systems (<http://bloopark.de>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import ir_cron

View File

@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
# © 2012-2013 Akretion Sébastien BEAU,David Beal,Alexis de Lattre
# © 2016 Sodexis
# © 2018 bloopark systems (<http://bloopark.de>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models, fields, api, _
from odoo import _, api, fields, models
from odoo.exceptions import UserError
import logging
@ -22,11 +22,12 @@ class IrCron(models.Model):
)
@api.model
def _handle_callback_exception(
self, model_name, method_name, args, job_id, job_exception):
res = super(IrCron, self)._handle_callback_exception(
model_name, method_name, args, job_id, job_exception)
def _handle_callback_exception(self, cron_name, server_action_id, job_id,
job_exception):
res = super(IrCron, self)._handle_callback_exception(cron_name,
server_action_id,
job_id,
job_exception)
my_cron = self.browse(job_id)
if my_cron.email_template_id:
@ -49,7 +50,6 @@ class IrCron(models.Model):
@api.model
def _test_scheduler_failure(self):
"""This function is used to test and debug this module"""
"""This function is used to test and debug this module."""
raise UserError(
_("Task failure with UID = %d.") % self._uid)

View File

@ -3,6 +3,7 @@
scheduler_error_mailer for Odoo
Copyright (C) 2012-2013 Akretion Sébastien BEAU,David Beal,Alexis de Lattre
Copyright (C) 2016 Sodexis
Copyright (C) 2018 bloopark systems (<http://bloopark.de>)
The licence is in the file __openerp__.py
-->
@ -11,7 +12,7 @@
<record id="ir_cron_view" model="ir.ui.view">
<field name="name">ir.cron.error.mailer.form</field>
<field name="model">ir.cron</field>
<field name="inherit_id" ref="base.ir_cron_view"/>
<field name="inherit_id" ref="base.ir_cron_view_form"/>
<field name="arch" type="xml">
<field name="doall" position="after">
<field name="email_template_id"/>