[IMP]sale_stock: Transfer stat button will display all pickings
This commit is contained in:
@@ -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(order.picking_ids)
|
||||
return res
|
||||
|
||||
_columns = {
|
||||
@@ -143,7 +143,7 @@ class sale_order(osv.osv):
|
||||
#compute the number of delivery orders to display
|
||||
pick_ids = []
|
||||
for so in self.browse(cr, uid, ids, context=context):
|
||||
pick_ids += [picking.id for picking in so.picking_ids if picking.picking_type_id.code == 'outgoing']
|
||||
pick_ids += [picking.id for picking in so.picking_ids]
|
||||
|
||||
#choose the view_mode accordingly
|
||||
if len(pick_ids) > 1:
|
||||
|
||||
Reference in New Issue
Block a user