# How to automate report generation/ delivery by Email?

**URL:** <https://discuss.tryton.org/t/how-to-automate-report-generation-delivery-by-email/3746>\
**Category:** System Administrator\
**Created:** [February 1, 2021, 9:37am UTC](https://discuss.tryton.org/t/how-to-automate-report-generation-delivery-by-email/3746 "2021-02-01T09:37:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisexner](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/c/7ba0ec/32.png) [@chrisexner](https://discuss.tryton.org/u/chrisexner)\
**Post date:** [February 1, 2021, 9:37am UTC](https://discuss.tryton.org/t/how-to-automate-report-generation-delivery-by-email/3746/1 "2021-02-01T09:37:18Z")

</div>

As I search the Forum I can not find some topic matching my question. Please point me if you know some topic.

I am wondering which way to go to get an automated report from Tryton. Let’s say a monthly generated Report that is to be sent to some Email without user interaction. Here in special the “aged\_balances”.

Can this be done with Triggers and trytond-cron? Should I code some Script that interacts with the Tryton-Webservice via json-rpc?

Regards…  
Chris

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [February 1, 2021, 10:54am UTC](https://discuss.tryton.org/t/how-to-automate-report-generation-delivery-by-email/3746/2 "2021-02-01T10:54:33Z")

</div>

We currently have no way to send scheduled reports by email.  
We just allow to send [notifications based on record events](https://docs.tryton.org/projects/modules-notification-email/en/latest/) and allow the user to [send emails directly from the user interface](https://bugs.tryton.org/issue9449)

Giving your case I think it’s easier to have a method on the module that should be call by trytond-cron and send the report to the desired recipients.

> [@chrisexner](#):
>
> Should I code some Script that interacts with the Tryton-Webservice via json-rpc?

Altought it is possible to have a script and automate it using a normall cron I think it’s easier to develop it using the trytond-cron feature.

---

<div class="post-metadata">

**Author:** ![chrisexner](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/c/7ba0ec/32.png) [@chrisexner](https://discuss.tryton.org/u/chrisexner)\
**Post date:** [February 2, 2021, 7:19am UTC](https://discuss.tryton.org/t/how-to-automate-report-generation-delivery-by-email/3746/3 "2021-02-02T07:19:43Z")

</div>

Thank’s for your helpful assessment.

No Idea how to write or modify modules at the moment but will read me trough the docs in the next weeks.

Chris
