From 591fbccd77e309c5254d425ced74363fcaf67d04 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Mon, 26 Jan 2009 22:29:00 +0100 Subject: [PATCH] Fix warehouse default value: use list instead of string for domain. --- packing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packing.py b/packing.py index 646117a1e4..8426799a99 100644 --- a/packing.py +++ b/packing.py @@ -318,7 +318,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'",