Allow administrator group to process order in processing state

issue8113
review46771002
This commit is contained in:
Cédric Krier committed 2019-03-04 18:43:41 +01:00
1 parent 59fc2da23f
commit fc8e9e0678
3 files changed
+7 -4

No files matched your search

+4 -1
View File
@@ -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': {
+2 -2
View File
@@ -316,9 +316,9 @@ this repository contains the full copyright notices and license terms. -->
<field name="string">Process</field>
<field name="model" search="[('model', '=', 'sale.sale')]"/>
</record>
<record model="ir.model.button-res.group" id="sale_process_button_group_sale">
<record model="ir.model.button-res.group" id="sale_process_button_group_sale_admin">
<field name="button" ref="sale_process_button"/>
<field name="group" ref="group_sale"/>
<field name="group" ref="group_sale_admin"/>
</record>
<record model="ir.model.button" id="sale_modify_header_button">
<field name="name">modify_header</field>
+1 -1
View File
@@ -52,7 +52,7 @@ this repository contains the full copyright notices and license terms. -->
<button name="handle_invoice_exception" icon="tryton-forward"/>
<button name="handle_shipment_exception" icon="tryton-forward"/>
<button name="confirm" icon="tryton-forward"/>
<button name="process" icon="tryton-forward"/>
<button name="process"/>
</group>
</group>
</page>