[FIX] stock: set readonly=True on the scrapped field of stock.move

bzr revid: qdp-launchpad@tinyerp.com-20101217102447-lsazxdkehe05ly4q
This commit is contained in:
qdp-launchpad@tinyerp.com 2010-12-17 11:24:47 +01:00
parent 4028b53efe
commit f2aa6adb15
1 changed files with 1 additions and 1 deletions

View File

@ -1515,7 +1515,7 @@ class stock_move(osv.osv):
'origin': fields.related('picking_id','origin',type='char', size=64, relation="stock.picking", string="Origin", store=True),
# used for colors in tree views:
'scrapped': fields.related('location_dest_id','scrap_location',type='boolean',relation='stock.location',string='Scrapped'),
'scrapped': fields.related('location_dest_id','scrap_location',type='boolean',relation='stock.location',string='Scrapped', readonly=True),
}
_constraints = [
(_check_tracking,