Merge pull request #4289 from expsa/younes_dev_odex25_ensan

[IMP] Benefit
This commit is contained in:
kchyounes19 2025-08-24 08:32:58 +01:00 committed by GitHub
commit badf92416f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class GrantBenefitProfile(models.Model):
if self.env.user.has_group("odex_benefit.group_benefit_branch_manager"):
args += [('branch_custom_id.branch.manager_id', '=', self.env.user.employee_id.id)]
elif self.env.user.has_group("odex_benefit.group_benefit_woman_commitee"):
args += ['|',('branch_custom_id.branch.operation_manager_id', '=', self.env.user.employee_id.id),('state', '=','new')]
args += [('branch_custom_id.branch.operation_manager_id', '=', self.env.user.employee_id.id)]
elif self.env.user and self.env.user.id and self.env.user.has_group("odex_benefit.group_benefit_researcher"):
args += [('researcher_id.employee_id', '=', self.env.user.employee_id.id)]
return super(GrantBenefitProfile, self).search(args, offset, limit, order, count)