Something like:
@classmethod
def view_attributes(cls):
# Hide the group when is_insured is not
# true
return [('//group[@id="statement_insurance_info"]', 'states', {
'invisible': Not(Bool(Eval('is_insured'))),
})]-- 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/b05d9c27-6892-4a6f-ae3b-7f2a670a84ef%40googlegroups.com.
