@api.onchange('r_sale')
def get_onchange(self):
if self.r_sale:
obj=self.env['sale.order'].browse(self.r_sale)
print obj.id
This function showing Error : " get_onchange() takes exactly 1 argument (5 given)".
This is how i defined on_change in view :<field name="r_sale" on_change="get_onchange(r_sale)"/>
What are the 5 arguments passed to the function get_onchange()? Why it shows error?