User
Manager
Task's Work on Tasks
Time Estimation on Tasks
Task Delegation
Project: multi-company
['|',
('company_id', '=', False),
('company_id', 'child_of', [user.company_id.id]),
]
Project: project manager: see all
[(1, '=', 1)]
Project: employees: public, employees or followers
['|',
('privacy_visibility', 'in', ['public', 'employees']),
('message_follower_ids', 'in', [user.partner_id.id])
]
Project/Task: multi-company
['|',
('company_id', '=', False),
('company_id', 'child_of', [user.company_id.id]),
]
Project/Task: employees: public or employee or (followers and following)
[
'|',
('project_id.privacy_visibility', 'in', ['public', 'employees']),
'|',
'&',
('project_id.privacy_visibility', '=', 'followers'),
('project_id.message_follower_ids', 'in', [user.partner_id.id]),
'|',
('message_follower_ids', 'in', [user.partner_id.id]),
# to subscribe check access to the record, follower is not enough at creation
('user_id', '=', user.id)
]
Project/Task: project manager: see all
[(1, '=', 1)]