[FIX] stock: meke type field to selection from related field.

bzr revid: tpa@tinyerp.com-20121112061401-jcqef7rxk0rw54g0
This commit is contained in:
Turkesh Patel (Open ERP)
2012-11-12 11:44:01 +05:30
parent 93488d6cc8
commit 269117635f
+1 -1
View File
@@ -1725,7 +1725,7 @@ class stock_move(osv.osv):
# used for colors in tree views:
'scrapped': fields.related('location_dest_id','scrap_location',type='boolean',relation='stock.location',string='Scrapped', readonly=True),
'type': fields.related('picking_id', 'type', type='selection', selection=[('out', 'Sending Goods'), ('in', 'Getting Goods'), ('internal', 'Internal')], string='Shipping Type'),
'type': fields.selection( (('out', 'Sending Goods'), ('in', 'Getting Goods'), ('internal', 'Internal')), 'Shipping Type', select=True),
}
def _check_location(self, cr, uid, ids, context=None):