From 05cbdfaefdf49a337fcb6346f54d4fa5f8fe1147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 10 Dec 2008 16:55:51 +0100 Subject: [PATCH] Fix location domain for internal packing --- packing.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packing.py b/packing.py index 960e336ced..076f2ee033 100644 --- a/packing.py +++ b/packing.py @@ -703,11 +703,13 @@ class PackingInternal(OSV): from_location = fields.Many2One( 'stock.location', "From Location", required=True, states={ 'readonly': "state != 'draft' or bool(moves)", }, - domain="[('type', '=', 'storage')]", ) + domain="[('type', 'not in', " \ + "('supplier', 'customer', 'warehouse'))]") to_location = fields.Many2One('stock.location', "To Location", required=True, states={ 'readonly': "state != 'draft' or bool(moves)", - }, domain="[('type', '=', 'storage')]") + }, domain="[('type', 'not in', " \ + "('supplier', 'customer', 'warehouse'))]") moves = fields.One2Many( 'stock.move', 'packing_internal', 'Moves', states={'readonly': "state != 'draft' or "\