Binary images are not shown on sao
We added a binary image to lots using the following code:
from trytond.tools import barcode
class Lot(LotMixin):
__name__ = 'stock.lot'
barcode = fields.Function(fields.Binary("Barcode"), 'get_barcode')
def get_barcode(self, name):
data = barcode.generate_svg('code128', self.number)
data.seek(0)
return data.read()
<data>
<xpath expr="/form" position="inside">
<field name="barcode" widget="image" colspan="4"/>
</xpath>
</data>
On sao I see the following content:
But on tryton the field is shown correctly: