Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • 1b636e129706a18b139a8ea2b2847c386d41532e
  • 14.0 par défaut
  • 13.0
  • 12.0 protégée
4 résultats

.isort.cfg

Blame
  • mail_data.xml 13,09 Kio
    <?xml version="1.0" ?>
    <odoo>
        <data>
    
            <record id="acc_mail_template_data_portal_welcome" model="mail.template">
                <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="email_to">${object.email}</field>
                <field name="email_from">app@elo.coop</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 venez de rejoindre la plateforme Elocoop ! Elle vous permettra d’accéder aisément aux informations liées à l’opération d’autoconsommation collective à laquelle vous participez.<br
                                                                /><br />
    
                                            Grâce à Elocoop, vous pouvez :<br /> <br />
    
                                            <ul>
                                                <li
                                                                    >visualiser la consommation globale de votre communauté, avec un détail de celle provenant des moyens de production intégrés à votre opération</li>
                                                <li
                                                                    >visualiser votre propre consommation, avec un détail de celle provenant des 	moyens de production intégrés à votre opération</li>
                                                <li
                                                                    >accéder aux factures de l’électricité autoconsommée</li>
                                                <li
                                                                    >accéder aux différents contrats liés à votre opération : contrat d’achat local, contrats avec la personne morale organisatrice…</li>
                                            </ul>
    
                                            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 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>
                                    </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>
                </field>
                <field name="auto_delete" eval="False" />
                <field name="lang">${object.lang}</field>
            </record>
    
            <record id="acc_reset_password_email" model="mail.template">
                <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_to">${object.email_formatted | safe}</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></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 de la plateforme d'Autoconsommation Enercoop.
                                        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>
                </table>
                </field>
                <field name="lang">${lang}</field>
                <field name="auto_delete" eval="False" />
            </record>
    
        </data>
    </odoo>