@api.multi
@api.onchange('partner_id')
def onchange_partner_id(self):
return {
'domain': {'user_id': [('id', 'in', self.team_id.member_ids.ids)]},
}
设置user_id的域为:销售团队的员工们
@api.multi
@api.onchange('partner_id')
def onchange_partner_id(self):
return {
'domain': {'user_id': [('id', 'in', self.team_id.member_ids.ids)]},
}
设置user_id的域为:销售团队的员工们