From 7459d333e2e907bf6447fb480284c89648e8a672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Gil=20Sorribes?= Date: Fri, 15 Feb 2019 12:24:26 +0100 Subject: [PATCH] [11.0][FIX] base_tier_validation --- base_tier_validation/models/tier_validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_tier_validation/models/tier_validation.py b/base_tier_validation/models/tier_validation.py index 10ff646..0150bf4 100644 --- a/base_tier_validation/models/tier_validation.py +++ b/base_tier_validation/models/tier_validation.py @@ -88,7 +88,7 @@ class TierValidation(models.AbstractModel): tiers = self.env[ 'tier.definition'].search([('model', '=', self._name)]) valid_tiers = any([self.evaluate_tier(tier) for tier in tiers]) - rec.need_validation = not self.review_ids and valid_tiers and \ + rec.need_validation = not rec.review_ids and valid_tiers and \ getattr(rec, self._state_field) in self._state_from @api.multi