Skip to Content
Menu
This question has been flagged
1 Reply
4894 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

Related Posts Replies Views Activity
1
Oct 22
2319
3
Sep 22
5768
1
Aug 22
3491
4
Oct 21
5471
3
Mar 21
1165