In a view_attributes() method, visible a tab in a form view.
@classmethod
def view_attributes(cls):
states = {'invisible': ~Bool(Eval('has_sales'))}
return super().view_attributes() + [
('/form//page[@id="other-sales"]', 'states', states),
]
return super().view_attributes()
How to active this tab (page) when is visible?