diff --git a/move.py b/move.py index 3739911e00..8673eec60c 100644 --- a/move.py +++ b/move.py @@ -216,6 +216,9 @@ class Move(Workflow, ModelSQL, ModelView): help="Where the stock is moved to.") shipment = fields.Reference('Shipment', selection='get_shipment', readonly=True, select=True, + states={ + 'invisible': ~Eval('shipment'), + }, help="Used to group several stock moves together.") origin = fields.Reference('Origin', selection='get_origin', select=True, states={