what i'm doing
@api.multi
@api.onchange('term_of_employment_id')
def _term_of_employment_onchange(self):
for rec in self:
if rec.term_of_employment_id.type:
if rec.term_of_employment_id.type == 'fixed':
print("===========> I Run")
return {'attrs': {'tag': [('invisible', '=', False)]}}
its print I Run statement but can not invisible tag field
pls point out where im wrong or any solution please