Skip to content

Commit 8243a38

Browse files
[IMP] document_quick_access_folder_auto_classification: pre-commit auto fixes
1 parent a2a4758 commit 8243a38

File tree

14 files changed

+58
-55
lines changed

14 files changed

+58
-55
lines changed

document_quick_access_folder_auto_classification/README.rst

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,20 @@ Document Quick Access Folder Auto Classification
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%2Fserver--ux-lightgray.png?logo=github
20-
:target: https://github.com/OCA/server-ux/tree/16.0/document_quick_access_folder_auto_classification
20+
:target: https://github.com/OCA/server-ux/tree/18.0/document_quick_access_folder_auto_classification
2121
:alt: OCA/server-ux
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-document_quick_access_folder_auto_classification
23+
:target: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-document_quick_access_folder_auto_classification
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/server-ux&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-ux&target_branch=18.0
2727
:alt: Try me on Runboat
2828

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

31-
This module creates a job that scans all files from a storage and attaches them
32-
to its record. The record is found using the document quick access rules.
31+
This module creates a job that scans all files from a storage and
32+
attaches them to its record. The record is found using the document
33+
quick access rules.
3334

3435
**Table of contents**
3536

@@ -44,44 +45,43 @@ Configuration
4445
Usage
4546
=====
4647

47-
Users can drop the files on the folder (You may be able to configure your
48-
scanner to send the files directly).
49-
Then, they will be able to see the files attached to the expected record.
50-
If two records matches the rules, it will be attached to both (two QRs).
48+
Users can drop the files on the folder (You may be able to configure
49+
your scanner to send the files directly). Then, they will be able to see
50+
the files attached to the expected record. If two records matches the
51+
rules, it will be attached to both (two QRs).
5152

52-
If the file matches no rules, it will be attached as a non processed documents.
53-
Users should be able to assign which record to use
53+
If the file matches no rules, it will be attached as a non processed
54+
documents. Users should be able to assign which record to use
5455

55-
# Access `Documents to process`
56-
# Select a non processed document
57-
# Assign or reject the document. When assigning it, the record will be asked.
56+
# Access Documents to process # Select a non processed document # Assign
57+
or reject the document. When assigning it, the record will be asked.
5858

5959
Bug Tracker
6060
===========
6161

6262
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/issues>`_.
6363
In case of trouble, please check there if your issue has already been reported.
6464
If you spotted it first, help us to smash it by providing a detailed and welcomed
65-
`feedback <https://github.com/OCA/server-ux/issues/new?body=module:%20document_quick_access_folder_auto_classification%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
65+
`feedback <https://github.com/OCA/server-ux/issues/new?body=module:%20document_quick_access_folder_auto_classification%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
6666

6767
Do not contact contributors directly about support or help with technical issues.
6868

6969
Credits
7070
=======
7171

7272
Authors
73-
~~~~~~~
73+
-------
7474

7575
* Creu Blanca
7676

7777
Contributors
78-
~~~~~~~~~~~~
78+
------------
7979

80-
* Enric Tobella <[email protected]>
81-
* Foram Shah <[email protected]>
80+
- Enric Tobella <[email protected]>
81+
- Foram Shah <[email protected]>
8282

8383
Maintainers
84-
~~~~~~~~~~~
84+
-----------
8585

8686
This module is maintained by the OCA.
8787

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

102102
|maintainer-etobella|
103103

104-
This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/16.0/document_quick_access_folder_auto_classification>`_ project on GitHub.
104+
This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/18.0/document_quick_access_folder_auto_classification>`_ project on GitHub.
105105

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

document_quick_access_folder_auto_classification/components/document_quick_access_process.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
try:
1818
from pyzbar.pyzbar import ZBarSymbol, decode
19-
except (ImportError, IOError) as err:
19+
except (OSError, ImportError) as err:
2020
_logger.warning(err)
2121
try:
2222
import pdf2image
@@ -25,7 +25,7 @@
2525
PDFPageCountError,
2626
PDFSyntaxError,
2727
)
28-
except (ImportError, IOError) as err:
28+
except (OSError, ImportError) as err:
2929
_logger.warning(err)
3030

3131

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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
\# Create an storage on your system using the storage project from OCA

document_quick_access_folder_auto_classification/readme/CONFIGURE.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Enric Tobella \<[email protected]\>
2+
- Foram Shah \<[email protected]\>

document_quick_access_folder_auto_classification/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This module creates a job that scans all files from a storage and
2+
attaches them to its record. The record is found using the document
3+
quick access rules.

document_quick_access_folder_auto_classification/readme/DESCRIPTION.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Users can drop the files on the folder (You may be able to configure
2+
your scanner to send the files directly). Then, they will be able to see
3+
the files attached to the expected record. If two records matches the
4+
rules, it will be attached to both (two QRs).
5+
6+
If the file matches no rules, it will be attached as a non processed
7+
documents. Users should be able to assign which record to use
8+
9+
\# Access Documents to process \# Select a non processed document \#
10+
Assign or reject the document. When assigning it, the record will be
11+
asked.

0 commit comments

Comments
 (0)