I have 2 modules in tryton the first is employee
and the second is pointage
.
I am trying t add a Selection field that allow me to select the pointage
.
To do that we have to create a list of tuple pointagedef = [('', '')]
now we have fill it but the problem that i can't find any documentation to understand how to do it
pointage= fields.Selection(pointagedef, 'grh.pointage')
i am trying to do something like:
for pointage in pointages:
pointagedef.append((pointage, pointage))