parent
9d1e7a4f19
commit
e94e321dbd
|
@ -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/9.0
|
||||
:target: https://runbot.odoo-community.org/runbot/149/10.0
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
{
|
||||
'name': 'Scheduler Error Mailer',
|
||||
'version': '9.0.1.0.0',
|
||||
'version': '10.0.1.0.0',
|
||||
'category': 'Extra Tools',
|
||||
'license': 'AGPL-3',
|
||||
'author': "Akretion,Sodexis,Odoo Community Association (OCA)",
|
|
@ -1,10 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
scheduler_error_mailer for Odoo
|
||||
Copyright (C) 2012-2013 Akretion Sébastien BEAU,David Beal,Alexis de Lattre
|
||||
Copyright (C) 2016 Sodexis
|
||||
The licence is in the file __openerp__.py
|
||||
-->
|
||||
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
|
@ -21,13 +15,13 @@
|
|||
<![CDATA[
|
||||
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
|
||||
|
||||
<p>OpenERP 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>
|
||||
<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>
|
||||
|
||||
<strong>
|
||||
${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get the error message from the context.'}
|
||||
</strong>
|
||||
|
||||
<p>You may check the logs of the OpenERP server to get more information about this failure.</p>
|
||||
<p>You may check the logs of the Odoo server to get more information about this failure.</p>
|
||||
|
||||
<p>Properties of the scheduler <em>${object.name or ''}</em> :</p>
|
||||
<ul>
|
||||
|
@ -42,7 +36,7 @@ ${ctx.get('job_exception') and ctx.get('job_exception').value or 'Failed to get
|
|||
|
||||
<p>
|
||||
-- <br/>
|
||||
Automatic e-mail sent by OpenERP. Do not reply.<br/>
|
||||
Automatic e-mail sent by Odoo. Do not reply.<br/>
|
||||
Database : ${ctx.get('dbname')}
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,83 @@
|
|||
# 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 ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-02-08 03:37+0000\n"
|
||||
"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"
|
||||
"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
|
||||
#: model:mail.template,body_html:scheduler_error_mailer.scheduler_error_mailer
|
||||
msgid ""
|
||||
"\n"
|
||||
" \n"
|
||||
"<div style=\"font-family: 'Lucica 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_email_template_id
|
||||
msgid "Error E-mail Template"
|
||||
msgstr "Fehler e-Mail Vorlage"
|
||||
|
||||
#. module: scheduler_error_mailer
|
||||
#: model:ir.model.fields,help:scheduler_error_mailer.field_ir_cron_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 "
|
||||
"wird."
|
||||
|
||||
#. module: scheduler_error_mailer
|
||||
#: code:addons/scheduler_error_mailer/models/ir_cron.py:55
|
||||
#, python-format
|
||||
msgid "Task failure with UID = %d."
|
||||
msgstr "Task Fehler von UID = %d."
|
||||
|
||||
#. 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"
|
|
@ -0,0 +1,84 @@
|
|||
# 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
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-02-22 00:55+0000\n"
|
||||
"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"
|
||||
"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
|
||||
#: model:mail.template,body_html:scheduler_error_mailer.scheduler_error_mailer
|
||||
msgid ""
|
||||
"\n"
|
||||
" \n"
|
||||
"<div style=\"font-family: 'Lucica 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_email_template_id
|
||||
msgid "Error E-mail Template"
|
||||
msgstr "Plantilla de correo electrónico de error"
|
||||
|
||||
#. module: scheduler_error_mailer
|
||||
#: model:ir.model.fields,help:scheduler_error_mailer.field_ir_cron_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 "
|
||||
"este planificador."
|
||||
|
||||
#. module: scheduler_error_mailer
|
||||
#: code:addons/scheduler_error_mailer/models/ir_cron.py:55
|
||||
#, python-format
|
||||
msgid "Task failure with UID = %d."
|
||||
msgstr "Error de Tarea con UID = %d."
|
||||
|
||||
#. 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"
|
|
@ -25,13 +25,13 @@ msgid ""
|
|||
" \n"
|
||||
"<div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
|
||||
"\n"
|
||||
"<p>OpenERP 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"
|
||||
"</strong>\n"
|
||||
"\n"
|
||||
"<p>You may check the logs of the OpenERP 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"
|
||||
|
@ -46,7 +46,7 @@ msgid ""
|
|||
"\n"
|
||||
"<p>\n"
|
||||
"-- <br/>\n"
|
||||
"Automatic e-mail sent by OpenERP. Do not reply.<br/>\n"
|
||||
"Automatic e-mail sent by Odoo. Do not reply.<br/>\n"
|
||||
"Database : ${ctx.get('dbname')}\n"
|
||||
"</p>\n"
|
||||
"</div>\n"
|
||||
|
|
|
@ -20,13 +20,13 @@ msgstr ""
|
|||
msgid "\n"
|
||||
"<div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
|
||||
"\n"
|
||||
"<p>OpenERP 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"
|
||||
"</strong>\n"
|
||||
"\n"
|
||||
"<p>You may check the logs of the OpenERP 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"
|
||||
|
@ -41,7 +41,7 @@ msgid "\n"
|
|||
"\n"
|
||||
"<p>\n"
|
||||
"-- <br/>\n"
|
||||
"Automatic e-mail sent by OpenERP. Do not reply.<br/>\n"
|
||||
"Automatic e-mail sent by Odoo. Do not reply.<br/>\n"
|
||||
"Database : ${ctx.get('dbname')}\n"
|
||||
"</p>\n"
|
||||
"</div>\n"
|
||||
|
|
|
@ -25,13 +25,13 @@ msgid ""
|
|||
" \n"
|
||||
"<div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
|
||||
"\n"
|
||||
"<p>OpenERP 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"
|
||||
"</strong>\n"
|
||||
"\n"
|
||||
"<p>You may check the logs of the OpenERP 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"
|
||||
|
@ -46,7 +46,7 @@ msgid ""
|
|||
"\n"
|
||||
"<p>\n"
|
||||
"-- <br/>\n"
|
||||
"Automatic e-mail sent by OpenERP. Do not reply.<br/>\n"
|
||||
"Automatic e-mail sent by Odoo. Do not reply.<br/>\n"
|
||||
"Database : ${ctx.get('dbname')}\n"
|
||||
"</p>\n"
|
||||
"</div>\n"
|
||||
|
|
|
@ -25,13 +25,13 @@ msgid ""
|
|||
" \n"
|
||||
"<div style=\"font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; \">\n"
|
||||
"\n"
|
||||
"<p>OpenERP 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"
|
||||
"</strong>\n"
|
||||
"\n"
|
||||
"<p>You may check the logs of the OpenERP 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"
|
||||
|
@ -46,7 +46,7 @@ msgid ""
|
|||
"\n"
|
||||
"<p>\n"
|
||||
"-- <br/>\n"
|
||||
"Automatic e-mail sent by OpenERP. Do not reply.<br/>\n"
|
||||
"Automatic e-mail sent by Odoo. Do not reply.<br/>\n"
|
||||
"Database : ${ctx.get('dbname')}\n"
|
||||
"</p>\n"
|
||||
"</div>\n"
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
# © 2016 Sodexis
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from openerp import models, fields, api, _
|
||||
from openerp.exceptions import UserError
|
||||
from odoo import models, fields, api, _
|
||||
from odoo.exceptions import UserError
|
||||
import logging
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue