Skip to content
Snippets Groups Projects
Commit 386e1749 authored by Juliana's avatar Juliana
Browse files

[UPD]Change mail url portal + email from

parent c598f38d
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<field name="model_id" ref="base.model_res_partner" /> <field name="model_id" ref="base.model_res_partner" />
<field name="subject">Votre compte ${object.name}</field> <field name="subject">Votre compte ${object.name}</field>
<field name="email_to">${object.email}</field> <field name="email_to">${object.email}</field>
<field name="email_from">app@elo.coop</field>
<field name="body_html" type="html"> <field name="body_html" type="html">
<table <table
border="0" border="0"
...@@ -93,8 +94,9 @@ ...@@ -93,8 +94,9 @@
href="${'portal_url' in ctx and ctx['portal_url'] or ''}" href="${'portal_url' in ctx and ctx['portal_url'] or ''}"
>${'portal_url' in ctx and ctx['portal_url'] or ''}</a></li> >${'portal_url' in ctx and ctx['portal_url'] or ''}</a></li>
</ul> </ul>
Vous pouvez définir ou modifier votre mot de passe.<br Vous pouvez initialiser votre mot de passe:<br/>
/><br /> Lien d'initialisation: <a href="${'user_signup_url' in ctx and ctx['user_signup_url'] or ''}">${'user_signup_url' in ctx and ctx['user_signup_url'] or ''}</a>
<br /><br />
Bonne journée,<br /> Bonne journée,<br />
L'équipe d'Elocoop L'équipe d'Elocoop
</div> </div>
...@@ -177,7 +179,7 @@ ...@@ -177,7 +179,7 @@
<div> <div>
Bonjour ${object.name},<br /><br /> Bonjour ${object.name},<br /><br />
Nous avons reçu une demande de réinitialisation de mot de passe pour votre compte de la plateforme d'Autoconsommation Enercoop. Nous avons reçu une demande de réinitialisation de mot de passe pour votre compte de la plateforme d'Autoconsommation Enercoop.
Cliquez sur ce lien, valable 24 heures, pour le changer::<br Cliquez sur ce lien, valable 24 heures, pour le changer:<br
/> />
<div style="margin: 16px 0px 16px 0px;"> <div style="margin: 16px 0px 16px 0px;">
<a <a
......
...@@ -131,6 +131,7 @@ class ResPartner(models.Model): ...@@ -131,6 +131,7 @@ class ResPartner(models.Model):
dbname=self._cr.dbname, dbname=self._cr.dbname,
portal_url=portal_url, portal_url=portal_url,
company_id=company_id, company_id=company_id,
user_signup_url=user_portal.signup_url,
lang=lang, lang=lang,
).send_mail(self.id, force_send=True) ).send_mail(self.id, force_send=True)
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment