I have created custom selection filed in res.partner module name ven_cat which have differnat seletion like trade, non-trade, capex etc.
I want to use onchange function of the selection filed ven_cat so after selection of trade in ven_cat filed another selection field need to change automatically. the other filed need to change is also a selection field name account payable which have different ledgers available (I want to select one ledger out of it how we can achieve that ?)
@api.onchange("ven_cat")
def onchange_ven_cat(self):
if self.ven_cat == "trade":