'prepare the values to render portal layout'

def _prepare_portal_layout_values(self):

    partner = request.env.user.partner_id
    if partner.user_id:
        sales_rep = partner.user_id
    else:
        sales_rep = False
    values = {'sales_rep': sales_rep, 'company': request.website.company_id, 'user': request.env.user}
    return values
