diff options
| author | P. Christeas <p_christ@hol.gr> | 2010-06-29 17:00:40 +0300 |
|---|---|---|
| committer | P. Christeas <p_christ@hol.gr> | 2010-06-29 17:00:40 +0300 |
| commit | 514f433c59e6778afad469a55d032e1e3da435a0 (patch) | |
| tree | 825842023397be5d3c2af247e353f2816320695d /addons/document/document.py | |
| parent | cf0e7cbfc6259e2ea23610d5a4e7911d28f6a6cb (diff) | |
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
Diffstat (limited to 'addons/document/document.py')
| -rw-r--r-- | addons/document/document.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/document/document.py b/addons/document/document.py index ec6c159f2b7..fb69b84e6a5 100644 --- a/addons/document/document.py +++ b/addons/document/document.py @@ -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! |
