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

    <record id="group_project_user" model="res.groups">
        <field name="name">User</field>
        <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="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>

    <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_public_members_rule">
        <field name="name">public Members</field>
        <field name="model_id" ref="model_project_project"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['|','|',('privacy_visibility','in',[False,'public']),('members','in',[user.id]),('follower_ids','in',[user.partner_id.id])]</field>
    </record>

    <record model="ir.rule" id="task_comp_rule">
        <field name="name" >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" >Tasks According to User and Project</field>
        <field name="model_id" ref="model_project_task"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['|','|','|',('user_id','=',False),('user_id','=',user.id),('project_id.members','in', [user.id]),('project_id.user_id','=',user.id)]</field>
        <field name="groups" eval="[(4,ref('project.group_project_user'))]"/>
    </record>

    <record model="ir.rule" id="project_manager_all_project_tasks_rule">
        <field name="name">Project Managers: all tasks from all projects</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: fixed a security rule based on follower_ids, that is now message_follower_ids.<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">

    <record id="group_project_user" model="res.groups">
        <field name="name">User</field>
        <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="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>

    <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_public_members_rule">
        <field name="name">public Members</field>
        <field name="model_id" ref="model_project_project"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['|','|',('privacy_visibility','in',[False,'public']),('members','in',[user.id]),('message_follower_ids','in',[user.partner_id.id])]</field>
    </record>

    <record model="ir.rule" id="task_comp_rule">
        <field name="name" >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" >Tasks According to User and Project</field>
        <field name="model_id" ref="model_project_task"/>
        <field name="global" eval="True"/>
        <field name="domain_force">['|','|','|',('user_id','=',False),('user_id','=',user.id),('project_id.members','in', [user.id]),('project_id.user_id','=',user.id)]</field>
        <field name="groups" eval="[(4,ref('project.group_project_user'))]"/>
    </record>

    <record model="ir.rule" id="project_manager_all_project_tasks_rule">
        <field name="name">Project Managers: all tasks from all projects</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.20180205949656752, 'fraction_numerical': 0.0037185354691075517, 'mean_word_length': 4.429347826086956, 'pattern_counts': {'":': 0, '<': 157, '<?xml version=': 2, '>': 157, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4142716', 'n_tokens_mistral': 2289, 'n_tokens_neox': 2254, 'n_words': 350}