Odoo Help

0
1 Answer
0
Rakesh Vadeghar
4/15/19, 2:28 AM

Hope this helps

@api.onchange('your_fields')
def onchange_your_fields(self):
res = {}
if your_condition:
your code goes here
else:
#reset your fields
self.your_field1= False
res['warning'] = {'title': _('Warning'), 'message': _('Your Message Here.')}
return res
1 Comment
Ragul
4/15/19, 4:50 AM

Thanks, it worked for me

Ask a Question
Writer
Tag
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