Hello everyone
i want custom form invoice customer in accounting odoo. I use domain in python. But it can't working.
@api.onchange('partner_id')
def _get_partner_info(self):
res = {}
if self.partner_id:
res['domain'] = {'partner_bank_id':[('partner_id','=',self.partner_id.id)]}
else:
pass
return res
Please help me. Thank all
Try this: https://goo.gl/CBP9og