openerp - How to use Chatter in Odoo? -
i want use chatter
students model, that, when value of field changed logged under student form
to achieve this, did following things: 1. added div
<div class="oe_chatter"> <field name="message_follower_ids" widget="mail_followers"/> <field name="message_ids" widget="mail_thread"/> </div>
in student form.
it added chatter, when clicked on new message
button, gave following error.
this because haven't inherited mail.thread
in student model.
- then inherited class in student model.
then again gave error shown below
i search topic, couldn't found anything.
it appreciated if me out.
in order log changes of specific fields need set track_visibility
attribute on each field want track:
class opstudent(models.model): _name = 'op.student' _inherits = { 'res.partner': 'partner_id', } _inherit = [ 'mail.thread', 'ir.needaction_mixin', ] foo = fields.char(track_visibility='always')
you may read more in official documentation.
Comments
Post a Comment