'Set \'date_assign\' if user_id is set.'

@api.model
def default_get(self, field_list):

    result = super(Task, self).default_get(field_list)
    if ('user_id' in result):
        result['date_assign'] = fields.Datetime.now()
    return result
