[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:
Thibault Delavallée
2012-03-19 18:03:32 +01:00
parent 904e18d1bf
commit 6ae73d5311
+1 -1
View File
@@ -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'),
}
#------------------------------------------------------