From a6bfefbf820d647a65703069709aaee3aa090cfb Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Fri, 24 Sep 2010 16:06:23 +0200 Subject: [PATCH] [IMP] stock: add shipping type "Others" for moves with no picking in Stock Analysis bzr revid: odo@openerp.com-20100924140623-3ylclf95psz0lpga --- addons/stock/report/report_stock_move.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock/report/report_stock_move.py b/addons/stock/report/report_stock_move.py index 5d16136bfe8..a137b8a380e 100644 --- a/addons/stock/report/report_stock_move.py +++ b/addons/stock/report/report_stock_move.py @@ -39,7 +39,7 @@ class report_stock_move(osv.osv): 'product_id':fields.many2one('product.product', 'Product', readonly=True), 'company_id':fields.many2one('res.company', 'Company', readonly=True), 'picking_id':fields.many2one('stock.picking', 'Packing', readonly=True), - 'type': fields.selection([('out', 'Sending Goods'), ('in', 'Getting Goods'), ('internal', 'Internal'), ('delivery', 'Delivery')], 'Shipping Type', required=True, select=True, help="Shipping type specify, goods coming in or going out."), + 'type': fields.selection([('out', 'Sending Goods'), ('in', 'Getting Goods'), ('internal', 'Internal'), ('delivery', 'Delivery'), ('other', 'Others')], 'Shipping Type', required=True, select=True, help="Shipping type specify, goods coming in or going out."), 'location_id': fields.many2one('stock.location', 'Source Location', readonly=True, select=True, help="Sets a location if you produce at a fixed location. This can be a partner location if you subcontract the manufacturing operations."), 'location_dest_id': fields.many2one('stock.location', 'Dest. Location', readonly=True, select=True, help="Location where the system will stock the finished products."), 'state': fields.selection([('draft', 'Draft'), ('waiting', 'Waiting'), ('confirmed', 'Confirmed'), ('assigned', 'Available'), ('done', 'Done'), ('cancel', 'Cancelled')], 'State', readonly=True, select=True), @@ -80,7 +80,7 @@ class report_stock_move(osv.osv): al.state as state , al.product_uom as product_uom, al.categ_id as categ_id, - al.type as type, + coalesce(al.type, 'other') as type, al.stock_journal as stock_journal FROM (SELECT