def unused_value2num(self, v):
        if v:
            return 1
        return 0
TODO: Should booelan fields sum like a numeric field with value 1
dataset/ETHPy150Open lsaffre/lino/lino/modlib/extjs/elems.py/BooleanMixin.unused_value2num