Re: [tryton-dev] Adding images in reports

2018-02-19 Thread Maxime Richez
> 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

Re: [tryton-dev] Adding images in reports

2018-02-19 Thread Maxime Richez
> import barcode > > from barcode.writer import ImageWriter > > > class Product: > > barcode = fields.Function(fields.Binary("Barcode", > > states={ > > 'invisible': ~Eval('barcode'), > > }), > > 'get_barcode') > > > >

Re: [tryton-dev] Adding images in reports

2017-12-08 Thread edbo . design
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 > > >

Re: [tryton-dev] Adding images in reports

2017-12-07 Thread edbo . design
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 >

Re: [tryton-dev] Adding images in reports

2017-12-07 Thread Sergi Almacellas Abellana
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

[tryton-dev] Adding images in reports

2017-12-07 Thread edbo . design
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