Skip to content

Commit

Permalink
[MOD] add select=True in field URL in ir_attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
lfreeke committed Feb 10, 2017
1 parent 7b7be28 commit dff89f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openerp/addons/base/ir/ir_attachment.py
Expand Up @@ -250,7 +250,7 @@ def _index(self, cr, uid, bin_data, datas_fname, file_type):
'company_id': fields.many2one('res.company', 'Company', change_default=True),
'type': fields.selection( [ ('url','URL'), ('binary','File'), ],
'Type', help="You can either upload a file from your computer or copy/paste an internet link to your file", required=True, change_default=True),
'url': fields.char('Url', size=1024),
'url': fields.char('Url', size=1024, select=True),
# al: We keep shitty field names for backward compatibility with document
'datas': fields.function(_data_get, fnct_inv=_data_set, string='File Content', type="binary", nodrop=True),
'store_fname': fields.char('Stored Filename'),
Expand Down

0 comments on commit dff89f1

Please sign in to comment.