diff --git a/data/mail_data.xml b/data/mail_data.xml index 7f467ca636bc87b89bfd2a5ebc9ee5b55f310b4d..c364b3f961b1791396db1069ad0c074769071b35 100644 --- a/data/mail_data.xml +++ b/data/mail_data.xml @@ -7,6 +7,7 @@ <field name="model_id" ref="base.model_res_partner" /> <field name="subject">Votre compte ${object.name}</field> <field name="email_to">${object.email}</field> + <field name="email_from">app@elo.coop</field> <field name="body_html" type="html"> <table border="0" @@ -93,8 +94,9 @@ 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.<br - /><br /> + Vous pouvez initialiser votre mot de passe:<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 /> L'équipe d'Elocoop </div> @@ -177,7 +179,7 @@ <div> 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. - 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;"> <a diff --git a/models/res_partner.py b/models/res_partner.py index c1cd287b9418c7a7fb4e79942d0d2f7a2de3b68e..4106c0bf9e8e193259d31a81ec289707c83b34c6 100644 --- a/models/res_partner.py +++ b/models/res_partner.py @@ -131,6 +131,7 @@ class ResPartner(models.Model): dbname=self._cr.dbname, portal_url=portal_url, company_id=company_id, + user_signup_url=user_portal.signup_url, lang=lang, ).send_mail(self.id, force_send=True) else: