From 4c5c56e618fbb2d64db736db251fd57bfa1fa6dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 18 Apr 2013 23:31:18 +0200 Subject: [PATCH] Internal Shipment should be only between storage locations review790003 --- shipment.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/shipment.py b/shipment.py index 70ea6c2291..aeb17d9e5f 100644 --- a/shipment.py +++ b/shipment.py @@ -1703,16 +1703,14 @@ class ShipmentInternal(Workflow, ModelSQL, ModelView): Bool(Eval('moves'))), }, domain=[ - ('type', 'not in', - ['supplier', 'customer', 'warehouse', 'view']), + ('type', 'in', ['storage']), ], depends=['state', 'moves']) to_location = fields.Many2One('stock.location', "To Location", required=True, states={ 'readonly': Or(Not(Equal(Eval('state'), 'draft')), Bool(Eval('moves'))), }, domain=[ - ('type', 'not in', - ['supplier', 'customer', 'warehouse', 'view']), + ('type', 'in', ['storage']), ], depends=['state', 'moves']) moves = fields.One2Many('stock.move', 'shipment', 'Moves', states={