[FIX] mail_message: added a rec_name, because otherwise many2one widget crashes, because the name field does not exist.

bzr revid: tde@openerp.com-20121102104604-gyug2jgdm35xhh67
This commit is contained in:
Thibault Delavallée 2012-11-02 11:46:04 +01:00
parent 455a076050
commit db19771e06
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ class mail_message(osv.Model):
_description = 'Message'
_inherit = ['ir.needaction_mixin']
_order = 'id desc'
_rec_name = 'record_name'
_message_read_limit = 100
_message_read_fields = ['id', 'parent_id', 'model', 'res_id', 'body', 'subject', 'date', 'to_read', 'email_from',