IRC logs of #tryton for Monday, 2013-02-25 #tryton log beginning Mon Feb 25 00:00:01 CET 2013
2013-02-25 12:52 <efx> hi guys, I try to add an image as a placeholder in a report.
2013-02-25 12:52 <efx> I added a graphics placeholder but I don't know in which format I should give it to the report generator
2013-02-25 12:52 <efx> Does anyone have an Idea ?
2013-02-25 12:53 <efx> I tried to give the path to the image file but that didn't work
2013-02-25 13:11 <Pilou> efx: i use something like that
2013-02-25 13:12 <basman> what is the difference between Fixed Cost and average cost ?
2013-02-25 13:13 <Pilou> efx: generate_graph must return a python file object (or an instance of StringIO)
2013-02-25 13:20 <efx> Pilou : ok thank I ll try it
2013-02-25 13:56 <efx> Pilou : The image doesn't appear in the odt file instead something like that is shown
2013-02-25 13:57 <efx> Pilou : <open file '/path_to/gsn_default.png', mode 'r' at 0x37e6030>image/png
2013-02-25 13:59 <efx> Pilou : I did it like that :
2013-02-25 13:59 <efx> Pilou : And I added a graphics placeholder in the odt report file
2013-02-25 14:05 <efx> Pilou : I also tried with the StringIO object instead of the file object and had the same issue
2013-02-25 14:19 <katr> efx: Have you inserted a frame with the name "image: graph"?
2013-02-25 14:20 <Pilou> efx: For the name of the frame i use "image: datas['graph']"
2013-02-25 14:20 <efx> ok so I shouldn't use a graphics placeholder but a frame instead ?
2013-02-25 14:21 <katr> efx: Haven't tried a graphics placeholder, but a frame does the job.
2013-02-25 14:22 <efx> katr, pilou : Thank you ! that worked :)
2013-02-25 14:23 <katr> efx: Maybe you find useful.
2013-02-25 14:24 <efx> katr: yes sure !
2013-02-25 20:22 -!- scrapper( has left #tryton
2013-02-25 21:25 -!- scrapper( has left #tryton
2013-02-25 23:26 <efx> is it possible to use relatorio to generate pdf file without passing by the .odt file ?
2013-02-25 23:35 <Pilou> efx: yes use a tex template
2013-02-25 23:55 <efx> Pilou: ho yes damn how did I not thought about that ! Thank you again
2013-02-25 23:59 <efx> Pilou: Is there an extension like "tex" that I can put in the field template_extension of the xml file related to the report ?

Generated by 2.17.3 by Marius Gedminas - find it at!