[FIX] sale_report : Sale Manager Analysis Report Fixed (Maintenance Case : 5689)
authorRavi Gohil (Open ERP) <rgo@tinyerp.com>
Fri, 20 May 2011 11:48:37 +0000 (17:18 +0530)
committerRavi Gohil (Open ERP) <rgo@tinyerp.com>
Fri, 20 May 2011 11:48:37 +0000 (17:18 +0530)
bzr revid: rgo@tinyerp.com-20110520114837-e076ezuzheo4wrs4

addons/sale/report/sale_report.py

index aaaec22..3e2401b 100644 (file)
@@ -91,7 +91,7 @@ class sale_report(osv.osv):
                     select l.id as id,
                         l.product_id as product_id,
                         (case when u.uom_type not in ('reference') then
-                            (select name from product_uom where uom_type='reference' and category_id=u.category_id)
+                            (select name from product_uom where uom_type='reference' and category_id=u.category_id and active LIMIT 1)
                         else
                             u.name
                         end) as uom_name,