Odoo Barcode Print Product EAN13

Odoo Barcode

Probuse Admin
Step 1: You have to update reportlab of python using following below command:
  • sudo pip install reportlab --upgrade
Step 2: And then you have to load fonts by below below mentioned steps so it will be load to your server:
  • Go to path /usr/lib/python2.7/dist-packages/reportlab
  • Create a new folder named fonts.
  • Download fonts using from here: http://www.reportlab.com/ftp/fonts/pfbfer.zip
  • Extract this zip file in: /usr/lib/python2.7/dist-packages/reportlab/fonts
  • Use this command to unzip it: unzip pfbfer.zip -d /usr/lib/python2.7/dist-packages/reportlab/fonts

Example EAN13 Barcode : 2504160922137

<img t-if="o.product_id.ean13" t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN13',o.product_id.ean13, 600, 100)" style="width:300px;height:50px"/><br/>