summaryrefslogtreecommitdiff
path: root/addons/hw_proxy/controllers/main.py
AgeCommit message (Collapse)Author
2020-08-25[IMP] hw_*,point_of_sale: Cleaning IoT BoxAntoine Prieels
- Split driver.py to multiple files - Remove hw_proxy module as most of its routes were not used and move remaingin routes to a controller in hw_drivers - Add missing coding and license lines at the beginning of files - Reorder imports and remove unused ones - Rename device_id to device_identifier for clarity - Rename screen to display for consistency - Other minors improvements TaskID: 1973956
2019-09-04[IMP] hw_*: Remove "Shell=True" in subrpocess callsAntoine Prieels
In the IoT Box, most calls to subprocess used "Shell=True", which can cause security issues. TaskID: 1966417
2019-08-13[REF] hw_{driver, scanner}: Barcode scanners as IoT DevicesAntoine Prieels
Barcode scanners are now part of KeyboardUSBDriver. We also add the possibility to change the keyboard/scanner layout from an action. The list of available layout can be retrieved with a new route. `hw_scanner` has been removed. Backward compatibility is ensured because the name of the route that is now used in community is the same that was used previously. TaskID: 1939455
2019-06-05[IMP] *: new asset for test files, new debug mode (stored in session)Romain Derie
This commit goal is to encapsulate every tour-test into a separate assets bundle that would be called only during tests (command line) or by URL (debug=tests). That way, a lot of .js files would not be loaded anymore uselessly outside test mode and will speed up the page loads (especially in the frontend as the backend do not reload the page anyway). In order to do that, we needed to propagate the `debug` state from page to page. Otherwise, every page change during a test would simply lose the debug mode and the test would stop as the test assets would not be loaded. As we could not add the `&debug=tests` on every link (either hardcoded or preprocess during the rendering), it has been decided to store it in session. Technical summary: 1. `debug` state (currently only stored in URL) will be stored in session. Either when adding the `debug` param in URL (handled with _dispatch) or by starting Odoo with `test-enable` or `test-file` (handled by session init). 2. Once activated (and so set in session), debug mode will remain activated even if not visible in URL (after a page navigation eg). To deactivate it, set its value to nothing, `debug=`. That will exit debug mode (whatever mode it is: debug, assets, tests). 3. As tour-test files are now in a separate bundle, every layout (when needed) should `t-call="web.conditional_assets_tests"`. As it would be redundant and verbose, no `t-if` is needed on the t-call to load it only in test debug mode. That will be handled by `compiled_assets_tests` that will actually do the conditionnal t-call-assets to web.assets_tests, if tests debug mode is activated. 4. In addition to separating the tour-tests files in a separate bundle, we also moved those files to a specific folder under /static/tests/tours next to QUnit tests. 5. Also, tour files will be moved in a specific folder /static/src/js/tours for cleanness purpose (those files will still be kept in their 'normal' assets as needed outside test mode since it is tours). This will be done in the next commit. 6. It is possible to enable multiple debug mode, such as 'tests' and 'assets' together. Simply separate debug modes with a comma, eg '?debug=assets,tests' task-1934445 Comes with https://github.com/odoo/enterprise/pull/4281 Closes #33213
2018-09-25[IMP] hw_*: updated web interface for IoT BoxJosse Colpaert
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.
2018-07-13[IMP] point_of_sale: posbox upgrade to stretch / python3Josse Colpaert
- transform odoo.py -> odoo-bin / recent branches + pip3 packages - deactivate wpa_supplicant when starting dhcpcd automatically - postgresql create clusters manually - latest stretch raspbian image / add versatile-db.ptb for kernel-qemu - ifconfig output change - upgrade hw_-modules: hw_escpos: to python3 hw_posbox_homepage: to v11: csrf does not work as it needs a database hw_posbox_upgrade: to python3 decode utf-8 hw_scale: to python3 hw_proxy: to python3 With the commit, the posbox will also work on the new Raspberry Pi 3b+
2017-10-20[MERGE] forward port branch saas-16 up to dc2a6c6cd2aChristophe Simonis
2017-10-20[MERGE] forward port branch saas-15 up to bee0c11ef7fChristophe Simonis
2017-10-19[ADD] hw_proxy: do not mix indentation with tab & spacesChristophe Simonis
2017-08-23[MERGE] forward port branch saas-16 up to aec6248bb37Christophe Simonis
2017-08-23[MERGE] forward port branch saas-15 up to d5f2a38b50cChristophe Simonis
2017-08-14[FIX] hw_proxy: error when check status in debug modeEdi Santoso
when access status hw_proxy in debug mode it's will raise error, it's happens because hw_proxy uses subprocess module to get a list of usb but the subprocess module not imported. Introduced at 56456359 Closes #18820
2017-05-15[FIX] P3: removed commands moduleXavier Morel
2017-04-25[FIX] print statement -> functionxmo-odoo
In Python 3, ``print`` becomes a builtin function. This is available in Python 2 by importing the ``print_function`` feature from ``__future__``, the feature is conveniently still available in Python 3 (it just does nothing). Fixers: libfuturize.fixes.fix_print_with_import #8530
2016-11-17[MERGE] forward port branch saas-12 up to 1ef4061Christophe Simonis
2016-11-17[MERGE] forward port branch saas-6 up to 6d8d7a5Christophe Simonis
2016-11-17[MERGE] forward port branch 8.0 up to 8e8b792Christophe Simonis
2016-11-14[IMP] hw_proxy: add lsusb full output to hw status pageOlivier Dony
2016-11-14[FIX] hw_proxy,hw_blackbox_be: make RS-232 drivers protect their deviceOlivier Dony
RS-232 drivers now need to register any device they are handling in the hw_proxy.rs232_devices map. This will prevent other drivers from probing them, possibly messing up with the device. Any update to rs232_devices must be done while holding the hw_proxy.rs232_lock. The hw_scale driver will be updated to use this mechanism in the next commit, that will also handle a new RS-232 scale protocol.
2016-08-04[MIG] hw_proxy : Migrated to new API.Rohan Patel
2015-09-28[IMP] replace simplejson with stdlib jsonLeonardo Rochael Almeida
The stdlib version of the json library is more recent than the 3.5.3 version we are pinning in `requirements.txt` There is no reason to use it. Closes #6940
2015-09-21[MERGE] forward port of branch 8.0 up to aabbdc7Denis Ledoux
2015-09-16[FIX] hw_proxy: remove forms related to supported devicesJoren Van Onder
The concept of supported devices was removed in e7c51228f363241960515d9bc5d1a1aa598b6950. These forms should have been removed with them.
2015-08-11[MERGE] forward port of branch 8.0 up to 02954baChristophe Simonis
2015-08-11[IMP] point_of_sale: add patches from `posbox` branchJoren Van Onder
This commit contains the patches from the now obsolete 'posbox' branch. These patches were written by Martin Donies (@mdo-odoo) and Frédéric Van der Essen (@fvdsn).
2015-05-11[MERGE] forward port of branch 8.0 up to bff6dffChristophe Simonis
2015-05-08[FIX] hw_proxy: routes shadowed by same method nameOlivier Dony
2015-01-19[MERGE] forward port of branch 8.0 up to 0aab81cChristophe Simonis
2015-01-12[Fix] Some missed frontend openerp to odoo changesErwin van der Ploeg
2014-12-31[REF] remove vim modelines and resulting trailing blank linesLeonardo Donelli
Let 2015 be a year without modelines! cf #4174
2014-07-18[REF] OpenERP --> Odoo in various UI textsrlu-odoo
Rebranding has been done in: - data/demo files - html templates - help notices - comments - logger messages - and other various messages (Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08) Closes #1260
2014-07-15[IMP] posbox: rename OpenERP to OdooFrederic van der Essen
2014-04-30[REM] html_template from hw_*Fabien Meghazi
bzr revid: fme@openerp.com-20140430132510-smhi39h9oyi8p4nt
2014-04-24[IMP] point_of_sale, hw_scale: first commit for the hw_scale module, which ↵Frédéric van der Essen
handles scale connections for the POS bzr revid: fva@openerp.com-20140424171259-hi9ma6w0fkdfrqnv
2014-04-11[IMP] hw_proxy, hw_escpos: it is now possible to add support for new ↵Frédéric van der Essen
printers from the posbox hardware status page + fix backward compatiblity for hardcoded receipts bzr revid: fva@openerp.com-20140411120510-t3a8b3axq1q4wuje
2014-03-26[IMP] hw_escpos, hw_proxy: improved status page appeareance, add a listing ↵Frédéric van der Essen
of connected devices to hardware status page bzr revid: fva@openerp.com-20140326103230-ib1myl1rmipoynkn
2014-01-30[ADD] POS: added cors argument to all routesFabien Meghazi
bzr revid: fme@openerp.com-20140130124606-wetmhcjqqvvkv5dy
2014-01-30[IMP] Use CORS in pos (only two routes)Fabien Meghazi
bzr revid: fme@openerp.com-20140130122752-kfgo7u0q0crn3tbr
2014-01-29[REM] POS: Replaced auth="admin" by auth="none"Fabien Meghazi
bzr revid: fme@openerp.com-20140129153408-d8zkyty1rcvvzqx3
2014-01-26[IMP] point_of_sale: Realtime printer & scanner online statusFrédéric van der Essen
bzr revid: fva@openerp.com-20140126215528-q32v2q8keh6m0ufo
2014-01-26[IMP] hw_proxy: better driver status reporting with hw_proxy/status, ↵Frédéric van der Essen
improved printing reliability bzr revid: fva@openerp.com-20140126183500-ejbm9d4jafl817tq
2014-01-13[FIX] point_of_sale: removed useless escpos python module & pyusb from ↵Frédéric van der Essen
hw_proxy module bzr revid: fva@openerp.com-20140113092322-qa8v4qhr4qo2kouc
2014-01-10[IMP] point_of_sale: posbox automatic discoveryFrédéric van der Essen
bzr revid: fva@openerp.com-20140110171746-286285ds696d5kby
2014-01-03[hw_scanner] implementation of the client side component of the barcode ↵Frédéric van der Essen
scanner proxy bzr revid: fva@openerp.com-20140103130930-q1shnj9172yzn0gr
2014-01-02[hw_scanner] implementation of the server side component of the barcode ↵Frédéric van der Essen
scanner proxy bzr revid: fva@openerp.com-20140102141519-jaqi8mcqff282c6n
2013-12-20[IMP] point_of_sale: ESC/POS receipt printingFrédéric van der Essen
bzr revid: fva@openerp.com-20131220163057-9nu1u7hti0m8wo3h
2013-12-19[FIX] point_of_sale & hw_proxy: connect the pos to the new proxy, and fix ↵Frédéric van der Essen
scale emulation bzr revid: fva@openerp.com-20131219142911-i9mkwqt1e0wz28i7
2013-12-19[IMP] hw_proxy: initial commit of the hardware proxy module, used by the ↵Frédéric van der Essen
point of sale to connect to usb devices bzr revid: fva@openerp.com-20131219131140-sm6fvpjtje6ova0p