Browse Source
[9.0][IMP] base_tier_validation: filter out reviews not pending
pull/52/head
Lois Rilo
7 years ago
committed by
Naglis Jonaitis
No known key found for this signature in database
GPG Key ID: 4748835F585390F5
1 changed files with
3 additions and
1 deletions
-
base_tier_validation/models/tier_validation.py
|
|
@ -43,7 +43,9 @@ class TierValidation(models.AbstractModel): |
|
|
|
@api.model |
|
|
|
def _search_reviewer_ids(self, operator, value): |
|
|
|
reviews = self.env['tier.review'].search([ |
|
|
|
('model', '=', self._name), ('reviewer_ids', operator, value)]) |
|
|
|
('model', '=', self._name), |
|
|
|
('reviewer_ids', operator, value), |
|
|
|
('status', '=', 'pending')]) |
|
|
|
return [('id', 'in', list(set(reviews.mapped('res_id'))))] |
|
|
|
|
|
|
|
@api.multi |
|
|
|