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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
You can inherit the write() method :-)
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)
Thanks, it is really good answer. I did that
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Oct 22
|
2319 | ||
|
3
Sep 22
|
5768 | ||
|
1
Aug 22
|
3491 | ||
|
4
Oct 21
|
5471 | ||
|
3
Mar 21
|
1165 |