-
-
Notifications
You must be signed in to change notification settings - Fork 896
[19.0][MIG] report_async: Migration to 19.0 #1174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
samirGuesmi
wants to merge
31
commits into
OCA:19.0
Choose a base branch
from
acsone:19.0-mig-report_async
base: 19.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
7e4cab3
report_async
kittiu c5684de
Update report_async.pot
oca-travis 680e65d
README.rst
OCA-git-bot 5fe58a5
report_async 12.0.1.0.1
OCA-git-bot a878b04
Added translation using Weblate (Portuguese)
pedrocs-exo 58a8829
Translated using Weblate (Portuguese)
pedrocs-exo 5583264
report_async: black, isort, prettier
newtratip be387ab
report_async
newtratip 67a97f7
Update report_async.pot
525b78e
README.rst
OCA-git-bot 220d4a5
report_async: Pre-Commit
Hardik-OSI 24dc1d2
report_async: migration to 15.0
Hardik-OSI 43a66ff
Update report_async.pot
5220696
README.rst
OCA-git-bot cdc90c1
[MIG] report_async: Migrated v15 to v16
Nikul-OSI 5630ac7
[UPD] Update report_async.pot
ba4decc
[UPD] README.rst
OCA-git-bot a633e82
Added translation using Weblate (Spanish)
Ivorra78 ad670a7
Translated using Weblate (Spanish)
Ivorra78 fa138c4
[UPD] README.rst
OCA-git-bot 7534d75
Update translation files
weblate f27f63e
Added translation using Weblate (Italian)
mymage 2fb45cc
Translated using Weblate (Italian)
mymage 863a0cf
[IMP] report_async: pre-commit auto fixes
sakthi-shan d2c2bc7
[MIG] report_async: Migration to 17.0
sakthi-shan 39edc04
[UPD] Update report_async.pot
92bc131
[BOT] post-merge updates
OCA-git-bot da54faf
Update translation files
weblate 1bac777
Translated using Weblate (Italian)
mymage a1f70a9
[IMP] report_async: pre-commit auto fixes
samirGuesmi dc9fbf5
[19.0][MIG] report_async: Migration to 19.0
samirGuesmi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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", | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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