- # Not required due to the document module !
- 'res_name': fields.function(_name_get_resname, type='char', string='Resource Name', method=True),
- 'res_model': fields.char('Resource Object',size=64, readonly=True),
- 'res_id': fields.integer('Resource ID', readonly=True),
- 'link': fields.char('Link', size=256),
+ 'res_name': fields.function(_name_get_resname, type='char', size=128,
+ string='Resource Name', method=True, store=True),
+ 'res_model': fields.char('Resource Object',size=64, readonly=True,
+ help="The database object this attachment will be attached to"),
+ 'res_id': fields.integer('Resource ID', readonly=True,
+ help="The record id this is attached to"),
+ 'url': fields.char('Url', size=512, oldname="link"),
+ 'type': fields.selection(
+ [ ('url','URL'), ('binary','Binary'), ],
+ 'Type', help="Binary File or external URL", required=True, change_default=True),
+