# Using include directive in ODF reports with relatorio

**URL:** https://discuss.tryton.org/t/using-include-directive-in-odf-reports-with-relatorio/3097
**Category:** Developer
**Tags:** relatorio
**Created:** [August 4, 2020, 5:00pm UTC](https://discuss.tryton.org/t/using-include-directive-in-odf-reports-with-relatorio/3097 "2020-08-04T17:00:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)
#### Post date: [August 4, 2020, 5:00pm UTC](https://discuss.tryton.org/t/using-include-directive-in-odf-reports-with-relatorio/3097/1 "2020-08-04T17:00:15Z")

</div>

Hi,  
is there a way to use the [`include`-directive](https://genshi.edgewall.org/wiki/Documentation/0.6.x/xml-templates.html#id10) from genshi in ODF reports with relatorio and how is it called?  
I know, there is an [example](https://hg.tryton.org/relatorio/file/543f97db9278/relatorio/tests/templates/include.tmpl) with the text template, but this will not work in odf.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [August 4, 2020, 10:19pm UTC](https://discuss.tryton.org/t/using-include-directive-in-odf-reports-with-relatorio/3097/2 "2020-08-04T22:19:15Z")

</div>

We do not support ‘include’ directive in placeholder but you can still manually add it to the ODF xml.  
I would say it will be quite complicated to include part of the ODF xml as it is quiet verbose and you could not edit it using LibreOffice and co. But you may use [‘content’](https://genshi.edgewall.org/wiki/Documentation/xml-templates.html#py-content) directive if you have some compatible content as proposed in [Allow to include richtext content in report (#2068) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue2068).
