Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7e4cab3
report_async
kittiu Dec 10, 2019
c5684de
Update report_async.pot
oca-travis May 15, 2020
680e65d
README.rst
OCA-git-bot May 15, 2020
5fe58a5
report_async 12.0.1.0.1
OCA-git-bot May 15, 2020
a878b04
Added translation using Weblate (Portuguese)
pedrocs-exo Mar 13, 2021
58a8829
Translated using Weblate (Portuguese)
pedrocs-exo Mar 13, 2021
5583264
report_async: black, isort, prettier
newtratip Dec 20, 2021
be387ab
report_async
newtratip Dec 20, 2021
67a97f7
Update report_async.pot
Apr 13, 2022
525b78e
README.rst
OCA-git-bot Apr 13, 2022
220d4a5
report_async: Pre-Commit
Hardik-OSI Jun 3, 2022
24dc1d2
report_async: migration to 15.0
Hardik-OSI Jun 3, 2022
43a66ff
Update report_async.pot
Mar 18, 2023
5220696
README.rst
OCA-git-bot Mar 18, 2023
cdc90c1
[MIG] report_async: Migrated v15 to v16
Nikul-OSI Mar 20, 2023
5630ac7
[UPD] Update report_async.pot
Jun 29, 2023
ba4decc
[UPD] README.rst
OCA-git-bot Jun 29, 2023
a633e82
Added translation using Weblate (Spanish)
Ivorra78 Aug 23, 2023
ad670a7
Translated using Weblate (Spanish)
Ivorra78 Aug 23, 2023
fa138c4
[UPD] README.rst
OCA-git-bot Sep 3, 2023
7534d75
Update translation files
weblate Oct 10, 2023
f27f63e
Added translation using Weblate (Italian)
mymage Jan 9, 2024
2fb45cc
Translated using Weblate (Italian)
mymage Jan 18, 2024
863a0cf
[IMP] report_async: pre-commit auto fixes
sakthi-shan May 10, 2024
d2c2bc7
[MIG] report_async: Migration to 17.0
sakthi-shan May 10, 2024
39edc04
[UPD] Update report_async.pot
Oct 1, 2024
92bc131
[BOT] post-merge updates
OCA-git-bot Oct 1, 2024
da54faf
Update translation files
weblate Oct 1, 2024
1bac777
Translated using Weblate (Italian)
mymage Nov 25, 2025
a1f70a9
[IMP] report_async: pre-commit auto fixes
samirGuesmi Jun 25, 2026
dc9fbf5
[19.0][MIG] report_async: Migration to 19.0
samirGuesmi Jun 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
148 changes: 148 additions & 0 deletions report_async/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

============
Report Async
============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:b78bb80d7af0d825eb97d22bd12d497480c0bb50406d307649f54ce152fc216d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github
:target: https://github.com/OCA/reporting-engine/tree/19.0/report_async
:alt: OCA/reporting-engine
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/reporting-engine-19-0/reporting-engine-19-0-report_async
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

The new menu "Report Center" is the central place to host your reports
in one place. From here, there are 2 ways to launch the report,

1. Run Now - run report immediately as per normal.
2. Run Background - put the report execution to queue job.

By using the queue job, option 2 is great for long running report. The
report file will be saved for later use, with the option to send report
by email as soon as it is ready.

Notes:

- Only user with Technical Feature rights can manage the report.
- Every internal user will have right to execute the report allowed for
his/her groups.
- The files created are owned and viewable only by the person who run
the report.
- Job queue manager can also see all jobs for each reports.

**Table of contents**

.. contents::
:local:

Usage
=====

Menu: Dashboard > Report Center

As Technical Feature users, you can manage reports for Report Center.

- **Report:** choose the report (a window action). Although the option
show all window actions it only make sense for window actions that
launch reports.
- **Allow Async:** check this, if you want the report to run in
background too, suitable for report that return file as result, i.e.,
pdf/xlsx/csv/txt.
- **Email Notification:** if checked, once the background process is
completed, email with link to download report will be sent.
- **Groups:** select user groups allowed to use this report. If left
blank, all user can use.

As normal user, you can run your reports from Report Center

- **Run Now button:** to run report immediately as per normal.
- **Run Background button:** to run report asynchronously. Fall back to
run now, if not report that produce file.
- **Job Status:** show status of the latest run job. If job fail,
exception error will also shown
- **Files:** show all files being produced by the job as run by the
user.
- **Jobs:** show all jobs triggered by this report as run by the user.
Only job queue manager have access to this button.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_async%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Ecosoft

Contributors
------------

- `Ecosoft <http://ecosoft.co.th>`__:

- Kitti U. <kittiu@ecosoft.co.th>
- Saran Lim. <saranl@ecosoft.co.th>
- Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>

- Opensourceintegrators

- Daniel Reis <dreis@opensourceintegrators.com>
- Nikul Chaudhary <nchaudhary@opensourceintegrators.com>

- Acsone

- Samir GUESMI <samir.guesmi@acsone.eu>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-kittiu| image:: https://github.com/kittiu.png?size=40px
:target: https://github.com/kittiu
:alt: kittiu

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-kittiu|

This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/19.0/report_async>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions report_async/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

from . import models
from . import wizard
24 changes: 24 additions & 0 deletions report_async/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
{
"name": "Report Async",
"summary": "Central place to run reports live or async",
"version": "19.0.1.0.0",
"author": "Ecosoft, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/reporting-engine",
"category": "Generic Modules",
"depends": ["queue_job", "spreadsheet_dashboard"],
"data": [
"security/ir.model.access.csv",
"security/ir_rule.xml",
"data/mail_template.xml",
"data/queue_job_function_data.xml",
"views/report_async.xml",
"wizard/print_report_wizard.xml",
],
"demo": ["demo/report_async_demo.xml"],
"installable": True,
"maintainers": ["kittiu"],
"development_status": "Beta",
}
78 changes: 78 additions & 0 deletions report_async/data/mail_template.xml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correctly "migrated".

I think that you should include this PR: #975

Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<odoo noupdate="1">
<record id="async_report_delivery" model="mail.template">
<field name="name">Report Async: New Report Available</field>
<field name="model_id" ref="base.model_ir_attachment" />
<field name="subject">Your report is available, {{object.name}}</field>
<field
name="email_from"
>{{object.company_id.partner_id.email_formatted}}</field>
<field name="partner_to">{{ user.partner_id.id }}</field>
<field name="body_html" type="html">
<table
border="0"
cellpadding="0"
cellspacing="0"
style="background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"
>
<tr>
<td align="center">
<table
border="0"
cellpadding="0"
cellspacing="0"
width="590"
style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;"
>
<tbody>
<tr>
<td align="center" style="min-width: 590px;">
<table
border="0"
cellpadding="0"
cellspacing="0"
width="590"
style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;"
>
<tr>
<td
valign="top"
style="font-size: 13px;"
>
<t
t-set="base_url"
t-value="object.env['ir.config_parameter'].sudo().get_param('web.base.url')"
/>
<t
t-set="download_url"
t-value="'%s/web/content/ir.attachment/%s/datas/%s?download=true' % (base_url, object.id, object.name, )"
/>
<div>
Dear <t
t-out="object.create_uid.partner_id.name or ''"
/>,
<br /><br />
Your requested report, <t
t-out="object.name"
/>, is available for <b>
<a
t-attf-href="{{ download_url }}"
>download</a>
</b>.
<br /><br />
Have a nice day!<br />
--<br /><t t-out="object.company_id.name" />
</div>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</field>
<field name="auto_delete" eval="True" />
</record>
</odoo>
6 changes: 6 additions & 0 deletions report_async/data/queue_job_function_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<odoo noupdate="1">
<record id="job_function_report_async_run_report" model="queue.job.function">
<field name="model_id" ref="report_async.model_report_async" />
<field name="method">run_report</field>
</record>
</odoo>
7 changes: 7 additions & 0 deletions report_async/demo/report_async_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="report_async_print_document" model="report.async">
<field name="action_id" eval="ref('report_async.action_print_report_wizard')" />
<field name="allow_async" eval="0" />
</record>
</odoo>
Loading
Loading