Help

Welcome!

This community is for professionals and enthusiasts of our products and services.
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

track_visibility='on_change' functionality is not working in module

Avatar
Rima

I have inherited hr.holidays module and create new module.Override write method of hr.holidays model and add some new functionality in this method. Remove call super method from new write method using

Existing
return super(hr_holidays,self).write(cr, uid, ids, vals, contex=None)
Repalce with
osv.osv.write(self,cr,uid,ids,vals,context=contex)

After this changes track_visibility log is not created in message_chatter box
Avatar
Discard
1 Answer
0
Avatar
Leo Tran
Best Answer

Hi Rima,

By default, 'track_visibility' is attribute of Status field, so it just logged when its value is changed. Please check your write method to make sure that change value of the field.

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!