This question has been flagged
1 Reply
4571 Views

I am using parameter track_visibility = 'onchange' to get log note. but it doesn't work with field Binary. Like when i change a image on this field in view , it doesn't give me anything in log note.

Thanks for helping me !

Regards,

Minh

Avatar
Discard
Best Answer

You can inherit the write() method :-)    


Avatar
Discard
Author

can you explain more or give me a example. I dont get it for now. Thanks

If tack_visibility does not work, you can check in the parameters sent to the write() method. For example, if you cant to track changes on the field 'image':

@api.multi

def write(self, vals):

if 'image' in vals:

self.message_post(....)

return super(MyModel, self).write(vals)

Author

Thanks, it is really good answer. I did that