Hi !
Is this possible to show/hide a certain state (with the statusbar widget) depending on a certain field.
For example:
class Test(models.Model):
_name = 'test.test'
foo = fields.Selection([('a', 'B'), ('b', 'B')])
state = fields.Selection([('open', 'Open'), ('a', 'A'), ('b', 'B'), ('closed', 'Closed')])
<field name="state" widget="statusbar" statusbar_visible="open,closed"/>
so:
- if field foo is set to a, visible sates would be: open, a, closed
- if field foo is set to b, visible sates would be: open, b, closed
Is something like that possible ?
So far, I can only hide both a and b states, and show them when the record state is in either of them.