With relatorio release 0.10.0 it seems there is now a way to add an URL in an ODF-Document. To archive this, I tried the following with the latest relatorio version 0.10.1
:
My data model extends sale.line
, has a field line.link
and a field line.link_text
and the fodt-report has both variables in its record
.
- Insert Hyperlink (Ctrl-K) in LibreOffice
- Fill URL with:
relatorio://attrs text:a="{'{urn:xlink}href': line.link}"
and Text with:relatorio://line.link_text
Unfortunately neither the line.link
nor the line.link_text
variables in the resulting report are parsed.
Using both fields in a placeholder with text format works as expected.
Any ideas what I am doing wrong?