Hi! I need to make a selection field that must to change the options basead in an other selection field. I tried to do with domain and If, but the selection doesn't load the options.
doador = fields.Selection([(None, ''), ('dv', 'Vivo'), ('df', 'Falecido')], 'Doador') tipagem_hla = fields.Selection([(None, ''), ('idem', u'IdĂȘntico'), ('haplo', u'Haploidentico'), ('dist', u'Distinto'), ('miss', u'Missmatches')], u'Tipagem HLA', domain=[( If((Bool(Eval('doador') == 'dv')), ([('tipagem_hla', '=', None), ('tipagem_hla', '=', 'idem'), ('tipagem_hla', '=', 'haplo'), ('tipagem_hla', '=', 'dist')]), ([('tipagem_hla', '=', None), ('tipagem_hla', '=', 'idem'), ('tipagem_hla', '=', 'haplo'), ('tipagem_hla', '=', 'dist'), ('tipagem_hla', '=', 'miss')])))] ) Can anyone help me? -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/21c0ed92-076e-4742-ba25-23cd5a6a7d8b%40googlegroups.com.