[FIX] mail.thread: added _fields_id='res_id' in args: allow to manually defined the _fields_id relationship of a one2many column; for this function field this is not a standard arg, but additional arg
bzr revid: tde@openerp.com-20120319170332-xkadjpddlocnh37m
This commit is contained in:
@@ -73,7 +73,7 @@ class mail_thread(osv.osv):
|
||||
# OpenSocial: message_ids_social is a dummy field that should not be used
|
||||
_columns = {
|
||||
'message_ids_social': fields.function(_get_message_ids, method=True,
|
||||
type='one2many', obj='mail.message', string='Temp messages'),
|
||||
type='one2many', obj='mail.message', string='Temp messages', _fields_id = 'res_id'),
|
||||
}
|
||||
|
||||
#------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user