{ "info": { "author": "Akretion,Odoo Community Association (OCA)", "author_email": "support@odoo-community.org", "bugtrack_url": null, "classifiers": [ "Framework :: Odoo", "License :: OSI Approved :: GNU Affero General Public License v3", "Programming Language :: Python" ], "description": ".. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg\n :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n :alt: License: AGPL-3\n\n===================================\nAccount Invoice Import Invoice2data\n===================================\n\nThis module is an extension of the module *account_invoice_import*: it adds support for regular PDF invoices i.e. PDF invoice that don't have an embedded XML file. It uses the `invoice2data library `_ which takes care of extracting the text of the PDF invoice, find an existing invoice template and execute the invoice template to extract the useful information from the invoice.\n\nTo know the full story behind the development of this module, read this `blog post `_.\n\nInstallation\n============\n\nThis module requires the Python library *invoice2data* available on `Github `_.\n\nTo install the right version of the library, run:\n\n.. code::\n\n sudo pip install git+https://github.com/m3nu/invoice2data.git\n\nIn order to use a recent version of invoice2data on Odoo v8, you need an Odoo v8 dated after January 29th 2016, so that it contains `this fix `_ which fixes `this bug `_.\n\nThe invoice2data library requires the latest version of the *pdftotext* utility, which is not yet packaged in Debian/Ubuntu. So you should download it from `the FTP server of Foolabs `_ then uncompress it and copy the file *bin64/pdftotext* to */usr/local/bin*.\n\nIf you want the invoice2data library to fallback on OCR if the PDF doesn't contain text (only a very small minority of PDF invoices are image-based and require OCR), you should also install `Imagemagick `_ (to get the *convert* utility to convert PDF to TIFF) and `Tesseract OCR `_ :\n\n.. code::\n\n sudo apt-get install imagemagick tesseract-ocr\n\nIf you want to use custom invoice templates for the invoice2data lib (in addition to the templates provided by the invoice2data lib), you should add a line in your Odoo server configuration file such as:\n\n.. code::\n\n invoice2data_templates_dir = /opt/invoice2data_local_templates\n\nand store your invoice templates in YAML format (*.yml* extension) in the directory that you have configured above. If you add invoice tempates in this directory, you don't have to restart Odoo, they will be used automatically on the next invoice import.\n\nIf you want to use only your custom invoice templates and ignore the templates provided by the invoice2data lib, you should have in your Odoo server configuration file:\n\n.. code::\n\n invoice2data_templates_dir = /opt/invoice2data_local_templates\n invoice2data_exclude_built_in_templates = True\n\nFrench users should also install the module *l10n_fr_invoice_import* available in the `French localization `_, cf `this PR `_.\n\nConfiguration\n=============\n\nGo to the form view of the supplier and configure it with the following parameters:\n\n* *is a Company ?* is True\n* *Supplier* is True\n* the *TIN* (i.e. VAT number) is set (the VAT number is used by default when searching the supplier in the Odoo partner database)\n* in the *Accounting* tab, create an *Invoice Import Configuration*.\n\nFor the PDF invoice of your supplier that don't have an embedded XML file, you will have to create a `template file `_ in YAML format in the invoice2data Python library. It is quite easy to do ; if you are familiar with `regexp `_, it should not take more than 10 minutes for each supplier.\n\nHere are some hints to help you add a template for your supplier:\n\n* Take `Free SAS template file `_ as an example. You will find a sample PDF invoice for this supplier under invoice2data/test/pdfs/2015-07-02-invoice_free_fiber.pdf\n\n* Try to run the invoice2data library manually on the sample invoice of Free:\n\n.. code::\n\n % python -m invoice2data.main --debug invoice2data/test/pdfs/2015-07-02-invoice_free_fiber.pdf\n\nOn the output, you will get first the text of the PDF, then some debug info on the parsing of the invoice and the regexps, and, on the last line, you will have the dict that contain the result of the parsing.\n\n* if the VAT number of the supplier is present in the text of the PDF invoice, I think it's a good idea to use it as the keyword. It is a good practice to add 2 other keywoards: one for the language (for example, match on the word *Invoice* in the language of the invoice) and one for the currency, so as to match only the invoices of that supplier in this particular language and currency.\n\n* the list of *fields* should contain the following entries:\n\n * 'vat' with the VAT number of the supplier (if the VAT number of the supplier is not in the text of PDF file, add a 'partner_name' key, or, if the supplier is French and the module *l10n_fr_invoice_pdf_import* is installed, add a 'siren' key)\n * 'amount' ('amount' is the total amount with taxes)\n * 'amount_untaxed' or 'amount_tax' (one or the other, no need for both)\n * 'date': the date of the invoice\n * 'invoice_number'\n * 'date_due', if this information is available in the text of the PDF file.\n\nUsage\n=====\n\nRefer to the usage section of the module *account_invoice_import*.\n\n.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas\n :alt: Try me on Runbot\n :target: https://runbot.odoo-community.org/runbot/226/8.0\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues\n`_. In case of trouble, please\ncheck there if your issue has already been reported. If you spotted it first,\nhelp us smashing it by providing a detailed and welcomed feedback.\n\nCredits\n=======\n\nContributors\n------------\n\n* Alexis de Lattre \n\nMaintainer\n----------\n\n.. image:: https://odoo-community.org/logo.png\n :alt: Odoo Community Association\n :target: https://odoo-community.org\n\nThis module is maintained by the OCA.\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\nTo contribute to this module, please visit https://odoo-community.org.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.akretion.com", "keywords": "", "license": "AGPL-3", "maintainer": "", "maintainer_email": "", "name": "odoo8-addon-account-invoice-import-invoice2data", "package_url": "https://pypi.org/project/odoo8-addon-account-invoice-import-invoice2data/", "platform": "", "project_url": "https://pypi.org/project/odoo8-addon-account-invoice-import-invoice2data/", "project_urls": { "Homepage": "http://www.akretion.com" }, "release_url": "https://pypi.org/project/odoo8-addon-account-invoice-import-invoice2data/8.0.1.0.0.99.dev14/", "requires_dist": [ "invoice2data", "odoo8-addon-account-invoice-import", "odoo (<9.0a,>=8.0a)" ], "requires_python": "~=2.7", "summary": "Import supplier invoices using the invoice2data lib", "version": "8.0.1.0.0.99.dev14" }, "last_serial": 5085984, "releases": { "8.0.1.0.0.99.dev10": [ { "comment_text": "", "digests": { "md5": "8066bca8f13a5e7de6caae59ab1cf57e", "sha256": "bab207dcb686f9fdb21bb04f7e68275510b3832a6f8c963c69d259055e9caac7" }, "downloads": -1, "filename": "odoo8_addon_account_invoice_import_invoice2data-8.0.1.0.0.99.dev10-py2-none-any.whl", "has_sig": false, "md5_digest": "8066bca8f13a5e7de6caae59ab1cf57e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 134554, "upload_time": "2017-04-11T07:00:59", "url": "https://files.pythonhosted.org/packages/5d/75/b72d7c6c48be3fae0124c2a33cf9be9bba1aaddd38991900d16b26864dda/odoo8_addon_account_invoice_import_invoice2data-8.0.1.0.0.99.dev10-py2-none-any.whl" } ], "8.0.1.0.0.99.dev11": [ { "comment_text": "", "digests": { "md5": "f865180f8fe980ed980a0a5aa1bb9445", "sha256": "38b08734dfd2ea32d6081e1a39125e0585e18e54bc5242f6037fd3e881dc3374" }, "downloads": -1, "filename": "odoo8_addon_account_invoice_import_invoice2data-8.0.1.0.0.99.dev11-py2-none-any.whl", "has_sig": false, "md5_digest": "f865180f8fe980ed980a0a5aa1bb9445", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 134573, "upload_time": "2017-04-11T07:01:04", "url": "https://files.pythonhosted.org/packages/36/71/c21c6aabdaac6bad3be3fe9a3ef882f36c8966c74b6d2cd4b888d447af57/odoo8_addon_account_invoice_import_invoice2data-8.0.1.0.0.99.dev11-py2-none-any.whl" } ], "8.0.1.0.0.99.dev12": [ { "comment_text": "", "digests": { "md5": "e5e4be2dd0661ca9bac84ce46e24b218", "sha256": "edae56b56496f8b8ea2c70aef23b9e2d40ef9b05582cca76d4ab04ef58ea320b" }, "downloads": -1, "filename": "odoo8_addon_account_invoice_import_invoice2data-8.0.1.0.0.99.dev12-py2-none-any.whl", "has_sig": false, "md5_digest": "e5e4be2dd0661ca9bac84ce46e24b218", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 135644, "upload_time": "2017-04-11T07:01:10", "url": "https://files.pythonhosted.org/packages/74/d0/209ec04e6e43db1ebe04a279d9b2d74344d1d306a0a96c17892186e906dd/odoo8_addon_account_invoice_import_invoice2data-8.0.1.0.0.99.dev12-py2-none-any.whl" } ], "8.0.1.0.0.99.dev13": [ { "comment_text": "", "digests": { "md5": "8ce88dbe51ed91b5bd59b8c74933b2e5", "sha256": "44fe026309c5ea7ada3c1909a7bf4d327ad0754d044b2c30ce5e6c7fa54dfe68" }, "downloads": -1, "filename": "odoo8_addon_account_invoice_import_invoice2data-8.0.1.0.0.99.dev13-py2-none-any.whl", "has_sig": false, "md5_digest": "8ce88dbe51ed91b5bd59b8c74933b2e5", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 135764, "upload_time": "2017-04-11T07:01:16", "url": "https://files.pythonhosted.org/packages/2a/b5/50b7114476438edbd11c1d9530372f90a8c8b6a95abfbaa8fc4019dc6db6/odoo8_addon_account_invoice_import_invoice2data-8.0.1.0.0.99.dev13-py2-none-any.whl" } ], "8.0.1.0.0.99.dev14": [ { "comment_text": "", "digests": { "md5": "e706661b41e248f421ccb6b48c59ef31", "sha256": "2004be7dc11f8cbf4839f64d248b4d10786ae89a089e30c1ba1c24b50234c269" }, "downloads": -1, "filename": "odoo8_addon_account_invoice_import_invoice2data-8.0.1.0.0.99.dev14-py2-none-any.whl", "has_sig": false, "md5_digest": "e706661b41e248f421ccb6b48c59ef31", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 141700, "upload_time": "2019-04-03T05:57:29", "url": "https://files.pythonhosted.org/packages/b0/00/85fe61940424859d0c9984358f8d3b34eadd0f0c089cd8fe0075ee204b5b/odoo8_addon_account_invoice_import_invoice2data-8.0.1.0.0.99.dev14-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e706661b41e248f421ccb6b48c59ef31", "sha256": "2004be7dc11f8cbf4839f64d248b4d10786ae89a089e30c1ba1c24b50234c269" }, "downloads": -1, "filename": "odoo8_addon_account_invoice_import_invoice2data-8.0.1.0.0.99.dev14-py2-none-any.whl", "has_sig": false, "md5_digest": "e706661b41e248f421ccb6b48c59ef31", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": "~=2.7", "size": 141700, "upload_time": "2019-04-03T05:57:29", "url": "https://files.pythonhosted.org/packages/b0/00/85fe61940424859d0c9984358f8d3b34eadd0f0c089cd8fe0075ee204b5b/odoo8_addon_account_invoice_import_invoice2data-8.0.1.0.0.99.dev14-py2-none-any.whl" } ] }