Search 1.9 billion lines of Odoo code on GitHub

account_invoice_import

Author: Akretion,Odoo Community Association (OCA)
License: AGPL-3
Branch: 8-base_ubl-supp-info
Repository: akretion/edi
Dependencies: account, base_business_document_import, base_iban, and decimal_precision
Languages: PO File (823, 43.0%), Python (870, 45.5%), XML (170, 8.9%), and reStructuredText (50, 2.6%)
Other branches: 10-cii-schematron-comply, 10-december-work, 10-download, 10-download-improve, 10-factur-x, 10-factur-x-0.2, 10-facturx-1.3, 10-facturx-extended, 10-facturx-logos, 10-facturx-multi-level, 10-fix-empty-partner-name, 10-fix-factur-x-import, 10-fix-latest-invoice2data, 10-fix-model-name, 10-fix-ovh, 10-fix-warning, 10-improve-again_and_again, 10-invoice-ubl-facturx-compat, 10-invoice_import_create_bank_account_option, 10-migrate, 10-payment-id, 10-restore-full-tests, 10.0-add-DespatchAdvice-import-lma, 10.0_join_invoice_number_list, 11-backport-facturx, 12-account_invoice_import_simple_pdf, 12-account_invoice_import_simple_pdf_pymupdf, 12-despatch, 12-fix-facturx-generation, 12-fx-generate, 12-import-facturx, 12-import-wiz, 12-mig-invoice2data, 12.0-mig-base_business_document_import_stock, 12.0-mig-despatch_advice_import, 12.0-mig-supplier_inventory_import_ubl, 14-account_invoice_import-empty, 14-account_invoice_import-journal, 14-account_invoice_import_simple_pdf, 14-base_facturx, 14-business_doc_import_xmlid, 14-fix-account_invoice_import, 14-mig-account_invoice_facturx, 14-mig-account_invoice_import, 14-mig-account_invoice_import_facturx, 14-mig-account_invoice_import_invoice2data, 14-mig-account_invoice_import_ubl, 14-mig-doc_import_phone, 14-mig-download_ovh, 14-mig-facturx_py3o, 14-mig-invoice_download, 14-mig-purchase_order_ubl_py3o, 14-psoft-invoice2data-vat_lines, 14-simple_pdf-fix-bad-string, 14-simple_pdf-fixes, 14-simple_pdf-match_partner_other_fields, 14-simple_pdf-quote_thousand_sep, 14-unpin-dateparser-version, 14.0, 14.0-add-chunk-processing, 14.0-add-the-possibility-to-customize-buyer-order-ref, 14.0-fix-hs_code, 14.0-mig-account_invoice_ubl_py3o, 14.0-webservice-improve, 15-mig-account_invoice_import, 8-ackn, 8-bakso-fix, 8-base-ubl-cpny-view, 8-business_doc_import_improve, 8-customer-ref, 8-fix-before-prod, 8-fix-lint, 8-fix-purchase-ubl, 8-invoice-import-config-update, 8-requested-deliv, 8-small_update, 8-ubl-cii-improve, 8-upd-supinfo-with-barcode, 8.0, 8.0-order-improvement, 8last-minute-fix-before-demo, 8odoo-experience-improvements, and 8try-except
Other repositories: AfroMonkey/l10n_cr, AizenL/edi, BT-aestebanez/edi, Billolha/edi, Bubbles-IT/edi, CRLibre/fe-hacienda-cr-odoo, Callino/edi, Change2improve/edi, D4N/edi, Develoman/edi, ERPLibre/edi, EssentNovaTeam/edi, ForgeFlow/edi, Gabinete-Digital/edi, Ingeos/edi, JayVora-SerpentCS/edi, MathBenTech/edi, NeatNerdPrime/edi, Noviat/edi, OCA-MUK/edi, OCA/edi, ORETEK/edi, Odoo-10-test/l10n_cr, PlanetaTIC/edi, SSISoftware/edi, SanteLibre/edi, SeuMarco/edi, SimoRubi/edi, SimoneVagile/edi, Stargue/edi, TDu/edi, Tecnativa/edi, Ufano/l10n_cr, VisiionSolucionesTecnologicas/edi, aacceess75/edi, aaltinisik/edi, abihedia/edi-1, acordobag/fe-hacienda-cr-odoo, acsone/account-invoicing, acsone/edi, adolfoeliazat/edi, akretion/account-invoicing, akretion/purchase-workflow, akurey/l10n_cr, alejofdezm/fe-hacienda-cr-odoo, algolo/l10n_cr, amendoncabh/edi, anhvu-sg/edi, anodino-dev/edi, antoinecln/edi, apachesep/edi, apetbiz/edi, ateneolab/fe-hacienda-cr-odoo, aurestic/edi, bealdav/edi, bellyfat/edi, brain-tec/edi, brocoloco/l10n_cr, bvkl/edi, camptocamp/edi, charlit02390/l10n_cr, crece365/edi, cubicltd/odoo-OCA-edi, dafeza/l10n_cr, dalhyncarrillo/l10n_cr, daramousk/edi, decodio-applications/edi, diagramsoftware/edi, edi-sprint/edi, eguane/edi, elego/edi, etobella/edi, exosoftware/oca-edi, feketemihai/edi, flotho/edi, freighttrust/edi-1, fss-solutions/fe-hacienda-cr-odoo, geocascantea/l10n_cr, gfcapalbo/edi, gurneyalex/edi, haroldtamo/edi, hbrunn/edi, hinfo506/l10n_cr, initOS/edi, inoio/oca-edi, invitu/edi, jason156/edi, jaullo/l10n_cr, joytao-zhu/edi, kbentaleb/edi, legalsylvain/edi, lideritjnma/edi, llamasfSpn/edi, lmoram/l10n_cr, makeplerc/fe-hacienda-cr-odoo, maljac/edi, mjadily/edi, mohamed-helmy/edi, muguli22/edi, myceliandre/edi, nehemiascr/fe-hacienda-cr-odoo, njeudy/edi, onesteinbv/edi, open-net-sarl/edi, open-synergy/edi, open2bizz/edi, pasgou/edi, pscloud/edi, rconjour/edi, redcor/edi, richar-osse/edi, rousseldenis/edi, rubdos/edi, sanube/edi, saxomanu/edi, sbejaoui/edi, sebalix/edi, shine-it/edi, simahawk/edi, smkerz/edi, ssisoftwaresolutions/edi, steingabelgaard/edi, sunflowerit/edi, tarteo/edi, tegin/edi, tirma-sa/edi, vrenaville/edi, westlyou/edi, yogesh-serpentcs/edi, yucer/edi, and yvaucher/edi

<a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.svg"> </a> <a name="account-invoice-import"></a> <h2>Account Invoice Import</h2> <p>This module has been started by lazy accounting users who hate enter they supplier invoices manually in Odoo. Almost all companies have several supplier invoices to enter regularly in the system from the same suppliers: phone bill, electricity bill, Internet access, train tickets, etc. Most of these invoices are available as PDF. We dream that we would be able to automatically extract from the PDF the required information to enter the invoice as supplier invoice in Odoo. To know the full story behind the development of this module, read this <a class="reference external" href="http://www.akretion.com/blog/akretions-christmas-present-for-the-odoo-community">blog post</a>.</p> <p>In the future, we believe we will have structured information embedded inside the metadata of PDF invoices. There are 2 main standards for electronic invoicing:</p> <ul class="simple"> <li><a class="reference external" href="http://tfig.unece.org/contents/cross-industry-invoice-cii.htm">CII</a> (Cross-Industry Invoice) developped by <a class="reference external" href="http://www.unece.org/cefact">UN/CEFACT</a> (United Nations Centre for Trade Facilitation and Electronic Business),</li> <li><a class="reference external" href="http://ubl.xml.org/">UBL</a> (Universal Business Language) which is an ISO standard (<a class="reference external" href="http://www.iso.org/iso/catalogue_detail.htm?csnumber=66370">ISO/IEC 19845</a>) developped by <a class="reference external" href="https://www.oasis-open.org/">OASIS</a> (Organization for the Advancement of Structured Information Standards).</li> </ul> <p>For example, there is already a standard in Germany called <a class="reference external" href="http://www.pdflib.com/knowledge-base/pdfa/zugferd-invoices/">ZUGFeRD</a> which is based on CII.</p> <p>This module doesn't do anything useful by itself ; it requires other modules to work: each modules adds a specific invoice format.</p> <p>Here is how the module works:</p> <ul class="simple"> <li>the user starts a wizard and uploads the PDF or XML invoice,</li> <li>if it is an XML file, Odoo will parse it to create the invoice (requires additional modules for specific XML formats, such as the module <em>account_invoice_import_ubl</em> for the UBL format),</li> <li>if it is a PDF file with an embedded XML file in ZUGFeRD/CII format, Odoo will extract the embedded XML file and parse it to create the invoice (requires the module <em>account_invoice_import_zugferd</em>),</li> <li>otherwise, Odoo will use the <em>invoice2data</em> Python library to try to interpret the text of the PDF (requires the module <em>account_invoice_import_invoice2data</em>),</li> <li>if there is already some draft supplier invoice for this supplier, Odoo will propose to select one to update or create a new draft invoice,</li> <li>otherwise, Odoo will directly create a new draft supplier invoice and attach the PDF to it.</li> </ul> <p>This module also works with supplier refunds.</p> <a name="configuration"></a> <h3>Configuration</h3> <p>Go to the form view of the suppliers and configure it with the following parameters:</p> <ul class="simple"> <li><em>is a Company ?</em> is True</li> <li><em>Supplier</em> is True</li> <li>the <em>TIN</em> (i.e. VAT number) is set (the VAT number is used by default when searching the supplier in the Odoo partner database)</li> <li>in the <em>Accounting</em> tab, create an <em>Invoice Import Configuration</em>.</li> </ul> <a name="usage"></a> <h3>Usage</h3> <p>To use this module, go to the menu <em>Accounting &gt; Suppliers &gt; Import Invoices</em> and upload a PDF or XML invoice of your supplier.</p> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/226/8.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a> <a name="known-issues-roadmap"></a> <h3>Known issues / Roadmap</h3> <ul class="simple"> <li>Remove dependency on <em>base_iban</em> and develop a separate glue module between this module and <em>base_iban</em></li> <li>Enhance the update of an existing invoice by analysing the lines (lines are only available when the invoice has an embedded XML file)</li> <li>Add a mail gateway to be able to forward the emails that we receive with PDF invoices to a dedicated address ; the gateway would detach the PDF invoice from the email and create the draft supplier invoice in Odoo.</li> </ul> <a name="bug-tracker"></a> <h3>Bug Tracker</h3> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/edi/issues">GitHub Issues</a>. 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.</p> <a name="credits"></a> <h3>Credits</h3> <a name="contributors"></a> <h4>Contributors</h4> <ul class="simple"> <li>Alexis de Lattre &lt;<a class="reference external" href="mailto:alexis.delattre&#64;akretion.com">alexis.delattre&#64;akretion.com</a>&gt;</li> </ul> <a name="maintainer"></a> <h4>Maintainer</h4> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>This module is maintained by the OCA.</p> <p>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.</p> <p>To contribute to this module, please visit <a class="reference external" href="https://odoo-community.org">https://odoo-community.org</a>.</p>