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

        <record model="ir.rule" id="issue_project_manager_rule">
            <field name="name">Project/Issue: project manager: see all</field>
            <field name="model_id" ref="model_project_issue"/>
            <field name="domain_force">[(1, '=', 1)]</field>
            <field name="groups" eval="[(4,ref('project.group_project_manager'))]"/>
        </record>

        <record model="ir.rule" id="issue_user_rule">
            <field name="name">Project/Issue: employees: public or employee or following or assigned</field>
            <field name="model_id" ref="model_project_issue"/>
            <field name="domain_force">['|',
                                            '|',
                                                ('project_id.privacy_visibility', 'in', ['public', 'employees']),
                                                '&amp;',
                                                    ('project_id.privacy_visibility', '=', 'followers'),
                                                    ('message_follower_ids', 'in', [user.id]),
                                            ('user_id', '=', user.id),
                                        ]</field>
            <field name="groups" eval="[(4,ref('base.group_user'))]"/>
        </record>

    </data>
</openerp>
