[FIX] mail: priority -10 on message_follower_ids to make sure executed before other...
authorMartin Trigaux <mat@openerp.com>
Mon, 10 Feb 2014 08:31:30 +0000 (09:31 +0100)
committerMartin Trigaux <mat@openerp.com>
Mon, 10 Feb 2014 08:31:30 +0000 (09:31 +0100)
bzr revid: mat@openerp.com-20140210083130-ag95lqwlpkv7ceqc

addons/mail/mail_thread.py

index f320a93..0753748 100644 (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)],