Tryton - Issues



Title Allow to include richtext content in report
Priority feature Status chatting
Superseder Nosy List ced, lordvan, meanmicio, perilla, rhubner
Type behavior Components
Assigned To Keywords

Created on 2011-06-19.21:38:56 by meanmicio, last changed by lordvan.

msg24213 (view) Author: [hidden] (perilla) Date: 2016-02-15.12:08:42
I think we should use pypandoc, to convert html to opendocument format, and then using relatorio replace result into the template, similar to image tag used on relatorio.

you can try pandoc online.
msg23660 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2016-01-12.19:26:05
A XSLT will not be enough because the HTML style needs to be converted into ODF style. Indeed we need to generate minimal standard style in the header for bold, italic, font etc. And have a converter that will use those pre-generated text style.
The only issue is that alignment needs to be done at paragraph style and it can not be pre-generated because it must inherit from the parent paragraph.
msg22587 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2015-10-01.16:11:06
Here is a discussion on how to do it:
So we are just missing the XSLT to convert from HTML to ODT.
msg8312 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2011-06-20.09:55:40
This will be managed by the rich-text editor that Rodrigo Hübner is implemented.
msg8311 (view) Author: [hidden] (meanmicio) Date: 2011-06-19.21:38:56
When displaying the contents of fields.Text in reports, the newline char (\n) is not taken in consideration, so all the information is shown in a single text.

We should be able to see it in the same format as the user inputs the information in the field.
Date User Action Args
2017-08-09 19:48:55lordvansetnosy: + lordvan
2016-02-15 12:08:43perillasetnosy: + perilla
messages: + msg24213
2016-01-12 19:26:06cedsetmessages: + msg23660
2015-10-01 16:11:08cedsetmessages: + msg22587
title: newlines of fields.Text are not shown in reports -> Allow to include richtext content in report
2013-04-20 14:55:49cedsetstatus: in-progress -> chatting
assignedto: rhubner ->
2011-06-20 09:56:02cedsetstatus: chatting -> in-progress
2011-06-20 09:55:57cedsetassignedto: rhubner
nosy: + rhubner
2011-06-20 09:55:40cedsetpriority: bug -> feature
status: unread -> chatting
messages: + msg8312
nosy: + ced
2011-06-19 21:38:56meanmiciocreate

Showing 10 items. Show all history (warning: this could be VERY long)