Document: ir.attachment.res_model and res_id should be readonly for UI

Changing them would require a wizard or something.

bzr revid: p_christ@hol.gr-20100629140040-am61qng5pxfz2dxs
This commit is contained in:
P. Christeas 2010-06-29 17:00:40 +03:00
parent cf0e7cbfc6
commit 514f433c59
1 changed files with 2 additions and 2 deletions

View File

@ -77,8 +77,8 @@ class document_file(osv.osv):
'create_uid': fields.many2one('res.users', 'Creator', readonly=True),
'write_date': fields.datetime('Date Modified', readonly=True),
'write_uid': fields.many2one('res.users', 'Last Modification User', readonly=True),
'res_model': fields.char('Attached Model', size=64), # readonly?
'res_id': fields.integer('Attached ID'),
'res_model': fields.char('Attached Model', size=64, readonly=True),
'res_id': fields.integer('Attached ID', readonly=True),
# If ir.attachment contained any data before document is installed, preserve
# the data, don't drop the column!