# -*- coding: utf-8 -*- import logging import os import time from os import listdir import openerp from openerp import http from openerp.http import request from openerp.tools.translate import _ _logger = logging.getLogger(__name__) index_template = """ Odoo's PosBox

Your PosBox is up and running

The PosBox is an hardware adapter that allows you to use receipt printers and barcode scanners with Odoo's Point of Sale, version 8.0 or later. You can start an online free trial, or download and install it yourself.

For more information on how to setup the Point of Sale with the PosBox, please refer to the manual

To see the status of the connected hardware, please refer to the hardware status page

The PosBox software installed on this posbox is version 6, the posbox version number is independent from Odoo. You can upgrade the software on the upgrade page

For any other question, please contact the Odoo support at support@odoo.com

""" class PosboxHomepage(openerp.addons.web.controllers.main.Home): @http.route('/', type='http', auth='none', website=True) def index(self): #return request.render('hw_posbox_homepage.index',mimetype='text/html') return index_template