From b0606240421d9d3faa748fc985b7a79a8395c143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20GAULLIER?= Date: Mon, 20 Mar 2023 11:20:20 +0100 Subject: [PATCH] =?UTF-8?q?[IMP]=20#62=20-=20Suppression=20du=20fichier=20?= =?UTF-8?q?de=20s=C3=A9curit=C3=A9=20ajout=C3=A9=20par=20erreur=20+=20Ajou?= =?UTF-8?q?t=20de=20la=20traduction=20du=20mail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- timesheet_reminder_mail/i18n/fr.po | 147 ++++++++++++++++++ .../security/ir.model.access.csv | 2 - 2 files changed, 147 insertions(+), 2 deletions(-) create mode 100644 timesheet_reminder_mail/i18n/fr.po delete mode 100644 timesheet_reminder_mail/security/ir.model.access.csv diff --git a/timesheet_reminder_mail/i18n/fr.po b/timesheet_reminder_mail/i18n/fr.po new file mode 100644 index 0000000..5499b46 --- /dev/null +++ b/timesheet_reminder_mail/i18n/fr.po @@ -0,0 +1,147 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * timesheet_reminder_mail +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-03-20 09:49+0000\n" +"PO-Revision-Date: 2023-03-20 09:49+0000\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: timesheet_reminder_mail +#: model:mail.template,body_html:timesheet_reminder_mail.mail_template_timesheet_summary_manager +msgid "" +"
\n" +"

Hello ${object.firstname or 'n/a'},

\n" +"


You will find below several tables summarizing the time spent by your employees.

\n" +" % set sum_analytic_lines = object.get_summarized_analytic_lines(object)\n" +" % for summary in sum_analytic_lines\n" +" % if summary[0]:\n" +" % set intervenants = summary[0][0]\n" +" % set projets = summary[0][1]\n" +" % set titre = summary[1]\n" +"
\n" +"

${titre}

\n" +"
\n" +"
\n" +"
Project | Intervenant
\n" +" % for intervenant in intervenants\n" +"
${intervenant}
\n" +" % endfor\n" +"
\n" +" % for nom_projet in projets\n" +" % if nom_projet == 'Total':\n" +"
\n" +"
${nom_projet}
\n" +" % for intervenant in intervenants\n" +" % if intervenant in projets[nom_projet]:\n" +"
${'{:.2f}'.format(projets[nom_projet][intervenant]).replace('.',',')}
\n" +" % else\n" +"
\n" +" % endif\n" +" % endfor\n" +"
\n" +" % elif (loop.index % 2) == 0:\n" +"
\n" +"
${nom_projet}
\n" +" % for intervenant in intervenants\n" +" % if intervenant in projets[nom_projet]:\n" +"
${'{:.2f}'.format(projets[nom_projet][intervenant]).replace('.',',')}
\n" +" % else\n" +"
\n" +" % endif\n" +" % endfor\n" +"
\n" +" % else\n" +"
\n" +"
${nom_projet}
\n" +" % for intervenant in intervenants\n" +" % if intervenant in projets[nom_projet]:\n" +"
${'{:.2f}'.format(projets[nom_projet][intervenant]).replace('.',',')}
\n" +" % else\n" +"
\n" +" % endif\n" +" % endfor\n" +"
\n" +" % endif\n" +" % endfor\n" +"

\n" +" % endif\n" +" % endfor\n" +"
Thank you,
\n" +" % if user.signature\n" +" ${user.signature | safe}\n" +" % endif\n" +"
\n" +" " +msgstr "" +"
\n" +"

Bonjour ${object.firstname or 'n/a'},

\n" +"


Tu trouveras ci-dessous plusieurs tableaux récapitulant le temps passé sur chaque projet par tes employés.

\n" +" % set sum_analytic_lines = object.get_summarized_analytic_lines(object)\n" +" % for summary in sum_analytic_lines\n" +" % if summary[0]:\n" +" % set intervenants = summary[0][0]\n" +" % set projets = summary[0][1]\n" +" % set titre = summary[1]\n" +"
\n" +"

${titre}

\n" +"
\n" +"
\n" +"
Projet | Intervenant
\n" +" % for intervenant in intervenants\n" +"
${intervenant}
\n" +" % endfor\n" +"
\n" +" % for nom_projet in projets\n" +" % if nom_projet == 'Total':\n" +"
\n" +"
${nom_projet}
\n" +" % for intervenant in intervenants\n" +" % if intervenant in projets[nom_projet]:\n" +"
${'{:.2f}'.format(projets[nom_projet][intervenant]).replace('.',',')}
\n" +" % else\n" +"
\n" +" % endif\n" +" % endfor\n" +"
\n" +" % elif (loop.index % 2) == 0:\n" +"
\n" +"
${nom_projet}
\n" +" % for intervenant in intervenants\n" +" % if intervenant in projets[nom_projet]:\n" +"
${'{:.2f}'.format(projets[nom_projet][intervenant]).replace('.',',')}
\n" +" % else\n" +"
\n" +" % endif\n" +" % endfor\n" +"
\n" +" % else\n" +"
\n" +"
${nom_projet}
\n" +" % for intervenant in intervenants\n" +" % if intervenant in projets[nom_projet]:\n" +"
${'{:.2f}'.format(projets[nom_projet][intervenant]).replace('.',',')}
\n" +" % else\n" +"
\n" +" % endif\n" +" % endfor\n" +"
\n" +" % endif\n" +" % endfor\n" +"

\n" +" % endif\n" +" % endfor\n" +"
Merci,
\n" +" % if user.signature\n" +" ${user.signature | safe}\n" +" % endif\n" +"
\n" +" " diff --git a/timesheet_reminder_mail/security/ir.model.access.csv b/timesheet_reminder_mail/security/ir.model.access.csv deleted file mode 100644 index bd420c3..0000000 --- a/timesheet_reminder_mail/security/ir.model.access.csv +++ /dev/null @@ -1,2 +0,0 @@ -id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink -timesheet_summary,timesheet_summary,timesheet_reminder_mail.model_timesheet_summary,base.group_user,1,1,1,0 \ No newline at end of file