diff --git a/packing.xml b/packing.xml
index 34e6f12581..953c1ea926 100644
--- a/packing.xml
+++ b/packing.xml
@@ -49,16 +49,21 @@ this repository contains the full copyright notices and license terms. -->
+ states="{'invisible': '''state in ('cancel', 'done') ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-cancel"/>
+ states="{'invisible': '''state != 'received' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-go-previous"/>
+ states="{'invisible': '''state != 'draft' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-go-next"/>
+ states="{'invisible': '''state != 'received' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-ok"/>
+ states="{'invisible': '''state != 'cancel' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-clear"/>
@@ -188,27 +193,38 @@ this repository contains the full copyright notices and license terms. -->
-
+
+ states="{'invisible': '''state in ('cancel','done') '''}"
+ icon="tryton-cancel"/>
+ states="{'invisible': '''state != 'waiting' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-clear"/>
+ states="{'invisible': '''state != 'assigned' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-go-previous"/>
+
+ states="{'invisible': '''state != 'waiting' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-go-next"/>
+ states="{'invisible': '''state != 'waiting' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-go-next"/>
+ states="{'invisible': '''state != 'packed' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-go-previous"/>
+ states="{'invisible': '''state != 'assigned' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-go-next"/>
+ states="{'invisible': '''state != 'packed' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-ok"/>
+ type="object"
+ states="{'invisible': '''state != 'cancel' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-clear"/>
@@ -342,21 +358,31 @@ this repository contains the full copyright notices and license terms. -->
-
+
+ states="{'invisible': '''state in ('cancel', 'done') ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-cancel"/>
+ states="{'invisible': '''state != 'waiting' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-clear"/>
+ states="{'invisible': '''state != 'assigned' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-go-previous"/>
+
+ states="{'invisible': '''state != 'waiting' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-go-next"/>
+ states="{'invisible': '''state != 'waiting' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-go-next"/>
+ type="object" states="{'invisible': '''state != 'cancel' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-clear"/>
+ states="{'invisible': '''state != 'assigned' ''', 'readonly': '''%(group_stock)d not in groups'''}"
+ icon="tryton-ok"/>
]]>