Skip to content

Commit aff53d7

Browse files
committedMar 20, 2023
[MIG] report_async: Migrated v15 to v16
1 parent 6f6f11b commit aff53d7

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed
 

‎report_async/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Report Async",
55
"summary": "Central place to run reports live or async",
6-
"version": "15.0.1.0.0",
6+
"version": "16.0.1.0.0",
77
"author": "Ecosoft, Odoo Community Association (OCA)",
88
"license": "AGPL-3",
99
"website": "https://github.com/OCA/reporting-engine",

‎report_async/models/report_async.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def run_report(self, docids, data, report_id, user_id):
140140
report = self.env["ir.actions.report"].browse(report_id)
141141
func = REPORT_TYPES_FUNC[report.report_type]
142142
# Run report
143-
out_file, file_ext = getattr(report, func)(docids, data)
143+
out_file, file_ext = getattr(report, func)(report.xml_id, docids, data)
144144
out_file = base64.b64encode(out_file)
145145
out_name = "{}.{}".format(report.name, file_ext)
146146
# Save report to attachment
@@ -170,5 +170,7 @@ def run_report(self, docids, data, report_id, user_id):
170170
def _send_email(self, attachment):
171171
template = self.env.ref("report_async.async_report_delivery")
172172
template.send_mail(
173-
attachment.id, notif_layout="mail.mail_notification_light", force_send=False
173+
attachment.id,
174+
email_layout_xmlid="mail.mail_notification_light",
175+
force_send=False,
174176
)

‎report_async/readme/CONTRIBUTORS.rst

+5
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33
* Kitti U. <kittiu@ecosoft.co.th>
44
* Saran Lim. <saranl@ecosoft.co.th>
55
* Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>
6+
7+
* Opensourceintegrators
8+
9+
* Daniel Reis <dreis@opensourceintegrators.com>
10+
* Nikul Chaudhary <nchaudhary@opensourceintegrators.com>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../report_async

‎setup/report_async/setup.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)

0 commit comments

Comments
 (0)
Please sign in to comment.