|
| 1 | +<?xml version="1.0" encoding="utf-8" ?> |
| 2 | +<odoo> |
| 3 | + <record id="mail_template_portal_welcome_website" model="mail.template"> |
| 4 | + <field name="name">Portal: User Invite (Website)</field> |
| 5 | + <field name="model_id" ref="portal.model_portal_wizard_user" /> |
| 6 | + <field name="email_to">{{ object.user_id.email_formatted }}</field> |
| 7 | + <field |
| 8 | + name="description" |
| 9 | + >Invitation email using website name instead of company name</field> |
| 10 | + <field name="lang">{{ object.partner_id.lang }}</field> |
| 11 | + <field name="auto_delete" eval="True" /> |
| 12 | + <field |
| 13 | + name="subject" |
| 14 | + >Your account at {{ object.website_id.name or object.user_id.company_id.name }}</field> |
| 15 | + <field name="body_html" type="html"> |
| 16 | +<table |
| 17 | + border="0" |
| 18 | + cellpadding="0" |
| 19 | + cellspacing="0" |
| 20 | + style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;" |
| 21 | + ><tr><td align="center"> |
| 22 | +<table |
| 23 | + border="0" |
| 24 | + cellpadding="0" |
| 25 | + cellspacing="0" |
| 26 | + width="590" |
| 27 | + style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;" |
| 28 | + > |
| 29 | +<tbody> |
| 30 | + <!-- HEADER --> |
| 31 | + <tr> |
| 32 | + <td align="center" style="min-width: 590px;"> |
| 33 | + <table |
| 34 | + border="0" |
| 35 | + cellpadding="0" |
| 36 | + cellspacing="0" |
| 37 | + width="590" |
| 38 | + style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;" |
| 39 | + > |
| 40 | + <tr><td valign="middle"> |
| 41 | + <span style="font-size: 10px;">Your Account</span><br /> |
| 42 | + <span |
| 43 | + style="font-size: 20px; font-weight: bold;" |
| 44 | + t-out="object.user_id.name or ''" |
| 45 | + >Marc Demo</span> |
| 46 | + </td><td |
| 47 | + valign="middle" |
| 48 | + align="right" |
| 49 | + t-if="not object.user_id.company_id.uses_default_logo" |
| 50 | + > |
| 51 | + <img |
| 52 | + t-attf-src="/logo.png?company={{ object.user_id.company_id.id }}" |
| 53 | + style="padding: 0px; margin: 0px; height: auto; width: 80px;" |
| 54 | + t-att-alt="object.user_id.company_id.name" |
| 55 | + /> |
| 56 | + </td></tr> |
| 57 | + <tr><td colspan="2" style="text-align:center;"> |
| 58 | + <hr |
| 59 | + width="100%" |
| 60 | + 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;" |
| 61 | + /> |
| 62 | + </td></tr> |
| 63 | + </table> |
| 64 | + </td> |
| 65 | + </tr> |
| 66 | + <!-- CONTENT --> |
| 67 | + <tr> |
| 68 | + <td align="center" style="min-width: 590px;"> |
| 69 | + <table |
| 70 | + border="0" |
| 71 | + cellpadding="0" |
| 72 | + cellspacing="0" |
| 73 | + width="590" |
| 74 | + style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;" |
| 75 | + > |
| 76 | + <tr><td valign="top" style="font-size: 13px;"> |
| 77 | + <div> |
| 78 | + Dear <t t-out="object.user_id.name or ''">Marc Demo</t>,<br |
| 79 | + /> <br /> |
| 80 | + Welcome to <t |
| 81 | + t-out="object.website_id.name or object.user_id.company_id.name or ''" |
| 82 | + >YourCompany</t>'s Portal!<br |
| 83 | + /><br /> |
| 84 | + An account has been created for you with the following login: <t |
| 85 | + t-out="object.user_id.login" |
| 86 | + >demo</t><br /><br /> |
| 87 | + Click on the button below to pick a password and activate your account. |
| 88 | + <div style="margin: 16px 0px 16px 0px; text-align: center;"> |
| 89 | + <a |
| 90 | + t-att-href="object.user_id.signup_url" |
| 91 | + style="display: inline-block; padding: 10px; text-decoration: none; font-size: 12px; background-color: #875A7B; color: #fff; border-radius: 5px;" |
| 92 | + > |
| 93 | + <strong>Activate Account</strong> |
| 94 | + </a> |
| 95 | + </div> |
| 96 | + <t |
| 97 | + t-out="object.wizard_id.welcome_message or ''" |
| 98 | + >Welcome to our company's portal.</t> |
| 99 | + </div> |
| 100 | + </td></tr> |
| 101 | + <tr><td style="text-align:center;"> |
| 102 | + <hr |
| 103 | + width="100%" |
| 104 | + 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;" |
| 105 | + /> |
| 106 | + </td></tr> |
| 107 | + </table> |
| 108 | + </td> |
| 109 | + </tr> |
| 110 | + <!-- FOOTER --> |
| 111 | + <tr> |
| 112 | + <td align="center" style="min-width: 590px;"> |
| 113 | + <table |
| 114 | + border="0" |
| 115 | + cellpadding="0" |
| 116 | + cellspacing="0" |
| 117 | + width="590" |
| 118 | + style="min-width: 590px; background-color: white; font-size: 11px; padding: 0px 8px 0px 8px; border-collapse:separate;" |
| 119 | + > |
| 120 | + <tr><td valign="middle" align="left"> |
| 121 | + <t |
| 122 | + t-out="object.website_id.name or object.user_id.company_id.name or ''" |
| 123 | + >YourCompany</t> |
| 124 | + </td></tr> |
| 125 | + <tr><td valign="middle" align="left" style="opacity: 0.7;"> |
| 126 | + <t t-out="object.user_id.company_id.phone or ''">+1 650-123-4567</t> |
| 127 | + <t t-if="object.user_id.company_id.email"> |
| 128 | + | <a |
| 129 | + t-attf-href="'mailto:%s' % {{ object.user_id.company_id.email }}" |
| 130 | + style="text-decoration:none; color: #454748;" |
| 131 | + t-out="object.user_id.company_id.email or ''" |
| 132 | + >info@yourcompany.com</a> |
| 133 | + </t> |
| 134 | + <t t-if="object.user_id.company_id.website"> |
| 135 | + | <a |
| 136 | + t-attf-href="'%s' % {{ object.user_id.company_id.website }}" |
| 137 | + style="text-decoration:none; color: #454748;" |
| 138 | + t-out="object.user_id.company_id.website or ''" |
| 139 | + >http://www.example.com</a> |
| 140 | + </t> |
| 141 | + </td></tr> |
| 142 | + </table> |
| 143 | + </td> |
| 144 | + </tr> |
| 145 | +</tbody> |
| 146 | +</table> |
| 147 | +</td></tr> |
| 148 | +<!-- POWERED BY --> |
| 149 | +<tr><td align="center" style="min-width: 590px;"> |
| 150 | + <table |
| 151 | + border="0" |
| 152 | + cellpadding="0" |
| 153 | + cellspacing="0" |
| 154 | + width="590" |
| 155 | + style="min-width: 590px; background-color: #F1F1F1; color: #454748; padding: 8px; border-collapse:separate;" |
| 156 | + > |
| 157 | + <tr><td style="text-align: center; font-size: 13px;"> |
| 158 | + Powered by <a |
| 159 | + target="_blank" |
| 160 | + href="https://www.odoo.com?utm_source=db&utm_medium=portalinvite" |
| 161 | + style="color: #875A7B;" |
| 162 | + >Odoo</a> |
| 163 | + </td></tr> |
| 164 | + </table> |
| 165 | +</td></tr> |
| 166 | +</table> |
| 167 | + </field> |
| 168 | + </record> |
| 169 | +</odoo> |
0 commit comments