> Hi,
>
> I try your code to generate a barcode on a report.
> I had to install "Pillow" (pip install Pillow) to avoid an NoneType error.
> How display this new field 'barcode' inside LibreOffice writer ? I try to add
> a frame but don't know how to link my binary field and relatorio
> document
> import barcode
>
> from barcode.writer import ImageWriter
>
>
> class Product:
>
> barcode = fields.Function(fields.Binary("Barcode",
>
> states={
>
> 'invisible': ~Eval('barcode'),
>
> }),
>
> 'get_barcode')
>
>
>
>
On Friday, 8 December 2017 02:18:32 UTC+1, edbo@gmail.com wrote:
> On Thursday, 7 December 2017 14:02:49 UTC+1, Sergi Almacellas Abellana wrote:
> > El 07/12/17 a les 13:35, ha escrit:
> > > Hello All,
> > >
> > > We want to add dynamically created images to a report, but we can't get
> > >
On Thursday, 7 December 2017 14:02:49 UTC+1, Sergi Almacellas Abellana wrote:
> El 07/12/17 a les 13:35, ha escrit:
> > Hello All,
> >
> > We want to add dynamically created images to a report, but we can't get it
> > working :-( . It's a generated 2D-barcode based on a product code. We added
>
El 07/12/17 a les 13:35, edbo.des...@gmail.com ha escrit:
Hello All,
We want to add dynamically created images to a report, but we can't get it
working :-( . It's a generated 2D-barcode based on a product code. We added a
frame an added on tab Options as name image: (record.barcode, 'image/png
Hello All,
We want to add dynamically created images to a report, but we can't get it
working :-( . It's a generated 2D-barcode based on a product code. We added a
frame an added on tab Options as name image: (record.barcode, 'image/png'), but
we only get a strange line and not a 2D-barcode.
We