I added two field in the wizard column, like this :
in .py
division = fields.Selection([('Unit','Unit'),('Sparepart','Sparepart'),('Umum','Umum')], 'Division')
chassis_number = fields.Char('Chassis Number')
in .xml
<field name="division"/>
<field name="chassis_number" attrs="{'invisible': [('division','!=','Unit')]}"/>
I need to hide chassis_number field when division is not Unit. And I tried the code like above, but it doesn't work. The effect so as read only. Is there anyone have solution?