Hello all,
'mediaid' is a fields.Char in my customize model.
mediaid = fields.Char(string='Media Id')
I add a button in the form view of this mode.
<button name="My Button" type="object" string="do_something" attrs="{'invisible': [('mediaid', '=', None)]}"/>
But the button is still visible when the data in 'mediaid' is 'None'.
So, How to fix the view code to make it invisible?
Please help!