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
0
1
4,337

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
Rima
Avatar
Discard
1 Answer
0
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
Leo Tran
Comment Share
Avatar
Leo Tran
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!

Q&A Forum Regulations

Forum Regulations

By using the FAQ Forum on ERPOnline.vn website, you unconditionally agree to the following terms:

    1. Q&A Forum is a discussion environment to support each other in Odoo/ERPOnline implementation, in the spirit of "community support community", with internet address at: https://www.erponline.vn/forum/hoi-dap-7

    2. You are thoroughly responsible for the content submitted by you.

    3. DO NOT use the Q&A Forum for any activities that violate Vietnamese law and International Conventions to which Vietnam is a participant.

    4. DO NOT post content that is offensive, defamatory, or discredits other individuals or legal entities.

    5. DO NOT post advertisements or advertising content.

    6. DO NOT post content that is not related to management software and ERP in general as well as OpenERP and ERPOnline.vn in particular.

    7. DO NOT post copyrighted content or content, materials, products protected by Intellectual Property law without the written consent of the author.

    8. DO NOT embed images from other websites.

    9. You agree that all options, solutions, answers in the Q&A section on ERPOnline.vn website are for reference only. ERPOnline.vn website will not be liable if you have any damage when applying the plans given in the Q&A section on ERPOnline.vn website.

These terms and conditions may be amended to suit reality at any time without prior notice.