From db781b520c27d9f3c7e2e3cc965087e544815baa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 13 Jan 2009 23:03:40 +0100 Subject: [PATCH] Use more standard way for string domain --- order_point.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/order_point.py b/order_point.py index ff3c3ad7ca..c3ad04ec03 100644 --- a/order_point.py +++ b/order_point.py @@ -15,9 +15,8 @@ class OrderPoint(OSV): product = fields.Many2One( 'product.product', 'Product', required=True, select=1, - domain="type == 'purchase' "\ - "and [('type', '=', 'stockable'), ('purchasable', '=', True)] "\ - "or [('type', '=', 'stockable')]") + domain="[('type', '=', 'stockable'), ('purchasable', 'in', " \ + "type == 'purchase' and [True] or [True, False])]") warehouse_location = fields.Many2One( 'stock.location', 'Warehouse Location', select=1, domain="[('type', '=', 'warehouse')]",