Skip to content

Commit 8250263

Browse files
[IMP] export_async_schedule: pre-commit auto fixes
1 parent 3366294 commit 8250263

16 files changed

Lines changed: 96 additions & 83 deletions

export_async_schedule/README.rst

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ Scheduled Asynchronous Export
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fqueue-lightgray.png?logo=github
20-
:target: https://github.com/OCA/queue/tree/14.0/export_async_schedule
20+
:target: https://github.com/OCA/queue/tree/17.0/export_async_schedule
2121
:alt: OCA/queue
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/queue-14-0/queue-14-0-export_async_schedule
23+
:target: https://translation.odoo-community.org/projects/queue-17-0/queue-17-0-export_async_schedule
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/queue&target_branch=14.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/queue&target_branch=17.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

31-
Add a new Automation feature: Scheduled Exports.
32-
Based on an export list and a domain, an email is sent every X
33-
hours/days/weeks/months to a selection of users.
31+
Add a new Automation feature: Scheduled Exports. Based on an export list
32+
and a domain, an email is sent every X hours/days/weeks/months to a
33+
selection of users.
3434

3535
**Table of contents**
3636

@@ -44,69 +44,72 @@ The configuration of a scheduled export is based on export lists.
4444

4545
To create an export list:
4646

47-
* open the list view of the model to export
48-
* select at least one record, and open "Action → Export"
49-
* select the fields to export and save using "Save fields list".
47+
- open the list view of the model to export
48+
- select at least one record, and open "Action → Export"
49+
- select the fields to export and save using "Save fields list".
5050

5151
To configure a scheduled export:
5252

53-
* open "Settings → Technical → Automation → Scheduled Exports"
54-
* create a scheduled export by filling the form
53+
- open "Settings → Technical → Automation → Scheduled Exports"
54+
- create a scheduled export by filling the form
5555

56-
A Scheduled Action named "Send Scheduled Exports" checks every hour
57-
if Scheduled Exports have to be executed.
56+
A Scheduled Action named "Send Scheduled Exports" checks every hour if
57+
Scheduled Exports have to be executed.
5858

5959
Usage
6060
=====
6161

62-
When the configuration of a Scheduled Export is done, their execution
63-
is automatic.
62+
When the configuration of a Scheduled Export is done, their execution is
63+
automatic.
6464

65-
Users will receive an email containing a link to download the exported file at
66-
the specified frequency. The attachments stay in the database for 7 days by
67-
default (it can be changed with the system parameter ``attachment.ttl``.
65+
Users will receive an email containing a link to download the exported
66+
file at the specified frequency. The attachments stay in the database
67+
for 7 days by default (it can be changed with the system parameter
68+
``attachment.ttl``.
6869

6970
Known issues / Roadmap
7071
======================
7172

72-
* We could configure a custom TTL (time-to-live) for each scheduled export
73+
- We could configure a custom TTL (time-to-live) for each scheduled
74+
export
7375

7476
Bug Tracker
7577
===========
7678

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

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

8486
Credits
8587
=======
8688

8789
Authors
88-
~~~~~~~
90+
-------
8991

9092
* Camptocamp
9193

9294
Contributors
93-
~~~~~~~~~~~~
95+
------------
9496

95-
* Guewen Baconnier (Camptocamp)
96-
* `Komit <https://komit-consulting.com>`_:
97+
- Guewen Baconnier (Camptocamp)
98+
- `Komit <https://komit-consulting.com>`__:
9799

98-
* Cuong Nguyen Mtm <cuong.nmtm@komit-consulting.com>
100+
- Cuong Nguyen Mtm <cuong.nmtm@komit-consulting.com>
99101

100102
Other credits
101-
~~~~~~~~~~~~~
103+
-------------
102104

103-
The migration of this module from 13.0 to 14.0 was financially supported by:
105+
The migration of this module from 13.0 to 14.0 was financially supported
106+
by:
104107

105108
- Scaleway SAS (https://www.scaleway.com/)
106109
- Komit (https://komit-consulting.com)
107110

108111
Maintainers
109-
~~~~~~~~~~~
112+
-----------
110113

111114
This module is maintained by the OCA.
112115

@@ -126,6 +129,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
126129

127130
|maintainer-guewen|
128131

129-
This module is part of the `OCA/queue <https://github.com/OCA/queue/tree/14.0/export_async_schedule>`_ project on GitHub.
132+
This module is part of the `OCA/queue <https://github.com/OCA/queue/tree/17.0/export_async_schedule>`_ project on GitHub.
130133

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

export_async_schedule/models/export_async_schedule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ExportAsyncSchedule(models.Model):
6565
def name_get(self):
6666
result = []
6767
for record in self:
68-
name = "{}: {}".format(record.model_id.name, record.ir_export_id.name)
68+
name = f"{record.model_id.name}: {record.ir_export_id.name}"
6969
result.append((record.id, name))
7070
return result
7171

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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
The configuration of a scheduled export is based on export lists.
2+
3+
To create an export list:
4+
5+
- open the list view of the model to export
6+
- select at least one record, and open "Action → Export"
7+
- select the fields to export and save using "Save fields list".
8+
9+
To configure a scheduled export:
10+
11+
- open "Settings → Technical → Automation → Scheduled Exports"
12+
- create a scheduled export by filling the form
13+
14+
A Scheduled Action named "Send Scheduled Exports" checks every hour if
15+
Scheduled Exports have to be executed.

export_async_schedule/readme/CONFIGURE.rst

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Guewen Baconnier (Camptocamp)
2+
- [Komit](https://komit-consulting.com):
3+
- Cuong Nguyen Mtm \<cuong.nmtm@komit-consulting.com\>

export_async_schedule/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
The migration of this module from 13.0 to 14.0 was financially supported
2+
by:
3+
4+
- Scaleway SAS (<https://www.scaleway.com/>)
5+
- Komit (<https://komit-consulting.com>)

export_async_schedule/readme/CREDITS.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Add a new Automation feature: Scheduled Exports. Based on an export list
2+
and a domain, an email is sent every X hours/days/weeks/months to a
3+
selection of users.

0 commit comments

Comments
 (0)