Employee-Idea-Multi-Company
['|',('company_id','=',False),('company_id',
'in', company_ids)]
Idea-Type-Multi-Company
['|',('company_id','=',False),('company_id',
'in', company_ids)]
Give-Votes-Multi-Company
['|',('company_id','=',False),('company_id',
'in', company_ids)]
Employee Idea View
['|', ('state','=','post'),('employee_id.user_id', '=', user.id), ('idea_type_id.hr_department_ids', 'in', [user.department_id.id])]
Record rule for allowing the access of all records in employee.idea
Employee Idea View Hr
[('state', 'in', ['draft', 'post', 'approval', 'rejected'])]