Skip to content

Commit 0ee7f9e

Browse files
committed
Fix pre-commit
1 parent 54abd51 commit 0ee7f9e

File tree

9 files changed

+18
-14
lines changed

9 files changed

+18
-14
lines changed

base_export_async/__manifest__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
"website": "https://github.com/OCA/queue",
1111
"depends": ["web", "queue_job"],
1212
"data": [
13-
# added this additional rule as when the export happens from queue job module
14-
# there is no user is there, which was causing an issue when fetching res.currency
13+
# added this additional rule as when the export happens
14+
# from queue job module there is no user is there,
15+
# which was causing an issue when fetching res.currency
1516
"security/ir.model.access.csv",
1617
"security/ir_rule.xml",
1718
"data/config_parameter.xml",

base_export_async/models/delay_export.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ def _get_file_content(self, params):
6060
else:
6161
columns_headers = [val["label"].strip() for val in fields_name]
6262

63-
# Patch: ensure request.env is set with a valid uid before triggering ExportXlsxWriter
63+
# Patch:
64+
# ensure request.env is set with a valid uid before triggering ExportXlsxWriter
6465
if export_format != "csv":
6566
if not hasattr(request, "env") or request.env.uid is None:
6667
request.env = api.Environment(

base_export_async/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Arnaud Pineux (ACSONE SA/NV) authored the initial prototype.
2+
- Guewen Baconnier (Camptocamp)
3+
- Mitul Shah (TradeSolutions.Digital GmbH)

base_export_async/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Standard Export can be delayed in asynchronous jobs executed in the background and then send by email to the user.
1+
Standard Export can be delayed in asynchronous jobs executed in the
2+
background and then send by email to the user.

base_export_async/readme/USAGE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The user is presented with a new checkbox "Asynchronous export" in the
2+
export screen. When selected, the export is delayed in a background job.
3+
4+
The .csv or .xls file generated by the export will be sent by email to
5+
the user who execute the export.

base_export_async/readme/USAGE.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

base_export_async/static/src/js/list_controller.esm.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/** @odoo-module **/
22

3-
43
import {AlertDialog} from "@web/core/confirmation_dialog/confirmation_dialog";
54
import {ListController} from "@web/views/list/list_controller";
65
import {_t} from "@web/core/l10n/translation";

0 commit comments

Comments
 (0)