I have written a onchange method on the many2one field using new api for v9. my code is
branch_id = fields.Many2one('branch.branch', 'Branch')
@api.onchange('branch_id')
def onchange_branch(self):
if self.branch_id:
self.shop_ids = self.branch_id.shop_ids
I have not added the on change on the xml also. when i do the change the many2one field the on change method is not getting called.
Also On developer mode tooltip i can not see the onchange while on other filed i can see.
Does anyone have idea what I am missing?