By default, Project Managers can see project phases of all projects, even if they didn't create or aren't following the projects. I've tried using the following record rule:
['|',('user_id','=',False),('user_id','=',user.id)]
and applying it to the object 'project.phase' to limit read access to projects that they associated with, but doing so gives me the following error when I click on either the Project/Project or Project/Project Phases menu items:
raise ValueError("Invalid field %r in leaf %r" % (left, str(leaf))) ValueError: Invalid field 'user_id' in leaf "<osv.extendedleaf: ('user_id',="" '=", False) on project_phase (ctx: )>"</p> <p>Is their some way to change this record rule so that it allows Project Managers to see phases of projects that they are associated with but not projects they have nothing to do with</p> ">