Skip to content

Commit 384ae2b

Browse files
[FIX] viin_brand: change odoo email template to viindoo
1 parent dd82ef9 commit 384ae2b

15 files changed

Lines changed: 2814 additions & 5 deletions

File tree

viin_brand_auth_signup/__init__.py

Whitespace-only changes.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
'name': "Signup Authentication Branding For Viindoo",
3+
'name_vi_VN': "Giao diện Viindoo cho module Signup Authentication",
4+
5+
'summary': """
6+
Theme branding Viindoo for module Signup Authentication""",
7+
'summary_vi_VN': """
8+
Giao diện brand Viindoo cho module Signup Authentication
9+
""",
10+
11+
'description': """
12+
What it does
13+
============
14+
This module will change color navigate bar, button and logo,v.v in module Signup Authentication following Viindoo's brand
15+
16+
17+
Editions Supported
18+
==================
19+
1. Community Edition
20+
2. Enterprise Edition
21+
22+
""",
23+
24+
'description_vi_VN': """
25+
Ứng dụng này làm gì
26+
===================
27+
Module này sẽ thay đổi giao diện module Signup Authentication theo thương hiệu Viindoo
28+
29+
30+
Ấn bản được Hỗ trợ
31+
==================
32+
1. Ấn bản Community
33+
2. Ấn bản Enterprise
34+
35+
""",
36+
37+
'author': "Viindoo",
38+
'website': "https://viindoo.com",
39+
'live_test_url': "https://v18demo-int.viindoo.com",
40+
'live_test_url_vi_VN': "https://v18demo-vn.viindoo.com",
41+
'support': "[email protected]",
42+
43+
# Categories can be used to filter modules in modules listing
44+
# Check https://github.com/odoo/odoo/blob/16.0/odoo/addons/base/data/ir_module_category_data.xml
45+
# for the full list
46+
'category': 'Hidden',
47+
'version': '0.1',
48+
49+
# any module necessary for this one to work correctly
50+
'depends': ['auth_signup'],
51+
52+
# always loaded
53+
'data': [
54+
'data/mail_template_data.xml',
55+
],
56+
'installable': True,
57+
'auto_install': True,
58+
'price': 0.0,
59+
'currency': 'EUR',
60+
'license': 'OPL-1',
61+
}
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
<odoo>
2+
<!-- Override: New User Invite template branding -->
3+
<record id="auth_signup.set_password_email" model="mail.template">
4+
<field name="name">Settings: New User Invite</field>
5+
<field name="model_id" ref="base.model_res_users"/>
6+
<field name="subject">{{ object.create_uid.name }} from {{ object.company_id.name }} invites you to connect to Viindoo</field>
7+
<field name="body_html" type="html">
8+
<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #FFFFFF; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"><tr><td align="center">
9+
<table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 16px; background-color: #FFFFFF; color: #454748; border-collapse:separate;">
10+
<tbody>
11+
<!-- HEADER -->
12+
<tr>
13+
<td align="center" style="min-width: 590px;">
14+
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
15+
<tr><td valign="middle">
16+
<span style="font-size: 10px;">Welcome to Viindoo</span><br/>
17+
<span style="font-size: 20px; font-weight: bold;">
18+
<t t-out="object.name or ''">Marc Demo</t>
19+
</span>
20+
</td><td valign="middle" align="right" t-if="not object.company_id.uses_default_logo">
21+
<img t-attf-src="/logo.png?company={{ object.company_id.id }}" style="padding: 0px; margin: 0px; height: auto; width: 80px;" t-att-alt="object.company_id.name"/>
22+
</td></tr>
23+
<tr><td colspan="2" style="text-align:center;">
24+
<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;"/>
25+
</td></tr>
26+
</table>
27+
</td>
28+
</tr>
29+
<!-- CONTENT -->
30+
<tr>
31+
<td align="center" style="min-width: 590px;">
32+
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
33+
<tr><td valign="top" style="font-size: 13px;">
34+
<div>
35+
Dear <t t-out="object.name or ''">Marc Demo</t>,<br /><br />
36+
You have been invited by <t t-out="object.create_uid.name or ''">ViindooBot</t> of <t t-out="object.company_id.name or ''">YourCompany</t> to connect on Viindoo.
37+
<div style="margin: 16px 0px 16px 0px;">
38+
<a t-att-href="object.partner_id._get_signup_url()"
39+
t-attf-style="background-color: {{object.company_id.email_secondary_color or '#875A7B'}}; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">
40+
Accept invitation
41+
</a>
42+
</div>
43+
<b> This link will remain valid during <t t-out="int(int(object.env['ir.config_parameter'].sudo().get_param('auth_signup.signup.validity.hours',144))/24)"></t> days </b> <br/>
44+
<t t-set="website_url" t-value="object.get_base_url()"></t>
45+
Your Viindoo domain is: <b><a t-att-href='website_url' t-out="website_url or ''">http://yourcompany.viindoo.com</a></b><br />
46+
Your sign in email is: <b><a t-attf-href="/web/login?login={{ object.email }}" target="_blank" t-out="object.email or ''">[email protected]</a></b><br /><br />
47+
Never heard of Viindoo? It’s an all-in-one business software loved by 7+ million users. It will considerably improve your experience at work and increase your productivity.
48+
<br /><br />
49+
Have a look at the <a href="https://viindoo.com?utm_source=db&amp;utm_medium=email" style="color: #875A7B;">Viindoo Tour</a> to discover the tool.
50+
<br /><br />
51+
Enjoy Viindoo!<br />
52+
--<br/>The <t t-out="object.company_id.name or ''">YourCompany</t> Team
53+
</div>
54+
</td></tr>
55+
<tr><td style="text-align:center;">
56+
<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;"/>
57+
</td></tr>
58+
</table>
59+
</td>
60+
</tr>
61+
<!-- FOOTER -->
62+
<tr>
63+
<td align="center" style="min-width: 590px;">
64+
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; font-size: 11px; padding: 0px 8px 0px 8px; border-collapse:separate;">
65+
<tr><td valign="middle" align="left">
66+
<t t-out="object.company_id.name or ''">YourCompany</t>
67+
</td></tr>
68+
<tr><td valign="middle" align="left" style="opacity: 0.7;">
69+
<t t-out="object.company_id.phone or ''">+1 650-123-4567</t>
70+
<t t-if="object.company_id.email">
71+
| <a t-att-href="'mailto:%s' % object.company_id.email" style="text-decoration:none; color: #454748;" t-out="object.company_id.email or ''">[email protected]</a>
72+
</t>
73+
<t t-if="object.company_id.website">
74+
| <a t-att-href="'%s' % object.company_id.website" style="text-decoration:none; color: #454748;" t-out="object.company_id.website or ''">http://www.example.com</a>
75+
</t>
76+
</td></tr>
77+
</table>
78+
</td>
79+
</tr>
80+
</tbody>
81+
</table>
82+
</td></tr>
83+
<!-- POWERED BY -->
84+
<tr><td align="center" style="min-width: 590px;">
85+
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: #F1F1F1; color: #454748; padding: 8px; border-collapse:separate;">
86+
<tr><td style="text-align: center; font-size: 13px;">
87+
Powered by <a target="_blank" href="https://viindoo.com?utm_source=db&amp;utm_medium=email" style="color: #875A7B;">Viindoo</a>
88+
</td></tr>
89+
</table>
90+
</td></tr>
91+
</table></field>
92+
</record>
93+
94+
<!-- Override: Portal Sign Up template footer branding -->
95+
<record id="auth_signup.mail_template_user_signup_account_created" model="mail.template">
96+
<field name="name">Settings: New Portal Sign Up</field>
97+
<field name="model_id" ref="base.model_res_users"/>
98+
<field name="body_html" type="html">
99+
<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #FFFFFF; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"><tr><td align="center">
100+
<table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 16px; background-color: #FFFFFF; color: #454748; border-collapse:separate;">
101+
<tbody>
102+
<!-- HEADER -->
103+
<tr>
104+
<td align="center" style="min-width: 590px;">
105+
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
106+
<tr><td valign="middle">
107+
<span style="font-size: 10px;">Your Account</span><br/>
108+
<span style="font-size: 20px; font-weight: bold;">
109+
<t t-out="object.name or ''">Marc Demo</t>
110+
</span>
111+
</td><td valign="middle" align="right" t-if="not object.company_id.uses_default_logo">
112+
<img t-attf-src="/logo.png?company={{ object.company_id.id }}" style="padding: 0px; margin: 0px; height: auto; width: 80px;" t-att-alt="object.company_id.name"/>
113+
</td></tr>
114+
<tr><td colspan="2" style="text-align:center;">
115+
<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;"/>
116+
</td></tr>
117+
</table>
118+
</td>
119+
</tr>
120+
<!-- CONTENT -->
121+
<tr>
122+
<td align="center" style="min-width: 590px;">
123+
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;">
124+
<tr><td valign="top" style="font-size: 13px;">
125+
<div>
126+
Dear <t t-out="object.name or ''">Marc Demo</t>,<br/><br/>
127+
Your account has been successfully created!<br/>
128+
Your login is <strong><t t-out="object.email or ''">[email protected]</t></strong><br/>
129+
To gain access to your account, you can use the following link:
130+
<div style="margin: 16px 0px 16px 0px;">
131+
<a t-attf-href="/web/login?auth_login={{object.email}}"
132+
style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">
133+
Go to My Account
134+
</a>
135+
</div>
136+
Thanks,<br/>
137+
<t t-if="user.signature">
138+
<br/>
139+
<t t-out="user.signature or ''">--<br/>Mitchell Admin</t>
140+
</t>
141+
</div>
142+
</td></tr>
143+
<tr><td style="text-align:center;">
144+
<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;"/>
145+
</td></tr>
146+
</table>
147+
</td>
148+
</tr>
149+
<!-- FOOTER -->
150+
<tr>
151+
<td align="center" style="min-width: 590px;">
152+
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: white; font-size: 11px; padding: 0px 8px 0px 8px; border-collapse:separate;">
153+
<tr><td valign="middle" align="left">
154+
<t t-out="object.company_id.name or ''">YourCompany</t>
155+
</td></tr>
156+
<tr><td valign="middle" align="left" style="opacity: 0.7;">
157+
<t t-out="object.company_id.phone or ''">+1 650-123-4567</t>
158+
<t t-if="object.company_id.email">
159+
| <a t-attf-href="'mailto:%s' % {{ object.company_id.email }}" style="text-decoration:none; color: #454748;"><t t-out="object.company_id.email or ''">[email protected]</t></a>
160+
</t>
161+
<t t-if="object.company_id.website">
162+
| <a t-attf-href="'%s' % {{ object.company_id.website }}" style="text-decoration:none; color: #454748;">
163+
<t t-out="object.company_id.website or ''">http://www.example.com</t>
164+
</a>
165+
</t>
166+
</td></tr>
167+
</table>
168+
</td>
169+
</tr>
170+
</tbody>
171+
</table>
172+
</td></tr>
173+
<!-- POWERED BY -->
174+
<tr><td align="center" style="min-width: 590px;">
175+
<table border="0" cellpadding="0" cellspacing="0" width="590" style="min-width: 590px; background-color: #F1F1F1; color: #454748; padding: 8px; border-collapse:separate;">
176+
<tr><td style="text-align: center; font-size: 13px;">
177+
Powered by <a target="_blank" href="https://viindoo.com?utm_source=db&amp;utm_medium=email" style="color: #875A7B;">Viindoo</a>
178+
</td></tr>
179+
</table>
180+
</td></tr>
181+
</table>
182+
</field>
183+
</record>
184+
</odoo>

0 commit comments

Comments
 (0)