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

    <record id="group_project_user" model="res.groups">
        <field name="name">User</field>
        <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
        <field name="category_id" ref="base.module_category_project_management"/>
    </record>

    <record id="group_project_manager" model="res.groups">
        <field name="name">Manager</field>
        <field name="category_id" ref="base.module_category_project_management"/>
        <field name="implied_ids" eval="[(4, ref('group_project_user'))]"/>
        <field name="users" eval="[(4, ref('base.user_root'))]"/>
    </record>

    <record model="ir.ui.menu" id="base.menu_definitions">
        <field name="name">Configuration</field>
        <field name="groups_id" eval="[(6,0,[ref('group_project_manager')])]"/>
    </record>

    <record id="group_tasks_work_on_tasks" model="res.groups">
        <field name="name">Task's Work on Tasks</field>
        <field name="category_id" ref="base.module_category_hidden"/>
    </record>
    
    <record id="group_time_work_estimation_tasks" model="res.groups">
        <field name="name">Time Estimation on Tasks</field>
        <field name="implied_ids" eval="[(4, ref('group_tasks_work_on_tasks'))]"/>
        <field name="category_id" ref="base.module_category_hidden"/>
    </record>

    <record id="group_delegate_task" model="res.groups">
        <field name="name">Task Delegation</field>
        <field name="category_id" ref="base.module_category_hidden"/>
    </record>

</data>
<data noupdate="1">

    <record model="ir.rule" id="project_comp_rule">
        <field name="name">Project: multi-company</field>
        <field name="model_id" ref="model_project_project"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['|',
                                        ('company_id', '=', False),
                                        ('company_id', 'child_of', [user.company_id.id]),
                                    ]</field>
    </record>

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

    <record model="ir.rule" id="project_public_members_rule">
        <field name="name">Project: employees: public, employees or followers</field>
        <field name="model_id" ref="model_project_project"/>
        <field name="domain_force">['|',
                                        ('privacy_visibility', 'in', ['public', 'employees']),
                                        ('message_follower_ids', 'in', [user.partner_id.id])
                                    ]</field>
        <field name="groups" eval="[(4, ref('base.group_user'))]"/>
    </record>

    <record model="ir.rule" id="task_comp_rule">
        <field name="name">Project/Task: multi-company</field>
        <field name="model_id" ref="model_project_task"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['|',
                                        ('company_id', '=', False),
                                        ('company_id', 'child_of', [user.company_id.id]),
                                    ]</field>
    </record>

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

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

</data>
</openerp><commit_msg>[FIX] project: access task without project<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="0">

    <record id="group_project_user" model="res.groups">
        <field name="name">User</field>
        <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
        <field name="category_id" ref="base.module_category_project_management"/>
    </record>

    <record id="group_project_manager" model="res.groups">
        <field name="name">Manager</field>
        <field name="category_id" ref="base.module_category_project_management"/>
        <field name="implied_ids" eval="[(4, ref('group_project_user'))]"/>
        <field name="users" eval="[(4, ref('base.user_root'))]"/>
    </record>

    <record model="ir.ui.menu" id="base.menu_definitions">
        <field name="name">Configuration</field>
        <field name="groups_id" eval="[(6,0,[ref('group_project_manager')])]"/>
    </record>

    <record id="group_tasks_work_on_tasks" model="res.groups">
        <field name="name">Task's Work on Tasks</field>
        <field name="category_id" ref="base.module_category_hidden"/>
    </record>
    
    <record id="group_time_work_estimation_tasks" model="res.groups">
        <field name="name">Time Estimation on Tasks</field>
        <field name="implied_ids" eval="[(4, ref('group_tasks_work_on_tasks'))]"/>
        <field name="category_id" ref="base.module_category_hidden"/>
    </record>

    <record id="group_delegate_task" model="res.groups">
        <field name="name">Task Delegation</field>
        <field name="category_id" ref="base.module_category_hidden"/>
    </record>

</data>
<data noupdate="1">

    <record model="ir.rule" id="project_comp_rule">
        <field name="name">Project: multi-company</field>
        <field name="model_id" ref="model_project_project"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['|',
                                        ('company_id', '=', False),
                                        ('company_id', 'child_of', [user.company_id.id]),
                                    ]</field>
    </record>

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

    <record model="ir.rule" id="project_public_members_rule">
        <field name="name">Project: employees: public, employees or followers</field>
        <field name="model_id" ref="model_project_project"/>
        <field name="domain_force">['|',
                                        ('privacy_visibility', 'in', ['public', 'employees']),
                                        ('message_follower_ids', 'in', [user.partner_id.id])
                                    ]</field>
        <field name="groups" eval="[(4, ref('base.group_user'))]"/>
    </record>

    <record model="ir.rule" id="task_comp_rule">
        <field name="name">Project/Task: multi-company</field>
        <field name="model_id" ref="model_project_task"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['|',
                                        ('company_id', '=', False),
                                        ('company_id', 'child_of', [user.company_id.id]),
                                    ]</field>
    </record>

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

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

</data>
</openerp>
{'fraction_non_alphanumeric': 0.1728144989339019, 'fraction_numerical': 0.004051172707889125, 'mean_word_length': 2.4262235208181155, 'pattern_counts': {'":': 0, '<': 181, '<?xml version=': 2, '>': 181, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 36, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '967378', 'n_tokens_mistral': 2721, 'n_tokens_neox': 2665, 'n_words': 464}