Hello Everyone,
I have to try to apply validation on checkbox. In my process they have product with a multiple option.
So how to apply validation on check box for both option one product option must be select otherwise validation error show. my code below :
m1 = []
for m in self.wizard:
# print "r::::", m , m.services.gold_service
if m.services:
aa =(m.check_box,m.services.id)
m1.append(aa)
#print "aaa", m1
if m.check_box not in m1:
print "hello", m1
raise ValidationError("a")
and my terminal show
hello [(False, 3), (True, 3), (True, 4)]
hello [(False, 3), (True, 3), (True, 4), (False, 4)]
Thanks in advanced.