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

        <record id="portal_project_long_term_rule" model="ir.rule">
            <field name="name">Project/Phase: portal users: public or portal and following</field>
            <field name="model_id" ref="project_long_term.model_project_phase"/>
            <field name="domain_force">[('project_id.privacy_visibility', 'in', ['public', 'portal'])]</field>
            <field name="groups" eval="[(4, ref('portal.group_portal'))]"/>
        </record>

        <record model="ir.rule" id="project_phase_anonymous_rule">
            <field name="name">Project/Phase: anonymous users: public only</field>
            <field name="model_id" ref="project_long_term.model_project_phase"/>
            <field name="domain_force">[('project_id.privacy_visibility', '=', 'public')]</field>
            <field name="groups" eval="[(4, ref('portal.group_anonymous'))]"/>
        </record>

    </data>
</openerp>
