diff --git a/inventory.xml b/inventory.xml
index 39818cbefd..4102c9e773 100644
--- a/inventory.xml
+++ b/inventory.xml
@@ -20,7 +20,7 @@ this repository contains the full copyright notices and license terms. -->
@@ -28,9 +28,9 @@ this repository contains the full copyright notices and license terms. -->
+ icon="tryton-cancel" />
+ icon="tryton-ok"/>
diff --git a/period.xml b/period.xml
index 40e270687d..7c107cda88 100644
--- a/period.xml
+++ b/period.xml
@@ -16,9 +16,9 @@ this repository contains the full copyright notices and license terms. -->
-
-
diff --git a/shipment.py b/shipment.py
index 3faae092bc..493b3051dd 100644
--- a/shipment.py
+++ b/shipment.py
@@ -540,6 +540,11 @@ class ShipmentInReturn(Workflow, ModelSQL, ModelView):
'done': {
'invisible': Eval('state') != 'assigned',
},
+ 'assign_wizard': {
+ 'invisible': Eval('state') != 'waiting',
+ 'readonly': ~Eval('groups', []).contains(
+ Id('stock', 'group_stock')),
+ },
'assign_try': {},
'assign_force': {},
})
@@ -697,6 +702,10 @@ class ShipmentInReturn(Workflow, ModelSQL, ModelView):
'state': 'cancel',
})
+ @ModelView.button_action('stock.wizard_shipment_in_return_assign')
+ def assign_wizard(self, ids):
+ pass
+
@ModelView.button
def assign_try(self, ids):
pool = Pool()
@@ -878,6 +887,11 @@ class ShipmentOut(Workflow, ModelSQL, ModelView):
'done': {
'invisible': Eval('state') != 'packed',
},
+ 'assign_wizard': {
+ 'invisible': Eval('state') != 'waiting',
+ 'readonly': ~Eval('groups', []).contains(
+ Id('stock', 'group_stock')),
+ },
'assign_try': {},
'assign_force': {},
})
@@ -1268,6 +1282,10 @@ class ShipmentOut(Workflow, ModelSQL, ModelView):
uom_index[target_uom])
return res
+ @ModelView.button_action('stock.wizard_shipment_out_assign')
+ def assign_wizard(self, ids):
+ pass
+
@ModelView.button
def assign_try(self, ids):
move_obj = Pool().get('stock.move')
@@ -1861,6 +1879,11 @@ class ShipmentInternal(Workflow, ModelSQL, ModelView):
'done': {
'invisible': Eval('state') != 'assigned',
},
+ 'assign_wizard': {
+ 'invisible': Eval('state') != 'waiting',
+ 'readonly': ~Eval('groups', []).contains(
+ Id('stock', 'group_stock')),
+ },
'assign_try': {},
'assign_force': {},
})
@@ -1991,6 +2014,10 @@ class ShipmentInternal(Workflow, ModelSQL, ModelView):
'state': 'cancel',
})
+ @ModelView.button_action('stock.wizard_shipment_internal_assign')
+ def assign_wizard(self, ids):
+ pass
+
@ModelView.button
def assign_try(self, ids):
move_obj = Pool().get('stock.move')
diff --git a/shipment.xml b/shipment.xml
index 6f6c110196..5c09f53055 100644
--- a/shipment.xml
+++ b/shipment.xml
@@ -40,13 +40,13 @@ this repository contains the full copyright notices and license terms. -->
+ icon="tryton-cancel"/>
-
+
+ icon="tryton-clear"/>
@@ -162,16 +162,13 @@ this repository contains the full copyright notices and license terms. -->
-
+
-
-
+
-
@@ -275,18 +272,14 @@ this repository contains the full copyright notices and license terms. -->
-
-
-
+ icon="tryton-cancel"/>
+
+
+
-
+
@@ -454,16 +447,13 @@ this repository contains the full copyright notices and license terms. -->
-
-
-
-
+
+
-
@@ -624,13 +614,12 @@ this repository contains the full copyright notices and license terms. -->
+ icon="tryton-cancel"/>
+ icon="tryton-clear"/>
+ icon="tryton-go-next"/>