Skip to content

Commit

Permalink
Merge PR #740 into 13.0
Browse files Browse the repository at this point in the history
Signed-off-by LoisRForgeFlow
  • Loading branch information
OCA-git-bot committed Oct 30, 2023
2 parents 5cdf61c + be44998 commit 6497eb7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions base_tier_validation/models/tier_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def _compute_reviewer_ids(self):
def _search_validated(self, operator, value):
assert operator in ("=", "!="), "Invalid domain operator"
assert value in (True, False), "Invalid domain value"
pos = self.search([(self._state_field, "in", self._state_from)]).filtered(
lambda r: r.validated
)
pos = self.search(
[(self._state_field, "in", self._state_from), ("review_ids", "!=", False)]
).filtered(lambda r: r.validated)
if value:
return [("id", "in", pos.ids)]
else:
Expand All @@ -118,9 +118,9 @@ def _search_validated(self, operator, value):
def _search_rejected(self, operator, value):
assert operator in ("=", "!="), "Invalid domain operator"
assert value in (True, False), "Invalid domain value"
pos = self.search([(self._state_field, "in", self._state_from)]).filtered(
lambda r: r.rejected
)
pos = self.search(
[(self._state_field, "in", self._state_from), ("review_ids", "!=", False)]
).filtered(lambda r: r.rejected)
if value:
return [("id", "in", pos.ids)]
else:
Expand Down

0 comments on commit 6497eb7

Please sign in to comment.