From bc916a23fe00e4de6b761883ee6e6e72b63bcfe5 Mon Sep 17 00:00:00 2001 From: cbeddies Date: Wed, 30 Mar 2022 09:52:04 -0700 Subject: [PATCH] [14.0][FIX] Fix Validation error if vals does not have state --- base_tier_validation/models/tier_validation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/base_tier_validation/models/tier_validation.py b/base_tier_validation/models/tier_validation.py index 117725c12e..4b98686004 100644 --- a/base_tier_validation/models/tier_validation.py +++ b/base_tier_validation/models/tier_validation.py @@ -208,6 +208,7 @@ def write(self, vals): ) if ( rec.review_ids + and self._state_field in vals and getattr(rec, self._state_field) in self._state_from and not vals.get(self._state_field) in (self._state_to + [self._cancel_state])