From 9804ee91c5fa503b7a3397337777c2ecb5689a6e Mon Sep 17 00:00:00 2001 From: Ajay javiya Date: Thu, 12 Mar 2015 15:02:51 +0530 Subject: [PATCH] [FIX] sale_stock: traceback when create a sale order --- addons/sale_stock/sale_stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale_stock/sale_stock.py b/addons/sale_stock/sale_stock.py index 0b417938baf..6af7bbd2bce 100644 --- a/addons/sale_stock/sale_stock.py +++ b/addons/sale_stock/sale_stock.py @@ -92,7 +92,7 @@ class sale_order(osv.osv): def _get_delivery_count(self, cr, uid, ids, field_name, arg, context=None): res = {} for order in self.browse(cr, uid, ids, context=context): - res[order.id] = len(picking for picking in order.picking_ids if picking.picking_type_id.code == 'outgoing') + res[order.id] = len([picking for picking in order.picking_ids if picking.picking_type_id.code == 'outgoing']) return res _columns = {