Skip to content

Commit 3faab6c

Browse files
[IMP] base_export_async: pre-commit auto fixes
1 parent 5d9c86c commit 3faab6c

9 files changed

Lines changed: 48 additions & 55 deletions

File tree

base_export_async/README.rst

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.. image:: https://odoo-community.org/readme-banner-image
2-
:target: https://odoo-community.org/get-involved?utm_source=readme
3-
:alt: Odoo Community Association
4-
51
=================
62
Base Export Async
73
=================
@@ -17,22 +13,23 @@ Base Export Async
1713
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1814
:target: https://odoo-community.org/page/development-status
1915
:alt: Beta
20-
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
2117
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2218
:alt: License: AGPL-3
2319
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fqueue-lightgray.png?logo=github
24-
:target: https://github.com/OCA/queue/tree/16.0/base_export_async
20+
:target: https://github.com/OCA/queue/tree/17.0/base_export_async
2521
:alt: OCA/queue
2622
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/queue-16-0/queue-16-0-base_export_async
23+
:target: https://translation.odoo-community.org/projects/queue-17-0/queue-17-0-base_export_async
2824
:alt: Translate me on Weblate
2925
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/queue&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/queue&target_branch=17.0
3127
:alt: Try me on Runboat
3228

3329
|badge1| |badge2| |badge3| |badge4| |badge5|
3430

35-
Standard Export can be delayed in asynchronous jobs executed in the background and then send by email to the user.
31+
Standard Export can be delayed in asynchronous jobs executed in the
32+
background and then send by email to the user.
3633

3734
**Table of contents**
3835

@@ -42,39 +39,38 @@ Standard Export can be delayed in asynchronous jobs executed in the background a
4239
Usage
4340
=====
4441

45-
The user is presented with a new checkbox "Asynchronous export"
46-
in the export screen. When selected, the export is delayed in a
47-
background job.
42+
The user is presented with a new checkbox "Asynchronous export" in the
43+
export screen. When selected, the export is delayed in a background job.
4844

49-
The .csv or .xls file generated by the export will be sent by email
50-
to the user who execute the export.
45+
The .csv or .xls file generated by the export will be sent by email to
46+
the user who execute the export.
5147

5248
Bug Tracker
5349
===========
5450

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

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

6258
Credits
6359
=======
6460

6561
Authors
66-
~~~~~~~
62+
-------
6763

6864
* ACSONE SA/NV
6965

7066
Contributors
71-
~~~~~~~~~~~~
67+
------------
7268

73-
* Arnaud Pineux (ACSONE SA/NV) authored the initial prototype.
74-
* Guewen Baconnier (Camptocamp)
69+
- Arnaud Pineux (ACSONE SA/NV) authored the initial prototype.
70+
- Guewen Baconnier (Camptocamp)
7571

7672
Maintainers
77-
~~~~~~~~~~~
73+
-----------
7874

7975
This module is maintained by the OCA.
8076

@@ -86,6 +82,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
8682
mission is to support the collaborative development of Odoo features and
8783
promote its widespread use.
8884

89-
This module is part of the `OCA/queue <https://github.com/OCA/queue/tree/16.0/base_export_async>`_ project on GitHub.
85+
This module is part of the `OCA/queue <https://github.com/OCA/queue/tree/17.0/base_export_async>`_ project on GitHub.
9086

9187
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

base_export_async/models/delay_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def export(self, params):
8888

8989
export_record = self.sudo().create({"user_ids": [(6, 0, users.ids)]})
9090

91-
name = "{}.{}".format(model_name, export_format)
91+
name = f"{model_name}.{export_format}"
9292
attachment = (
9393
self.env["ir.attachment"]
9494
.sudo()

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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Arnaud Pineux (ACSONE SA/NV) authored the initial prototype.
2+
- Guewen Baconnier (Camptocamp)

base_export_async/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 2 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/description/index.html

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>README.rst</title>
6+
<title>Base Export Async</title>
77
<style type="text/css">
88

99
/*
@@ -360,22 +360,18 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document">
363+
<div class="document" id="base-export-async">
364+
<h1 class="title">Base Export Async</h1>
364365

365-
366-
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367-
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368-
</a>
369-
<div class="section" id="base-export-async">
370-
<h1>Base Export Async</h1>
371366
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
372367
!! This file is generated by oca-gen-addon-readme !!
373368
!! changes will be overwritten. !!
374369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375370
!! source digest: sha256:da52a05130a89cd0000a39c9dd6315821387de2c310f9cf7cc1f7e6e8541fe55
376371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/queue/tree/16.0/base_export_async"><img alt="OCA/queue" src="https://img.shields.io/badge/github-OCA%2Fqueue-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/queue-16-0/queue-16-0-base_export_async"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/queue&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378-
<p>Standard Export can be delayed in asynchronous jobs executed in the background and then send by email to the user.</p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/queue/tree/17.0/base_export_async"><img alt="OCA/queue" src="https://img.shields.io/badge/github-OCA%2Fqueue-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/queue-17-0/queue-17-0-base_export_async"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/queue&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373+
<p>Standard Export can be delayed in asynchronous jobs executed in the
374+
background and then send by email to the user.</p>
379375
<p><strong>Table of contents</strong></p>
380376
<div class="contents local topic" id="contents">
381377
<ul class="simple">
@@ -390,50 +386,48 @@ <h1>Base Export Async</h1>
390386
</ul>
391387
</div>
392388
<div class="section" id="usage">
393-
<h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
394-
<p>The user is presented with a new checkbox “Asynchronous export”
395-
in the export screen. When selected, the export is delayed in a
396-
background job.</p>
397-
<p>The .csv or .xls file generated by the export will be sent by email
398-
to the user who execute the export.</p>
389+
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
390+
<p>The user is presented with a new checkbox “Asynchronous export” in the
391+
export screen. When selected, the export is delayed in a background job.</p>
392+
<p>The .csv or .xls file generated by the export will be sent by email to
393+
the user who execute the export.</p>
399394
</div>
400395
<div class="section" id="bug-tracker">
401-
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
396+
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
402397
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/queue/issues">GitHub Issues</a>.
403398
In case of trouble, please check there if your issue has already been reported.
404399
If you spotted it first, help us to smash it by providing a detailed and welcomed
405-
<a class="reference external" href="https://github.com/OCA/queue/issues/new?body=module:%20base_export_async%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
400+
<a class="reference external" href="https://github.com/OCA/queue/issues/new?body=module:%20base_export_async%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
406401
<p>Do not contact contributors directly about support or help with technical issues.</p>
407402
</div>
408403
<div class="section" id="credits">
409-
<h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
404+
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
410405
<div class="section" id="authors">
411-
<h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
406+
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
412407
<ul class="simple">
413408
<li>ACSONE SA/NV</li>
414409
</ul>
415410
</div>
416411
<div class="section" id="contributors">
417-
<h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
412+
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
418413
<ul class="simple">
419414
<li>Arnaud Pineux (ACSONE SA/NV) authored the initial prototype.</li>
420415
<li>Guewen Baconnier (Camptocamp)</li>
421416
</ul>
422417
</div>
423418
<div class="section" id="maintainers">
424-
<h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
419+
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
425420
<p>This module is maintained by the OCA.</p>
426421
<a class="reference external image-reference" href="https://odoo-community.org">
427422
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
428423
</a>
429424
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
430425
mission is to support the collaborative development of Odoo features and
431426
promote its widespread use.</p>
432-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/queue/tree/16.0/base_export_async">OCA/queue</a> project on GitHub.</p>
427+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/queue/tree/17.0/base_export_async">OCA/queue</a> project on GitHub.</p>
433428
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
434429
</div>
435430
</div>
436431
</div>
437-
</div>
438432
</body>
439433
</html>

0 commit comments

Comments
 (0)