[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 is passed as optional args. This allows to fix an issue with share module, trying to go through one2many relationships when trying to establish shared user rights.
bzr revid: tde@openerp.com-20120316163825-acbbv1ztnk0zmy3w
This commit is contained in:
@@ -73,7 +73,8 @@ 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