[FIX] mail: priority -10 on message_follower_ids to make sure executed before other function field that may use the followers (eg: note.note for access rights)

bzr revid: mat@openerp.com-20140210083130-ag95lqwlpkv7ceqc
This commit is contained in:
Martin Trigaux 2014-02-10 09:31:30 +01:00
parent 8d85c23e4a
commit 54a1ffc480
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ class mail_thread(osv.AbstractModel):
'message_is_follower': fields.function(_get_followers,
type='boolean', string='Is a Follower', multi='_get_followers,'),
'message_follower_ids': fields.function(_get_followers, fnct_inv=_set_followers,
fnct_search=_search_followers, type='many2many',
fnct_search=_search_followers, type='many2many', priority=-10,
obj='res.partner', string='Followers', multi='_get_followers'),
'message_ids': fields.one2many('mail.message', 'res_id',
domain=lambda self: [('model', '=', self._name)],