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

        <record id="portal_event_rule" model="ir.rule">
            <field name="name">Portal Visible Events</field>
            <field ref="event.model_event_event" name="model_id"/>
            <field name="domain_force">['|', ('visibility', '=', 'public'), ('message_follower_ids','in', [user.partner_id.id])]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal')), (4, ref('portal.group_anonymous'))]"/>
        </record>

        <record id="portal_registration_rule" model="ir.rule">
            <field name="name">Portal Personal Registrations</field>
            <field ref="event.model_event_registration" name="model_id"/>
            <field name="domain_force">[('user_id','=',user.id)]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal')), (4, ref('portal.group_anonymous'))]"/>
        </record>

    </data>
</openerp>
