# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import logging import os import subprocess import werkzeug import odoo from odoo import http from odoo.tools import misc _logger = logging.getLogger(__name__) index_style = """ """ index_template = """
The PosBox is a 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.
Wi-Fi can be configured by visiting the Wi-Fi configuration page.
If you need to grant remote debugging access to a developer, you can do it here.
%sThe PosBox software installed on this posbox is version 16, 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 www.odoo.com/help
""" class PosboxHomepage(odoo.addons.web.controllers.main.Home): def get_hw_screen_message(self): return """
The activate the customer display feature, you will need to reinstall the PosBox software.
You can find the latest images on the Odoo Nightly builds website.
Make sure to download at least the version 16.
Odoo version 11, or above, is required to use the customer display feature.
Here you can configure how the posbox should connect to wireless networks. Currently only Open and WPA networks are supported. When enabling the persistent checkbox, the chosen network will be saved and the posbox will attempt to connect to it every time it boots.
You can clear the persistent configuration by clicking below: