Community mailing list archives

Problem while inherit Messages and communication history

Haojun Zou
- 03/12/2015 04:47:13
Hey everyone,

I want to inherit a history log in one of my form view under sheet.
It will show messages and followers. I inherited mail.thread to my module but when I install my module it came en error "Field `message_follower_ids` does not exist"

here's my code:

in py:
class hr_attendance(models.Model):
    _inherit = ['hr.attendance', 'mail.thread']

in xml:
<div class="oe_chatter">
       <field name="message_follower_ids" widget="mail_followers"/>
       <field name="message_ids" widget="mail_thread"/>

Did I miss something?