I want to print barcode with Label module, on OpenERP 6.1
I go to "settings -> customization -> Labels -> Label templates" and I edit one of the templates. To print barcode I tried:
first, a harcoded code
<barcode x="1cm" y="1cm" height="1cm" code="EAN13">7501031311309</barcode>
second, I tried with ${object.ean13}:
<barcode x="1cm" y="1cm" height="1cm" code="EAN13">${object.ean13}</barcode>
finally on 3 lines:
<barcode x="1cm" y="1cm" height="1cm" code="EAN13">
${object.ean13}
</barcode>
the first works, but always the same barcode, obviously.
the second I get:
Illegal assignment of '${object.ean' to 'value' in class Ean13BarcodeWidget
(<type 'exceptions.AttributeError'>, AttributeError("Illegal assignment of '${object.ean' to 'value' in class Ean13BarcodeWidget",), <traceback object at 0xe0c9784>)
and the third:
Illegal assignment of '<para style=' to 'value' in class Ean13BarcodeWidget
(<type 'exceptions.AttributeError'>, AttributeError("Illegal assignment of '<para style=' to 'value' in class Ean13BarcodeWidget",), <traceback object at 0xccb9554>)
How I should configure the barcode tag to get ean13 from each product?