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

Generated by 2.11.0 by Marius Gedminas - find it at!