diff --git a/data/mail_data.xml b/data/mail_data.xml index 20f190f865d5e77aca47c1d20c34aa3da6dcd3f9..0a83186d439ba185e6a13798e9abb334581e5277 100644 --- a/data/mail_data.xml +++ b/data/mail_data.xml @@ -6,95 +6,93 @@ <field name="name">Portail ACC: nouvel utilisateur</field> <field name="model_id" ref="base.model_res_partner" /> <field name="subject">Votre compte ${object.name}</field> - <field name="partner_to">${object.id}</field> - <field name="email_from">contact@le-filament.com</field> <field name="email_to">${object.email}</field> <field name="body_html" type="html"> -<table - border="0" - cellpadding="0" - cellspacing="0" - style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;" - ><tr><td align="center"> -<table - border="0" - cellpadding="0" - cellspacing="0" - width="590" - style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;" - > -<tbody> - <!-- HEADER --> - <tr> - <td align="center" style="min-width: 590px;"> - <table - border="0" - cellpadding="0" - cellspacing="0" - width="590" - style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;" - > - <tr><td valign="middle"> - <span style="font-size: 10px;">Votre compte</span><br /> - <span style="font-size: 20px; font-weight: bold;"> - ${object.name} - </span> - </td><td valign="middle" align="right"> - <img - src="/logo.png?company=${object.company_id.id}" - style="padding: 0px; margin: 0px; height: auto; width: 80px;" - alt="${object.company_id.name}" - /> - </td></tr> - <tr><td colspan="2" style="text-align:center;"> - <hr - width="100%" - style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin:16px 0px 16px 0px;" - /> - </td></tr> - </table> - </td> - </tr> - <!-- CONTENT --> - <tr> - <td align="center" style="min-width: 590px;"> - <table - border="0" - cellpadding="0" - cellspacing="0" - width="590" - style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;" - > - <tr><td valign="top" style="font-size: 13px;"> - <div> - Bonjour ${object.lastname or ''} ${object.firstname or ''},<br - /> <br /> - Vous avez été autorisé à accéder au portail de ${company_id.name}.<br - /> - Les données de votre compte de connexion sont: - <ul> - <li>Nom d'utilisateur: ${object.email or ''}</li> - <li>Portail: <a - href="${'portal_url' in ctx and ctx['portal_url'] or ''}" - >${'portal_url' in ctx and ctx['portal_url'] or ''}</a></li> - </ul> - Vous pouvez définir ou modifier votre mot de passe. - </div> - </td></tr> - <tr><td style="text-align:center;"> - <hr - width="100%" - style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" - /> - </td></tr> - </table> - </td> - </tr> + <table + border="0" + cellpadding="0" + cellspacing="0" + style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;" + ><tr><td align="center"> + <table + border="0" + cellpadding="0" + cellspacing="0" + width="590" + style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;" + > + <tbody> + <!-- HEADER --> + <tr> + <td align="center" style="min-width: 590px;"> + <table + border="0" + cellpadding="0" + cellspacing="0" + width="590" + style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;" + > + <tr><td valign="middle"> + <span style="font-size: 10px;">Votre compte</span><br /> + <span style="font-size: 20px; font-weight: bold;"> + ${object.name} + </span> + </td><td valign="middle" align="right"> + <img + src="/logo.png?company=${object.company_id.id}" + style="padding: 0px; margin: 0px; height: auto; width: 80px;" + alt="${object.company_id.name}" + /> + </td></tr> + <tr><td colspan="2" style="text-align:center;"> + <hr + width="100%" + style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin:16px 0px 16px 0px;" + /> + </td></tr> + </table> + </td> + </tr> + <!-- CONTENT --> + <tr> + <td align="center" style="min-width: 590px;"> + <table + border="0" + cellpadding="0" + cellspacing="0" + width="590" + style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;" + > + <tr><td valign="top" style="font-size: 13px;"> + <div> + Bonjour ${object.lastname or ''} ${object.firstname or ''},<br + /> <br /> + Vous avez été autorisé à accéder au portail de la plateforme d'Autoconsommation Collective Enercoop.<br + /> + Les données de votre compte de connexion sont: + <ul> + <li>Nom d'utilisateur: ${object.email or ''}</li> + <li>Portail: <a + href="${'portal_url' in ctx and ctx['portal_url'] or ''}" + >${'portal_url' in ctx and ctx['portal_url'] or ''}</a></li> + </ul> + Vous pouvez définir ou modifier votre mot de passe. + </div> + </td></tr> + <tr><td style="text-align:center;"> + <hr + width="100%" + style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" + /> + </td></tr> + </table> + </td> + </tr> -</tbody> -</table> -</td></tr> -</table> + </tbody> + </table> + </td></tr> + </table> </field> <field name="auto_delete" eval="True" /> <field name="lang">${object.lang}</field> @@ -104,91 +102,88 @@ <field name="name">ACC: Réinitialisation de mot de passe</field> <field name="model_id" ref="base.model_res_users" /> <field name="subject">Réinitialisation du mot de passe</field> - <field - name="email_from" - >"${object.company_id.name | safe}" <${(object.company_id.email or user.email) | safe}></field> <field name="email_to">${object.email_formatted | safe}</field> <field name="body_html" type="html"> -<table + <table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;" - ><tr><td align="center"> -<table + ><tr><td align="center"> + <table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;" > -<tbody> - <!-- HEADER --> - <tr> - <td align="center" style="min-width: 590px;"> - <table - border="0" - cellpadding="0" - cellspacing="0" - width="590" - style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;" - > - <tr><td valign="middle"> - <span style="font-size: 10px;">Votre compte</span><br /> - <span style="font-size: 20px; font-weight: bold;"> - ${object.name} - </span> - </td></tr> - <tr><td colspan="2" style="text-align:center;"> - <hr - width="100%" - style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" - /> - </td></tr> + <tbody> + <!-- HEADER --> + <tr> + <td align="center" style="min-width: 590px;"> + <table + border="0" + cellpadding="0" + cellspacing="0" + width="590" + style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;" + > + <tr><td valign="middle"> + <span style="font-size: 10px;">Votre compte</span><br /> + <span style="font-size: 20px; font-weight: bold;"> + ${object.name} + </span> + </td></tr> + <tr><td colspan="2" style="text-align:center;"> + <hr + width="100%" + style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" + /> + </td></tr> + </table> + </td> + </tr> + <!-- CONTENT --> + <tr> + <td align="center" style="min-width: 590px;"> + <table + border="0" + cellpadding="0" + cellspacing="0" + width="590" + style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;" + > + <tr><td valign="top" style="font-size: 13px;"> + <div> + Bonjour ${object.name},<br /><br /> + Nous avons reçu une demande de réinitialisation de mot de passe pour votre compte ACC. Cliquez sur ce lien, valable 24 heures, pour le changer::<br + /> + <div style="margin: 16px 0px 16px 0px;"> + <a + href="${'portal_url' in ctx and ctx['portal_url'] or ''}" + style="background-color: #95073e; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;" + > + Changer mot de passe + </a> + </div> + Si vous n'êtes pas à l'origine de cette demande, ignorez cet email.<br + /><br /> + Merci, + </div> + </td></tr> + <tr><td style="text-align:center;"> + <hr + width="100%" + style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" + /> + </td></tr> + </table> + </td> + </tr> + </tbody> </table> - </td> - </tr> - <!-- CONTENT --> - <tr> - <td align="center" style="min-width: 590px;"> - <table - border="0" - cellpadding="0" - cellspacing="0" - width="590" - style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;" - > - <tr><td valign="top" style="font-size: 13px;"> - <div> - Bonjour ${object.name},<br /><br /> - Nous avons reçu une demande de réinitialisation de mot de passe pour votre compte ACC. Cliquez sur ce lien, valable 24 heures, pour le changer::<br - /> - <div style="margin: 16px 0px 16px 0px;"> - <a - href="${'portal_url' in ctx and ctx['portal_url'] or ''}" - style="background-color: #95073e; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;" - > - Changer mot de passe - </a> - </div> - Si vous n'êtes pas à l'origine de cette demande, ignorez cet email.<br - /><br /> - Merci, - </div> - </td></tr> - <tr><td style="text-align:center;"> - <hr - width="100%" - style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" - /> - </td></tr> + </td></tr> </table> - </td> - </tr> -</tbody> -</table> -</td></tr> -</table> </field> <field name="lang">${lang}</field> <field name="auto_delete" eval="True" />