Fix warehouse default value: use list instead of string for domain.

This commit is contained in:
Bertrand Chenal committed 2009-01-26 22:29:00 +01:00
1 parent 086a9e7259
commit af6c5cbe3f
1 file changed
+1 -1
+1 -1
View File
@@ -316,7 +316,7 @@ class PackingOut(OSV):
warehouse = fields.Many2One('stock.location', "Warehouse", required=True,
states={
'readonly': "state != 'draft'",
}, domain="[('type', '=', 'warehouse')]")
}, domain=[('type', '=', 'warehouse')])
customer_location = fields.Many2One('stock.location', "Customer Location",
required=True, states={
'readonly': "state != 'draft'",