[FIX] project: access task without project

Allow access to task without a project defined if the user is follower.
Fixes #3450
This commit is contained in:
Martin Trigaux 2014-11-06 18:05:28 +01:00
parent b573077be6
commit c22ed1390b
1 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,9 @@
<field name="domain_force">['|',
('project_id.privacy_visibility', 'in', ['public', 'employees']),
'&amp;',
('project_id.privacy_visibility', '=', 'followers'),
'|',
('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'))]"/>