From 4074617e52bedb11d412674492ffd30ddf8e6f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 16 Sep 2008 16:41:06 +0200 Subject: [PATCH] Use new product.default_uom.category keyword to search on uom --- sale.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sale.py b/sale.py index 1b9a19288c..640798e591 100644 --- a/sale.py +++ b/sale.py @@ -848,7 +848,8 @@ class SaleLine(OSV): states={ 'required': "product", 'invisible': "type != 'line'", - }, domain="[('category', '=', (product, 'product'))]", + }, domain="[('category', '=', " \ + "(product, 'product.default_uom.category'))]", on_change=['product', 'quantity', 'unit', '_parent_sale.currency', '_parent_sale.party']) unit_digits = fields.Function('get_unit_digits', type='integer',