diff options
| author | Denis Ledoux <dle@odoo.com> | 2014-12-23 10:22:36 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2015-09-28 15:58:15 +0200 |
| commit | fa17b86a9f88942d33914904ba52ea737650ac1a (patch) | |
| tree | abc42a289b92416da0252722a119fad575400e02 /addons/project/security | |
| parent | 44bfb2bf4492aced163b2be86b231307949946a9 (diff) | |
[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
Diffstat (limited to 'addons/project/security')
| -rw-r--r-- | addons/project/security/project_security.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/addons/project/security/project_security.xml b/addons/project/security/project_security.xml index e1c2a8f997a..56876d663d8 100644 --- a/addons/project/security/project_security.xml +++ b/addons/project/security/project_security.xml @@ -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> |
