Added translation using Weblate (French)

pull/2602/head
Yann Papouin 2021-10-20 11:04:28 +00:00 committed by OCA-git-bot
parent 1e93398017
commit 624c7b2f39
13 changed files with 375 additions and 97 deletions

View File

@ -6,7 +6,7 @@
{
'name': 'Scheduler Error Mailer',
'version': '12.0.1.0.0',
'version': '12.0.1.1.0',
'category': 'Extra Tools',
'license': 'AGPL-3',
'author': "Akretion,Sodexis,Odoo Community Association (OCA)",

View File

@ -18,7 +18,7 @@
<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.'}
${ctx.get('job_exception') or 'Failed to get the error message from the context.'}
</strong>
<p>You may check the logs of the Odoo server to get more information about this failure.</p>

View File

@ -31,8 +31,8 @@ msgid ""
"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') 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 "

View File

@ -32,8 +32,8 @@ msgid ""
"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') 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 "

View File

@ -0,0 +1,173 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * scheduler_error_mailer
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-10-20 11:12+0000\n"
"Last-Translator: Yann Papouin <y.papouin@dec-industrie.com>\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.3.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"
"\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') 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 "Modèle de-mail derreur"
#. module: scheduler_error_mailer
#: model:ir.model,name:scheduler_error_mailer.model_ir_cron
msgid "Scheduled Actions"
msgstr "Actions planifiées"
#. 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 ""
"Sélectionnez le modèle de-mail qui sera envoyé en cas déchec de ce "
"planificateur."
#. module: scheduler_error_mailer
#: code:addons/scheduler_error_mailer/models/ir_cron.py:55
#, python-format
msgid "Task failure with UID = %d."
msgstr "Échec de la tâche avec 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 "Test du mailer derreur du planificateur"
#. 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')}] Planificateur '${object.name or ''}' ECHEC"
#~ 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 ""
#~ "\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 a essayé dexécuter le planificateur <em>${object.name ou ''}</"
#~ "em> dans la base de données <em>${ctx.get('dbname')}</em> mais cela a "
#~ "échoué. Voici le message derreur :</p>\n"
#~ "\n"
#~ "<strong>\n"
#~ "${ctx.get('job_exception') et ctx.get('job_exception').value ou "
#~ "'Impossible dobtenir le message derreur du contexte.'}\n"
#~ "</strong>\n"
#~ "\n"
#~ "<p>Vous pouvez consulter les journaux du serveur Odoo pour obtenir plus "
#~ "dinformations sur cette défaillance.</p>\n"
#~ "\n"
#~ "<p>Propriétés du planificateur <em>${object.name ou ''}</em> :</p>\n"
#~ "<ul>\n"
#~ "<li>Modèle : ${object.model ou ''}</li>\n"
#~ "<li>Méthode : ${object.function ou ''}</li>\n"
#~ "<li>Arguments : ${object.args ou ''}</li>\n"
#~ "<li>Intervalle : ${object.interval_number ou '0'} ${object.interval_type "
#~ "ou ''}</li>\n"
#~ "<li>Nombre dappels : ${object.numbercall ou '0'}</li>\n"
#~ "<li>Recommencer les manqués : ${object.doall}</li>\n"
#~ "<li>Utilisateur : ${object.user_id.name ou ''}</li>\n"
#~ "</ul>\n"
#~ "\n"
#~ "<p>\n"
#~ "-- <br/>\n"
#~ "E-mail automatique envoyé par Odoo. Ne pas répondre.<br/>\n"
#~ "Base de données : ${ctx.get('dbname')}\n"
#~ "</p>\n"
#~ "</div>\n"
#~ " \n"
#~ " "

View File

@ -32,8 +32,8 @@ msgid ""
"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') 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 "

View File

@ -1,6 +1,6 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * scheduler_error_mailer
# * scheduler_error_mailer
#
msgid ""
msgstr ""
@ -18,24 +18,31 @@ msgstr ""
#. 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"
msgid ""
"\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"
"<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"
"${ctx.get('job_exception') 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"

View File

@ -11,8 +11,8 @@ msgstr ""
"POT-Creation-Date: 2016-08-06 02:49+0000\n"
"PO-Revision-Date: 2019-09-03 01:23+0000\n"
"Last-Translator: Rodrigo Macedo <rmsolucoeseminformatic4@gmail.com>\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"
@ -33,8 +33,8 @@ msgid ""
"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') 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 "
@ -61,43 +61,6 @@ msgid ""
" \n"
" "
msgstr ""
"\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 tentou executar o agendador<em>${object.name ou ''}</em>no banco de "
"dados<em>${ctx.get ('dbname')}</em>, mas falhou. Aqui está a mensagem de "
"erro:</p>\n"
"\n"
"<strong>\n"
"${ctx.get ('job_exception') e ctx.get ('job_exception'). value ou 'Falha ao "
"obter a mensagem de erro do contexto.'}\n"
"</strong>\n"
"\n"
"<p>Você pode verificar os logs do servidor Odoo para obter mais informações "
"sobre esta falha.</p>\n"
"\n"
"<p>Propriedades do planejador<em>${object.name ou''}</em>:</p>\n"
"<ul>\n"
"<li>Modelo: ${object.model ou ''}</li>\n"
"<li> Método: ${object.function ou ''}</li>\n"
"<li> Argumentos: ${object.args ou ''}</li>\n"
"<li> Intervalo: ${object.interval_number ou '0'} ${object.interval_type ou "
"''}</li>\n"
"<li> Número de chamadas: ${object.numbercall ou '0'}</li>\n"
"<li> Repetição perdida: ${object.doall}</li>\n"
"<li> Usuário: ${object.user_id.name ou ''}</li>\n"
"</ul>\n"
"\n"
"<p>\n"
"--<br/>\n"
"Email automático enviado pelo Odoo. Não responda. <br/>\n"
"Banco de Dados: ${ctx.get ('dbname')}\n"
"</p>\n"
"</div>\n"
" \n"
" "
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron__email_template_id
@ -133,6 +96,85 @@ msgstr "Teste Agendado de Erro do Remetente"
msgid "[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FAILED"
msgstr "[DB ${ctx.get('dbname')}] Agendador '${object.name or ''}' FALHOU"
#~ 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 ""
#~ "\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 tentou executar o agendador<em>${object.name ou ''}</em>no banco "
#~ "de dados<em>${ctx.get ('dbname')}</em>, mas falhou. Aqui está a mensagem "
#~ "de erro:</p>\n"
#~ "\n"
#~ "<strong>\n"
#~ "${ctx.get ('job_exception') e ctx.get ('job_exception'). value ou 'Falha "
#~ "ao obter a mensagem de erro do contexto.'}\n"
#~ "</strong>\n"
#~ "\n"
#~ "<p>Você pode verificar os logs do servidor Odoo para obter mais "
#~ "informações sobre esta falha.</p>\n"
#~ "\n"
#~ "<p>Propriedades do planejador<em>${object.name ou''}</em>:</p>\n"
#~ "<ul>\n"
#~ "<li>Modelo: ${object.model ou ''}</li>\n"
#~ "<li> Método: ${object.function ou ''}</li>\n"
#~ "<li> Argumentos: ${object.args ou ''}</li>\n"
#~ "<li> Intervalo: ${object.interval_number ou '0'} ${object.interval_type "
#~ "ou ''}</li>\n"
#~ "<li> Número de chamadas: ${object.numbercall ou '0'}</li>\n"
#~ "<li> Repetição perdida: ${object.doall}</li>\n"
#~ "<li> Usuário: ${object.user_id.name ou ''}</li>\n"
#~ "</ul>\n"
#~ "\n"
#~ "<p>\n"
#~ "--<br/>\n"
#~ "Email automático enviado pelo Odoo. Não responda. <br/>\n"
#~ "Banco de Dados: ${ctx.get ('dbname')}\n"
#~ "</p>\n"
#~ "</div>\n"
#~ " \n"
#~ " "
#, fuzzy
#~ msgid "Email Template"
#~ msgstr "Modelo de Erro de E-mail"

View File

@ -22,7 +22,7 @@ msgid "\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') 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"

View File

@ -32,8 +32,8 @@ msgid ""
"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') 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 "

View File

@ -33,8 +33,8 @@ msgid ""
"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') 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 "
@ -61,40 +61,6 @@ msgid ""
" \n"
" "
msgstr ""
"\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试图运行调度程序 <em>${object.name or ''}</em> 在数据库中 "
"<em>${ctx.get('dbname')}</em> 但它失败了。这是错误消息 :</p>\n"
"\n"
"<strong>\n"
"${ctx.get('job_exception') and ctx.get('job_exception').value or "
"'无法从上下文中获取错误消息.'}\n"
"</strong>\n"
"\n"
"<p>您可以检查Odoo服务器的日志以获取有关此故障的更多信息.</p>\n"
"\n"
"<p>调度程序的属性 <em>${object.name or ''}</em> :</p>\n"
"<ul>\n"
"<li>模型: ${object.model or ''}</li>\n"
"<li>方法 : ${object.function or ''}</li>\n"
"<li>参数: ${object.args or ''}</li>\n"
"<li>间隔: ${object.interval_number or '0'} ${object.interval_type or ''}</li>\n"
"<li>通话次数: ${object.numbercall or '0'}</li>\n"
"<li>重复错过了: ${object.doall}</li>\n"
"<li>用户: ${object.user_id.name or ''}</li>\n"
"</ul>\n"
"\n"
"<p>\n"
"-- <br/>\n"
"Odoo发送的自动电子邮件。请勿回复。<br/>\n"
"数据库: ${ctx.get('dbname')}\n"
"</p>\n"
"</div>\n"
" \n"
" "
#. module: scheduler_error_mailer
#: model:ir.model.fields,field_description:scheduler_error_mailer.field_ir_cron__email_template_id
@ -129,6 +95,83 @@ msgstr "测试调度程序错误邮件程序"
msgid "[DB ${ctx.get('dbname')}] Scheduler '${object.name or ''}' FAILED"
msgstr "[DB ${ctx.get('dbname')}] 调度'${object.name or ''}' 失败"
#~ 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 ""
#~ "\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试图运行调度程序 <em>${object.name or ''}</em> 在数据库中 <em>"
#~ "${ctx.get('dbname')}</em> 但它失败了。这是错误消息 :</p>\n"
#~ "\n"
#~ "<strong>\n"
#~ "${ctx.get('job_exception') and ctx.get('job_exception').value or '无法从上"
#~ "下文中获取错误消息.'}\n"
#~ "</strong>\n"
#~ "\n"
#~ "<p>您可以检查Odoo服务器的日志以获取有关此故障的更多信息.</p>\n"
#~ "\n"
#~ "<p>调度程序的属性 <em>${object.name or ''}</em> :</p>\n"
#~ "<ul>\n"
#~ "<li>模型: ${object.model or ''}</li>\n"
#~ "<li>方法 : ${object.function or ''}</li>\n"
#~ "<li>参数: ${object.args or ''}</li>\n"
#~ "<li>间隔: ${object.interval_number or '0'} ${object.interval_type or ''}</"
#~ "li>\n"
#~ "<li>通话次数: ${object.numbercall or '0'}</li>\n"
#~ "<li>重复错过了: ${object.doall}</li>\n"
#~ "<li>用户: ${object.user_id.name or ''}</li>\n"
#~ "</ul>\n"
#~ "\n"
#~ "<p>\n"
#~ "-- <br/>\n"
#~ "Odoo发送的自动电子邮件。请勿回复。<br/>\n"
#~ "数据库: ${ctx.get('dbname')}\n"
#~ "</p>\n"
#~ "</div>\n"
#~ " \n"
#~ " "
#, fuzzy
#~ msgid "Email Template"
#~ msgstr "错误E-mail 模板"

View File

@ -0,0 +1,13 @@
# Copyright 2021 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade
@openupgrade.migrate()
def migrate(env, version):
template = env.ref("scheduler_error_mailer.scheduler_error_mailer")
template.body_html = template.body_html.replace(
"${ctx.get('job_exception') and ctx.get('job_exception').value",
"${ctx.get('job_exception')"
)

View File

@ -34,7 +34,7 @@ class IrCron(models.Model):
# we put the job_exception in context to be able to print it inside
# the email template
context = {
'job_exception': job_exception,
'job_exception': str(job_exception),
'dbname': self._cr.dbname,
}