old_contents: # -*- coding: utf-8 -*-
  
  from openerp import http
  from openerp.http import request
  
  class website_hr(http.Controller):
  
      @http.route(['/page/website.aboutus', '/page/aboutus'], type='http', auth="public", website=True)
      def blog(self, **post):
          hr_obj = request.registry['hr.employee']
          employee_ids = hr_obj.search(request.cr, request.uid, [('website_published', '=', True)],
                                       context=request.context)
          values = {
              'employee_ids': hr_obj.browse(request.cr, request.uid, employee_ids,
                                            request.context)
          }
          return request.website.render("website.aboutus", values)
  
new_contents: # -*- coding: utf-8 -*-
  
  from openerp import http
  from openerp.http import request
  
  class website_hr(http.Controller):
  
      @http.route(['/page/website.aboutus', '/page/aboutus'], type='http', auth="public", website=True)
      def blog(self, **post):
          hr_obj = request.registry['hr.employee']
          domain = []
          if not hr_obj.check_access_rights(request.cr, request.uid, 'write', raise_exception=False):
              domain.append(('website_published', '=', True))
          employee_ids = hr_obj.search(request.cr, request.uid, domain, context=request.context)
          values = {
              'employee_ids': hr_obj.browse(request.cr, request.uid, employee_ids,
                                            request.context)
          }
          return request.website.render("website.aboutus", values)
  
subject: add published for hr.employee