Skip to content

Commit

Permalink
Implement QR scan from PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
yvaucher committed Jun 25, 2020
1 parent c0c9f7b commit a1bd6e8
Show file tree
Hide file tree
Showing 13 changed files with 281 additions and 246 deletions.
1 change: 1 addition & 0 deletions l10n_ch_qr_bill_scan/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from . import wizard
from . import tools
3 changes: 0 additions & 3 deletions l10n_ch_qr_bill_scan/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
'website': 'https://github.com/OCA/l10n-switzerland',
'license': 'AGPL-3',
'depends': ['l10n_ch', 'account_invoice_import'],
'external_dependencies': {
'python': ['pyzbar'],
},
'data': [
"wizard/account_invoice_import_view.xml"
],
Expand Down
Binary file added l10n_ch_qr_bill_scan/data/CH-Cross_7mm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added l10n_ch_qr_bill_scan/data/QR-patch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion l10n_ch_qr_bill_scan/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@
Switzerland - QR bill Scan
==========================

Import Vendor bills with a scanner or with a pdf/png file.
Import Vendor bills with a PayEye scanner.

The QR bills are introduced in Switzerland since the 30th of June 2020.

Optionally you can also import Vendor bills directly from a PDF.
To enable this feature those additional dependencies must be
installed on your Odoo server:

pip install pyzbar,pdf2image,cv2,numpy


If you are looking to generate QR-bill, this feature is already available
in Odoo in the Switzerland localization module (`l10n_ch`).
Binary file removed l10n_ch_qr_bill_scan/tests/data/QR-bill-000111.pdf
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added l10n_ch_qr_bill_scan/tests/data/qr-bill.pdf
Binary file not shown.
Binary file removed l10n_ch_qr_bill_scan/tests/data/qrbill.png
Binary file not shown.
Loading

0 comments on commit a1bd6e8

Please sign in to comment.