This commit is contained in:
Cayo Puigdefabregas 2021-06-07 15:48:55 +02:00
parent eb52c39ca3
commit a9b341076a

View file

@ -592,7 +592,7 @@ class Trade(ActionWithMultipleDevices):
data['confirm'] = True
return
if not data['confirm'] not data.get('code'):
if not data['confirm'] and not data.get('code'):
txt = "you need a code to be able to do the traceability"
raise ValidationError(txt)