fixed
This commit is contained in:
parent
eb52c39ca3
commit
a9b341076a
|
@ -592,7 +592,7 @@ class Trade(ActionWithMultipleDevices):
|
||||||
data['confirm'] = True
|
data['confirm'] = True
|
||||||
return
|
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"
|
txt = "you need a code to be able to do the traceability"
|
||||||
raise ValidationError(txt)
|
raise ValidationError(txt)
|
||||||
|
|
||||||
|
|
Reference in a new issue