[CLEAN] _auto_join -> auto_join.

bzr revid: tde@openerp.com-20121205153609-tncmotw8jnoa53e7
This commit is contained in:
Thibault Delavallée 2012-12-05 16:36:09 +01:00
parent a7650e0e45
commit d8235eec3c
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ class mail_message(osv.Model):
store=True, string='Message Record Name',
help="Name get of the related document."),
'notification_ids': fields.one2many('mail.notification', 'message_id',
string='Notifications', _auto_join=True,
string='Notifications', auto_join=True,
help='Technical field holding the message notifications. Use notified_partner_ids to access notified partners.'),
'subject': fields.char('Subject'),
'date': fields.datetime('Date'),

View File

@ -193,7 +193,7 @@ class mail_thread(osv.AbstractModel):
obj='res.partner', string='Followers', multi='_get_followers'),
'message_ids': fields.one2many('mail.message', 'res_id',
domain=lambda self: [('model', '=', self._name)],
_auto_join=True,
auto_join=True,
string='Messages',
help="Messages and communication history"),
'message_unread': fields.function(_get_message_data,