# Strange report behavior in Tryton 6.0

**URL:** https://discuss.tryton.org/t/strange-report-behavior-in-tryton-6-0/4648
**Category:** Developer
**Created:** [September 23, 2021, 1:58pm UTC](https://discuss.tryton.org/t/strange-report-behavior-in-tryton-6-0/4648 "2021-09-23T13:58:02Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![bell](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bell](https://discuss.tryton.org/u/bell)
#### Post date: [September 23, 2021, 1:58pm UTC](https://discuss.tryton.org/t/strange-report-behavior-in-tryton-6-0/4648/1 "2021-09-23T13:58:02Z")

</div>

We recently migrated Tryton from 5.4 to 6.0.

After editing a report template (ods file) we don’t see our changes in the generated report. After restarting Trytond we begin to see them. In Tryton 5.4 new changes in the report template are immediately visible in the generated report (without restarting Trytond).

What could be wrong with Tryton 6.0?

---

<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: [September 23, 2021, 2:25pm UTC](https://discuss.tryton.org/t/strange-report-behavior-in-tryton-6-0/4648/2 "2021-09-23T14:25:12Z")

</div>

This is due to the improvement of [Do not use relatorio template loader (#6489) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue6489)  
If you want to have auto-reload of the reports when changed on the filesystem, you must run `trytond` with `--dev` mode.

---

<div class="post-metadata">

### Author: ![bell](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bell](https://discuss.tryton.org/u/bell)
#### Post date: [September 24, 2021, 10:50am UTC](https://discuss.tryton.org/t/strange-report-behavior-in-tryton-6-0/4648/3 "2021-09-24T10:50:07Z")

</div>

Run `trytond` and `tryton` in `--dev` mode.  
We don’t see reports automatically reloading.

---

<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: [September 24, 2021, 1:16pm UTC](https://discuss.tryton.org/t/strange-report-behavior-in-tryton-6-0/4648/4 "2021-09-24T13:16:51Z")

</div>

It works only when running with the development server of `werkzeug` and for the report extension defined in `bin/trytond`.

---

<div class="post-metadata">

### Author: ![bell](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/b/c67d28/32.png) [@bell](https://discuss.tryton.org/u/bell)
#### Post date: [September 24, 2021, 2:57pm UTC](https://discuss.tryton.org/t/strange-report-behavior-in-tryton-6-0/4648/5 "2021-09-24T14:57:38Z")

</div>

OK, it works. But there is another problem.

If we rename a report template and forget to change this name in the `py` file then report is generated despite the fact that required template file is not available. After restarting `trytond` a message appears stating that the template file is missing. Again, in Tryton 5.4 the message about the absence of the template file is displayed immediately (without restarting `trytond`).

---

<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: [September 24, 2021, 3:00pm UTC](https://discuss.tryton.org/t/strange-report-behavior-in-tryton-6-0/4648/6 "2021-09-24T15:00:17Z")

</div>

Yeps this does not work the same any more but it is not a problem.

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [October 24, 2021, 3:00pm UTC](https://discuss.tryton.org/t/strange-report-behavior-in-tryton-6-0/4648/7 "2021-10-24T15:00:17Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
