<commit_before><?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data noupdate="1">

        <!-- Default template user for new users signing in -->
        <record id="default_template_user" model="res.users">
            <field name="name">Template User</field>
            <field name="login">portaltemplate</field>
            <!-- No password: this template user doesn't need to log in -->
            <field name="password"></field>
            <field name="active" eval="False"/>
            <!-- Avoid auto-including this user in any default group, just like a typical portal member -->
            <field name="groups_id" eval="[(5,)]"/>
        </record>

        <record id="default_template_user_config" model="ir.config_parameter">
            <field name="key">auth_signup.template_user_id</field>
            <field name="value" ref="default_template_user"/>
        </record>

        <!-- Email template for reset password -->
        <record id="reset_password_email" model="email.template">
            <field name="name">Reset Password</field>
            <field name="model_id" ref="base.model_res_users"/>
            <field name="email_from"><![CDATA[${object.company_id.name} <${object.company_id.email}>]]></field>
            <field name="email_to">${object.email}</field>
            <field name="subject">Password reset</field>
            <field name="body_html"><![CDATA[
<p>A password reset was requested for the OpenERP account linked to this email.</p>

<p>You may change your password by following <a href="${object.signup_url}">this link</a>.</p>

<p>Note: If you do not expect this, you can safely ignore this email.</p>]]></field>
        </record>

        <!-- Email template for new users -->
        <record id="set_password_email" model="email.template">
            <field name="name">OpenERP Enterprise Connection</field>
            <field name="model_id" ref="base.model_res_users"/>
            <field name="email_from"><![CDATA[${object.company_id.name} <${object.company_id.email}>]]></field>
            <field name="email_to">${object.email}</field>
            <field name="subject"><![CDATA[${object.company_id.name} invitation to connect on OpenERP]]></field><commit_msg>[FIX] auth_signup: invitation mail - fallback to user email when company has no email<commit_after><?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data noupdate="1">

        <!-- Default template user for new users signing in -->
        <record id="default_template_user" model="res.users">
            <field name="name">Template User</field>
            <field name="login">portaltemplate</field>
            <!-- No password: this template user doesn't need to log in -->
            <field name="password"></field>
            <field name="active" eval="False"/>
            <!-- Avoid auto-including this user in any default group, just like a typical portal member -->
            <field name="groups_id" eval="[(5,)]"/>
        </record>

        <record id="default_template_user_config" model="ir.config_parameter">
            <field name="key">auth_signup.template_user_id</field>
            <field name="value" ref="default_template_user"/>
        </record>

        <!-- Email template for reset password -->
        <record id="reset_password_email" model="email.template">
            <field name="name">Reset Password</field>
            <field name="model_id" ref="base.model_res_users"/>
            <field name="email_from"><![CDATA[${object.company_id.name} <${object.company_id.email or user.email}>]]></field>
            <field name="email_to">${object.email}</field>
            <field name="subject">Password reset</field>
            <field name="body_html"><![CDATA[
<p>A password reset was requested for the OpenERP account linked to this email.</p>

<p>You may change your password by following <a href="${object.signup_url}">this link</a>.</p>

<p>Note: If you do not expect this, you can safely ignore this email.</p>]]></field>
        </record>

        <!-- Email template for new users -->
        <record id="set_password_email" model="email.template">
            <field name="name">OpenERP Enterprise Connection</field>
            <field name="model_id" ref="base.model_res_users"/>
            <field name="email_from"><![CDATA[${object.company_id.name} <${object.company_id.email or user.email}>]]></field>
            <field name="email_to">${object.email}</field>
            <field name="subject"><![CDATA[${object.company_id.name} invitation to connect on OpenERP]]></field>
{'fraction_non_alphanumeric': 0.15928038613426942, 'fraction_numerical': 0.002193944712593243, 'mean_word_length': 2.981659388646288, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 2, '>': 123, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4809304', 'n_tokens_mistral': 1272, 'n_tokens_neox': 1252, 'n_words': 319}