We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34ed40d commit 1182c1cCopy full SHA for 1182c1c
fieldservice/models/fsm_stage.py
@@ -73,8 +73,8 @@ def get_color_information(self):
73
def create(self, vals):
74
stages = self.env['fsm.stage'].search([])
75
for stage in stages:
76
- if stage.stage_type == vals['stage_type'] and \
77
- stage.sequence == vals['sequence']:
+ if stage.stage_type == vals.get('stage_type') and \
+ stage.sequence == vals.get('sequence'):
78
raise ValidationError(_("Cannot create FSM Stage because "
79
"it has the same Type and Sequence "
80
"of an existing FSM Stage."))
0 commit comments