Community mailing list archives

community@mail.odoo.com

Problem while inherit Messages and communication history

by
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"/>
</div>

Did I miss something?