Fix location domain for internal packing

This commit is contained in:
Cédric Krier committed 2008-12-10 16:55:51 +01:00
1 parent 38fb52a964
commit 6134291976
1 file changed
+4 -2
+4 -2
View File
@@ -701,11 +701,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 "\