I just tested and it looks good to me. I’m just wondering if we should also include a visual indicator to show to the user that the code have been successfully scanned, as with disabled sound it is no way to know if the code had been correctly scanned or not.
We just tested with a USB barcode scanner using firefox and the Bookmark menu entry is opened when scanning the code. Everything works fine with chromium or even tryton client. Not sure if others experimented the same behaviour.
I think a on_code_scan
function should be implemented in sale_point
module to scan products directly from the user interface. This implementation should:
- Raise error if the product is not found or not salable.
- Add a new line if the product is not included on the sale point lines with quantity 1 and compute the price.
- If a line with the same product is found, the line quantity should be increased by one.