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.

enter image description here

this because haven't inherited mail.thread in student model.

  1. then inherited class in student model.

enter image description here

then again gave error shown below

enter image description here

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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -