Use material design icons.
This commit is contained in:
parent
ed056ff5aa
commit
43481f5493
|
@ -61,11 +61,11 @@ class Operation(sequence_ordered(), Workflow, ModelSQL, ModelView):
|
|||
'wait': {
|
||||
'invisible': ~Eval('state').in_(['planned', 'running']),
|
||||
'icon': If(Eval('state') == 'running',
|
||||
'tryton-go-previous', 'tryton-go-next')
|
||||
'tryton-back', 'tryton-forward')
|
||||
},
|
||||
'run': {
|
||||
'invisible': Eval('state') != 'waiting',
|
||||
'icon': 'tryton-go-next',
|
||||
'icon': 'tryton-forward',
|
||||
},
|
||||
'done': {
|
||||
'invisible': Eval('state') != 'running',
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
<field name="state"/>
|
||||
<group col="6" colspan="2" id="buttons">
|
||||
<button name="wait"/>
|
||||
<button name="run" icon="tryton-go-next"/>
|
||||
<button name="done" icon="tryton-go-next"/>
|
||||
<button name="run" icon="tryton-forward"/>
|
||||
<button name="done" icon="tryton-forward"/>
|
||||
</group>
|
||||
</group>
|
||||
</form>
|
||||
|
|
Loading…
Reference in New Issue