summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/session_instance.js
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2016-03-03 10:59:40 +0100
committerDenis Ledoux <dle@odoo.com>2016-03-03 11:08:36 +0100
commit13f1426bf564a91c6cdbfb6e6aa8522efdd549f3 (patch)
treec4d16e236cb6a9810fe3267666b18eee942fb3bf /addons/web/static/src/js/framework/session_instance.js
parentc23eb232675554b4952d3898a76470d5d659fe82 (diff)
[FIX] report: UPC-A barcodes drawing
It looks like reportlab doesn't handle well UPC-A barcodes. As UPC-A barcodes became EAN13 barcodes when adding a `0` to the beginning of the barcode, and the render is the same, we ask reportlab a EAN13 barcode type when a UPC-A barcode is asked, making sure to add the `0` automatically first. From Wikipedia: ``` The EAN was developed as a superset of UPC, adding an extra digit to the beginning of every UPC number. [...] the original rules for UPC are treated as a '0' if read as EAN-13. A UPC barcode XXXXXXXXXXXX therefore is the EAN-13 barcode 0XXXXXXXXXXXX. It is possible to prefix a UPC barcode with a 0; they become EAN-13 rather than UPC-A. This does not change the check digit. All point-of-sale systems can now understand both equally. ``` opw-670560
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions