[FIX] project: multi-company security rules in Tasks Analysis

This change avoid to display the tasks
that a user is not permitted to see
in the reporting view 'Task analysis'

Closes #4399

Courtesy of jkei
https://github.com/jkei
This commit is contained in:
Denis Ledoux 2014-12-23 10:22:36 +01:00
parent 44bfb2bf44
commit fa17b86a9f
1 changed files with 7 additions and 0 deletions

View File

@ -101,5 +101,12 @@
<field name="groups" eval="[(4,ref('project.group_project_manager'))]"/>
</record>
<record model="ir.rule" id="report_project_task_user_report_comp_rule">
<field name="name">Task Analysis multi-company</field>
<field name="model_id" ref="model_report_project_task_user"/>
<field name="global" eval="True"/>
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field>
</record>
</data>
</openerp>