Skip to content

Commit

Permalink
[IMP] hw_*: updated web interface for IoT Box
Browse files Browse the repository at this point in the history
We changed the naming of posbox to IoT Box everywhere
and renewed the web interface using jinja2 templates in
separate html files.

A separate configuration for the server and the IoT Box name
was added and it shows drivers for both  pos and iot.

The interface also needs a step to step wizard that is launched
when the access point is active for simplified configuration.

Thanks to qle and Deep Patel.
  • Loading branch information
jco-odoo committed Sep 25, 2018
1 parent 3d9ebb1 commit 8b957b7
Show file tree
Hide file tree
Showing 21 changed files with 1,346 additions and 395 deletions.
6 changes: 3 additions & 3 deletions addons/hw_escpos/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,17 +212,17 @@ def print_status(self,eprint):
ips.append(conf.get('addr'))
eprint.text('\n\n')
eprint.set(align='center',type='b',height=2,width=2)
eprint.text('PosBox Status\n')
eprint.text('IoTBox Status\n')
eprint.text('\n')
eprint.set(align='center')

if hosting_ap:
eprint.text('Wireless network:\nPosbox\n\n')
eprint.text('Wireless network:\nIoTBox\n\n')
elif ssid:
eprint.text('Wireless network:\n' + ssid + '\n\n')

if len(ips) == 0:
eprint.text('ERROR: Could not connect to LAN\n\nPlease check that the PosBox is correc-\ntly connected with a network cable,\n that the LAN is setup with DHCP, and\nthat network addresses are available')
eprint.text('ERROR: Could not connect to LAN\n\nPlease check that the IoTBox is correc-\ntly connected with a network cable,\n that the LAN is setup with DHCP, and\nthat network addresses are available')
elif len(ips) == 1:
eprint.text('IP Address:\n'+ips[0]+'\n')
else:
Expand Down
10 changes: 5 additions & 5 deletions addons/hw_posbox_homepage/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.

{
'name': 'PosBox Homepage',
'name': 'IoT Box Homepage',
'category': 'Point of Sale',
'sequence': 6,
'website': 'https://www.odoo.com/page/point-of-sale-hardware',
'summary': 'A homepage for the PosBox',
'summary': 'A homepage for the IoT Box',
'description': """
PosBox Homepage
===============
IoT Box Homepage
================
This module overrides Odoo web interface to display a simple
Homepage that explains what's the posbox and show the status,
Homepage that explains what's the iotbox and show the status,
and where to find documentation.
If you activate this module, you won't be able to access the
Expand Down
Loading

0 comments on commit 8b957b7

Please sign in to comment.