This commit moves the whole customer portal to the portal module. It now completely uses portal and http_routing features and is not dependent on website anymore. An override of web controller is added in portal in order to redirect portal users to /my instead of /web. That way once having the customer portal installed all share users are correctly redirected to their account. All modules defining customer portal templates and controllers are updated accordingly.
39 lines
1.3 KiB
XML
39 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
|
|
<record id="mail_template_data_portal_welcome" model="mail.template">
|
|
<field name="name">Portal: new user</field>
|
|
<field name="model_id" ref="portal.model_portal_wizard_user"/>
|
|
<field name="email_to">${object.partner_id.email}</field>
|
|
<field name="subject">Your Odoo account at ${user.company_id.name}</field>
|
|
<field name="lang">${object.partner_id.lang}</field>
|
|
<field name="auto_delete" eval="True"/>
|
|
<field name="user_signature" eval="True"/>
|
|
<field name="body_html"><![CDATA[
|
|
<p>
|
|
Dear ${object.user_id.name or ''},
|
|
</p>
|
|
<p>
|
|
You have been given access to ${user.company_id.name}'s ${object.wizard_id.portal_id.name}.
|
|
</p>
|
|
<p>
|
|
Your login account data is:
|
|
</p>
|
|
<ul>
|
|
<li>Username: ${object.user_id.login or ''}</li>
|
|
<li>Portal: <a href="${'portal_url' in ctx and ctx['portal_url'] or ''}">${'portal_url' in ctx and ctx['portal_url'] or ''}</a></li>
|
|
<li>Database: ${'dbname' in ctx and ctx['dbname'] or ''}</li>
|
|
</ul>
|
|
<p>
|
|
You can set or change your password via the following url:
|
|
</p>
|
|
<ul>
|
|
<li><a href="${object.user_id.signup_url}">${object.user_id.signup_url}</a></li>
|
|
</ul>
|
|
<p>
|
|
${object.wizard_id.welcome_message or ''}]]></field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|