Reviewers: ,
Please review this at http://codereview.tryton.org/316003/
Affected files:
M shipment.py
Index: shipment.py
===================================================================
--- a/shipment.py
+++ b/shipment.py
@@ -129,7 +129,7 @@
))
self._buttons.update({
'cancel': {
- 'invisible': Eval('state') != 'draft',
+ 'invisible': Eval('state').in_(['cancel', 'done']),
},
'draft': {
'invisible': Eval('state') != 'cancel',
@@ -813,7 +813,7 @@
))
self._buttons.update({
'cancel': {
- 'invisible':
Eval('state').in_(['cancel', 'packed', 'done']),
+ 'invisible': Eval('state').in_(['cancel', 'done']),
},
'draft': {
'invisible': ~Eval('state').in_(['waiting', 'cancel']),
@@ -1334,7 +1334,7 @@
))
self._buttons.update({
'cancel': {
- 'invisible': Eval('state') != 'draft',
+ 'invisible': Eval('state').in_(['cancel', 'done']),
},
'draft': {
'invisible': Eval('state') != 'cancel',
--
[email protected] mailing list