Odoo Help

0

0
1 Answer
1
Jerome Guerriat
12/27/17, 8:21 AM

You can inherit the write() method :-)    


3 Comments
Minh Nguyen
12/27/17, 8:10 PM

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

Niboo SPRL, Jerome Guerriat
12/28/17, 4:04 AM

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)

Minh Nguyen
12/28/17, 4:27 AM

Thanks, it is really good answer. I did that

Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now