'This function updates the "assignation date" automatically, when manually assign a partner in the geo assign tab'

@api.onchange('partner_assigned_id')
def onchange_assign_id(self):

    partner_assigned = self.partner_assigned_id
    if (not partner_assigned):
        self.date_assign = False
    else:
        self.date_assign = fields.Date.context_today(self)
        self.user_id = partner_assigned.user_id
