[IMP] im: tell orm to rename field user => user_id

bzr revid: chs@openerp.com-20130919144658-tf53x1zimnvbsk0u
This commit is contained in:
Christophe Simonis 2013-09-19 16:46:58 +02:00
parent d38a69be01
commit fcd47fbd9f
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ class im_user(osv.osv):
'name': fields.function(_get_name, type='char', size=200, string="Name", store=True, readonly=True),
'assigned_name': fields.char(string="Assigned Name", size=200, required=False),
'image': fields.related('user_id', 'image_small', type='binary', string="Image", readonly=True),
'user_id': fields.many2one("res.users", string="User", select=True, ondelete='cascade'),
'user_id': fields.many2one("res.users", string="User", select=True, ondelete='cascade', oldname='user'),
'uuid': fields.char(string="UUID", size=50, select=True),
'im_last_received': fields.integer(string="Instant Messaging Last Received Message"),
'im_last_status': fields.boolean(strint="Instant Messaging Last Status"),