Added icons on buttons and re-order them

This commit is contained in:
Bertrand Chenal committed 2008-11-04 09:13:52 +01:00
1 parent 74df14e3b3
commit 32fc67ca02
1 file changed
+15 -9
+15 -9
View File
@@ -68,18 +68,24 @@
<label name="state"/>
<field name="state"/>
<group col="6" colspan="2">
<button name="quotation" string="Quotation"
states="{'invisible': '''state != 'draft' '''}"/>
<button name="draft" string="Draft"
states="{'invisible': '''state != 'quotation' '''}"/>
<button name="confirm" string="Confirm"
states="{'invisible': '''state != 'quotation' '''}"/>
<button name="cancel" string="Cancel"
states="{'invisible': '''not ((state in ('draft', 'quotation')) or (invoice_state == 'exception') or (packing_state == 'exception')) '''}"/>
states="{'invisible': '''not ((state in ('draft', 'quotation')) or (invoice_state == 'exception') or (packing_state == 'exception')) '''}"
icon="tryton-cancel"/>
<button name="draft" string="Draft"
states="{'invisible': '''state != 'quotation' '''}"
icon="tryton-clear"/>
<button name="quotation" string="Quotation"
states="{'invisible': '''state != 'draft' '''}"
icon="tryton-go-next"/>
<button name="invoice_ok" string="Ignore Invoice Exception"
states="{'invisible': '''invoice_state != 'exception' or state == 'cancel' '''}"/>
states="{'invisible': '''invoice_state != 'exception' or state == 'cancel' '''}"
icon="tryton-go-next"/>
<button name="packing_ok" string="Ignore Packing Exception"
states="{'invisible': '''packing_state != 'exception' or state == 'cancel' '''}"/>
states="{'invisible': '''packing_state != 'exception' or state == 'cancel' '''}"
icon="tryton-go-next"/>
<button name="confirm" string="Confirm"
states="{'invisible': '''state != 'quotation' '''}"
icon="tryton-go-next"/>
</group>
</group>
</page>