Skip to content

Commit

Permalink
[13.0][ADD] l10n_ch_qr_bill_scan
Browse files Browse the repository at this point in the history
A new module to scan QR-bill or to import PDF files
  • Loading branch information
yvaucher committed Jun 23, 2020
1 parent fbf2035 commit 3fad455
Show file tree
Hide file tree
Showing 12 changed files with 645 additions and 0 deletions.
55 changes: 55 additions & 0 deletions l10n_ch_qr_bill_scan/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

==========================
Switzerland - QR bill Scan
==========================

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


Usage
=====

Launch wizard XY

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/125/10.0


Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/
l10n-switzerland/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here <https://github.com/OCA/
l10n-switzerland/issues/new?body=module:%20
l10n_ch_base_bank%0Aversion:%20
13.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

Contributors
------------

* Yannick Vaucher <[email protected]>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.
1 change: 1 addition & 0 deletions l10n_ch_qr_bill_scan/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizard
21 changes: 21 additions & 0 deletions l10n_ch_qr_bill_scan/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
'name': 'Switzerland - QR-bill scan',
'summary': 'Scan QR-bill to create vendor bills',
'version': '13.0.1.0.0',
'author': "Camptocamp,Odoo Community Association (OCA)",
'category': 'Localization',
'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"
],
'auto_install': False,
'installable': True,
}
15 changes: 15 additions & 0 deletions l10n_ch_qr_bill_scan/models/business_document_import.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2020 Camptocamp
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models


class BusinessDocumentImport(models.AbstractModel):
_name = "business.document.import"
_description = "Common methods to import business documents"

@api.model
def _hook_match_partner(
self, partner_dict, chatter_msg, domain, partner_type_label
):
# TODO search by iban
return False
55 changes: 55 additions & 0 deletions l10n_ch_qr_bill_scan/readme/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

==========================
Switzerland - QR bill Scan
==========================

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


Usage
=====

Launch wizard XY

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/125/10.0


Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/
l10n-switzerland/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here <https://github.com/OCA/
l10n-switzerland/issues/new?body=module:%20
l10n_ch_base_bank%0Aversion:%20
13.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

Contributors
------------

* Yannick Vaucher <[email protected]>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.
1 change: 1 addition & 0 deletions l10n_ch_qr_bill_scan/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import test_scan_qrbill
Binary file not shown.
Binary file added l10n_ch_qr_bill_scan/tests/data/qrbill.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3fad455

Please sign in to comment.