ajeebkp23 / python-relatorio

Automatically exported from code.google.com/p/python-relatorio. Thus it enables to to install this package via pip.
GNU General Public License v3.0
0 stars 0 forks source link

error when two image are include in an odt file with LibreOffice 4.1.3.2 #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make an odt file with 2 frames or 1 frame with 2 records
2. take 1 record or 2 records to make a rapport
3. LibreOffice can open the rapport and make an error in write

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Product python-relatorio 0.5.7-2, trytond v2.8, OS ubuntu 13.10, LibreOffice 
4.1.3.2

Please provide any additional information below.

Original issue reported on code.google.com by pascal.o...@gmail.com on 3 Dec 2013 at 5:28

Attachments:

GoogleCodeExporter commented 9 years ago
For the attached example is almost empty (except a empty for loop).
We should have at least the generated result and the expected result.

Original comment by cedric.krier@b2ck.com on 6 Dec 2013 at 11:42

GoogleCodeExporter commented 9 years ago
this file don't work too

Original comment by pascal.o...@gmail.com on 6 Dec 2013 at 11:51

Attachments:

GoogleCodeExporter commented 9 years ago
Didn't take a look at the contents of this odt file but I guess the problem is 
solved with the attached patch. The problem shows when there's an image frame 
in a loop and there is more than one iteration. The reason: LibreOffice does 
not support two frames with the same name.

So the attached patch, which can be applied with "hg import", should fix this 
problem by ensuring that the draw:name attribute of the frame is different in 
each iteration.

Original comment by albert.n...@gmail.com on 21 Dec 2013 at 11:40

Attachments:

GoogleCodeExporter commented 9 years ago
Could you upload the patch on https://codereview.appspot.com/ ?

Original comment by cedric.krier@b2ck.com on 21 Dec 2013 at 12:33

GoogleCodeExporter commented 9 years ago
It's not ok, i have an another error join to this post.

Original comment by pascal.o...@gmail.com on 21 Dec 2013 at 9:40

Attachments:

GoogleCodeExporter commented 9 years ago
It will be good at least to give the document otherwise the error message is 
useless.

Original comment by cedric.krier@b2ck.com on 21 Dec 2013 at 11:17

GoogleCodeExporter commented 9 years ago
The file in error.

Original comment by pascal.o...@gmail.com on 22 Dec 2013 at 7:16

Attachments:

GoogleCodeExporter commented 9 years ago
There are twice the attribute "name" on the frame.

Original comment by cedric.krier@b2ck.com on 22 Dec 2013 at 8:00

GoogleCodeExporter commented 9 years ago
the patch work or not ?

Original comment by pascal.o...@gmail.com on 23 Dec 2013 at 9:16

GoogleCodeExporter commented 9 years ago
It seems to be a LibreOffice bug: 
https://bugs.freedesktop.org/show_bug.cgi?id=71450
You should try with one of the fixed version of LibreOffice and a vanilla 
relatorio.

Original comment by cedric.krier@b2ck.com on 23 Dec 2013 at 10:14

GoogleCodeExporter commented 9 years ago
Did it works with a newer version of LibreOffice?

Original comment by cedric.krier@b2ck.com on 13 Jan 2014 at 10:49

GoogleCodeExporter commented 9 years ago
LibreOffice dev is OK

Original comment by pascal.o...@gmail.com on 29 Jan 2014 at 10:01

GoogleCodeExporter commented 9 years ago

Original comment by cedric.krier@b2ck.com on 29 Jan 2014 at 2:05