Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EdgarRetes committed Nov 22, 2024
1 parent de6aa77 commit f42523b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions fieldservice_stage_validation/models/validate_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ def validate_stage_fields(records):

for name in field_names:
if not values[0][name]:
message = _(
"Cannot move to stage %(stage_name)s until the %(name)s field is set."
)
raise ValidationError(
_(
"Cannot move to stage %(stage_name)s "
"until the %(name)s field is set.",
stage_name=stage.name,
name=name,
)
message
% {
"stage_name": stage.name,
"name": name,
}
)

0 comments on commit f42523b

Please sign in to comment.