diff --git a/sale.py b/sale.py index c9bb24de2f..a0a8b16733 100644 --- a/sale.py +++ b/sale.py @@ -265,7 +265,10 @@ class Sale(Workflow, ModelSQL, ModelView, TaxableMixin): 'depends': ['state'], }, 'process': { - 'invisible': Eval('state') != 'confirmed', + 'invisible': ~Eval('state').in_( + ['confirmed', 'processing']), + 'icon': If(Eval('state') == 'confirmed', + 'tryton-forward', 'tryton-refresh'), 'depends': ['state'], }, 'handle_invoice_exception': { diff --git a/sale.xml b/sale.xml index 79e690bea5..675a9281ef 100644 --- a/sale.xml +++ b/sale.xml @@ -316,9 +316,9 @@ this repository contains the full copyright notices and license terms. --> Process - + - + modify_header diff --git a/view/sale_form.xml b/view/sale_form.xml index ade09cb6c5..d4baff4691 100644 --- a/view/sale_form.xml +++ b/view/sale_form.xml @@ -52,7 +52,7 @@ this repository contains the full copyright notices and license terms. -->