<?xml version="1.0"?>
<openerp>
    <data noupdate="1">

        <!-- Create a partner, that is also a portal user -->
        <record id="partner_demo_portal" model="res.partner">
            <field name="name">Demo Portal User</field>
            <field name="email">demo.portal@yourcompany.example.com</field>
            <field name="supplier" eval="False"/>
            <field name="customer" eval="True"/>
            <field name="notify_email">none</field>
            <field name="city">Vivegnis</field>
            <field name="zip">4683</field>
            <field name="country_id" ref="base.be"/>
            <field name="street">Rue Cesar de Paepe, 43</field>
        </record>
        <record id="demo_user0" model="res.users" context="{'no_reset_password': True}">
            <field name="partner_id" ref="partner_demo_portal"/>
            <field name="login">portal</field>
            <field name="password">portal</field>
            <field name="signature"><![CDATA[<span>--<br/>
Mr Demo Portal</span>]]></field>
            <!-- Avoid auto-including this user in any default group -->
            <field name="groups_id" eval="[(5,)]"/>
        </record>

        <!-- Add the demo user to the portal (and therefore to the portal member group) -->
        <record id="base.group_portal" model="res.groups">
            <field name="users" eval="[(4,ref('demo_user0'))]"/>
        </record>

    </data>
</openerp>
