Fix domain must be a list

This commit is contained in:
Cédric Krier
2009-07-31 17:33:16 +02:00
parent fcd9873352
commit b2adc87fba
+2 -2
View File
@@ -16,8 +16,8 @@ class ProductLocation(ModelSQL, ModelView):
warehouse = fields.Many2One('stock.location', 'Warehouse', required=True,
domain=[('type', '=', 'warehouse')])
location = fields.Many2One('stock.location', 'Storage Location',
required=True, domain="[('type', '=', 'storage'), " \
"('parent', 'child_of', warehouse and [warehouse] or [])]")
required=True, domain=[('type', '=', 'storage'),
"('parent', 'child_of', warehouse and [warehouse] or [])"])
sequence = fields.Integer('Sequence')
def __init__(self):