Skip to content

Commit

Permalink
[14.0][FIX] Fix Validation error if vals does not have state
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeddies committed Mar 30, 2022
1 parent fd0d720 commit bc916a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base_tier_validation/models/tier_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit bc916a2

Please sign in to comment.