fix visibility of cancel button for canceled sale order for issue 1232
This commit is contained in:
@@ -80,7 +80,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="state"/>
|
||||
<group col="6" colspan="2" id="buttons">
|
||||
<button name="cancel" string="Cancel"
|
||||
states="{'invisible': '''not ((state in ('draft', 'quotation')) or (invoice_state == 'exception') or (shipment_state == 'exception')) ''', 'readonly': '''%(group_sale)d not in groups'''}"
|
||||
states="{'invisible': '''state == 'cancel' or not ((state in ('draft', 'quotation')) or (invoice_state == 'exception') or (shipment_state == 'exception'))''', 'readonly': '''%(group_sale)d not in groups'''}"
|
||||
icon="tryton-cancel"/>
|
||||
<button name="draft" string="Draft"
|
||||
states="{'invisible': '''state != 'quotation' ''', 'readonly': '''%(group_sale)d not in groups'''}"
|
||||
|
||||
Reference in New Issue
Block a user