crm.lead.lead.geo_assign.tree.inheritcrm.leadcrm.lead.partner.filter.assignedcrm.leadAssign salesman of assigned partnercode
if env.context.get('active_domain'):
records = model.search(env.context['active_domain'])
records.assign_salesman_of_assigned_partner()