Odoo Help

0

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

You can inherit the write() method :-)    


3 Comments
Minh Nguyen
27/12/17, 20:10

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

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

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
28/12/17, 04:27

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