From b2adc87fba2a4866a9f4e1584eba64d764b3501e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 31 Jul 2009 17:33:16 +0200 Subject: [PATCH] Fix domain must be a list --- location.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/location.py b/location.py index 58a68e290d..29e098c8d5 100644 --- a/location.py +++ b/location.py @@ -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):