Skip to Content
Menu
This question has been flagged

I'm trying to duplicate the functionality of is_follower for filtering tasks. I want to show all tasks that are assigned to a user that is a manager (or a manager of the manager - any parent) of the current user as assigned in hr.employee with parent_id.

_inherit = 'project.task'

is_crewmember = fields.Boolean('Is Crewmember', compute='_compute_is_crewmember', search='_search_is_crewmember')

I am at a loss with the two definitions _compute_is_crewmember and _search_is_crewmember...

Avatar
Discard
Related Posts Replies Views Activity
2
Oct 20
6003
1
Sep 20
1553
2
Mar 18
4094
0
Mar 15
2939
1
Mar 15
3695