Search 1.9 billion lines of Odoo code on GitHub

account_invoice_import

Author: Akretion,Odoo Community Association (OCA)
License: AGPL-3
Branch: 14-simple_pdf-fix-bad-string
Repository: akretion/edi
Dependencies: account, base_business_document_import, base_iban, and onchange_helper
Languages: Bourne Shell (16, 0.3%), HTML (388, 8.2%), PO File (1841, 38.8%), Python (1969, 41.5%), XML (429, 9.0%), and reStructuredText (103, 2.2%)
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-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-base_ubl-supp-info, 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

<h1 class="title">Account Invoice Import</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" 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.png" /></a> <a class="reference external" href="https://github.com/OCA/edi/tree/14.0/account_invoice_import"><img alt="OCA/edi" src="https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-account_invoice_import"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/226/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module has been started by lazy accounting users who hate enter they vendor bills manually in Odoo. Almost all companies have several vendor bills to enter regularly in the system from the same vendors: phone bill, electricity bill, Internet access, train tickets, etc. Most of these invoices are available as PDF. If we are able to automatically extract from the PDF the required information to enter the invoice as vendor bill in Odoo, then this module will create it automatically. 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 order to reliably extract the required information from the invoice, two international standards exists to describe an Invoice in XML:</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>Some e-invoice standards such as <a class="reference external" href="http://fnfe-mpe.org/factur-x/">Factur-X</a> propose to embed the XML description of the invoice inside the PDF invoice. Other people think that the futur is pure-XML invoices: a European initiative called <a class="reference external" href="https://peppol.eu/">PEPPOL</a> aims at setting up an open network to exchange e-invoices as UBL XML. We don't know yet which standard and which practice will prevail on electronic invoicing in the future, but we hope that lazy accountants won't have to manually encode their vendor bills in the near future. This module is here to help achieve this goal!</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 Factur-X/CII format, Odoo will extract the embedded XML file and parse it to create the invoice (requires the module <em>account_invoice_import_facturx</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> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li> <li><a class="reference internal" href="#usage" id="id2">Usage</a></li> <li><a class="reference internal" href="#known-issues-roadmap" id="id3">Known issues / Roadmap</a></li> <li><a class="reference internal" href="#bug-tracker" id="id4">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id5">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id6">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id7">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id8">Maintainers</a></li> </ul> </li> </ul> </div> <a name="configuration"></a> <h2><a class="toc-backref" href="#id1">Configuration</a></h2> <p>Go to the form view of the suppliers and configure it with the following parameters:</p> <ul class="simple"> <li>Individual/Company: <em>Company</em></li> <li>the <em>VAT Number</em> (this field is used by default when searching the supplier in the Odoo partner database)</li> <li>in the <em>Accounting</em> tab, create one or several <em>Invoice Import Configurations</em>.</li> </ul> <p>You can configure a mail gateway to import invoices from an email:</p> <ul class="simple"> <li>Go to the menu <em>Settings &gt; Technical &gt; Email &gt; Incoming Mail Servers</em> and setup the access (POP or IMAP) to the mailbox that will be used to receive the invoices,</li> <li>In the section <em>Actions to perform on incoming mails</em>, set the field <em>Create a new record</em> to <em>Wizard to import supplier invoices/refunds</em> (model <em>account.invoice.import</em>).</li> <li>If you are in a multi-company setup, you also have to go to the menu <em>Invoicing &gt; Configuration &gt; Settings</em>: in the section <em>Invoice Import</em>, enter the email of the mailbox used to import invoices in the field <em>Mail Gateway: Destination E-mail</em> (it will be used to import the invoice in the proper company).</li> </ul> <a name="usage"></a> <h2><a class="toc-backref" href="#id2">Usage</a></h2> <p>Go to the menu <em>Invoicing &gt; Vendors &gt; Import Vendor Bill</em> and follow the instructions of the wizard. You can also start the wizard from the <em>Accounting Dashboard</em>: on the purchase journal, click on the <em>Upload</em> button.</p> <p>This module also supports the scenario where you have a draft vendor bill (generated from a purchase order for instance) and you have to update it to comply with the real invoice sent by the vendor: on the form view of the draft vendor bill, click on the button <em>Import Invoice File</em> and follow the instructions of the wizard.</p> <p>If you have a large volume of invoices to import, you may be interested by the script <strong>mass_invoice_import.py</strong> which is available in the <em>scripts</em> subdirectory of this module. If you run:</p> <pre class="code"> <code class="code">./mass_invoice_import.py --help</code> </pre> <p>you will have detailed instructions on how to use the script.</p> <p>A particular use case of this script is to have a directory where all the invoices saved are automatically uploaded in Odoo. For that, have a look at the sample script <strong>inotify-sample.sh</strong> available in the same subdirectory. Edit this sample script to adapt it to your needs.</p> <a name="known-issues-roadmap"></a> <h2><a class="toc-backref" href="#id3">Known issues / Roadmap</a></h2> <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> </ul> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id4">Bug Tracker</a></h2> <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 <a class="reference external" href="https://github.com/OCA/edi/issues/new?body=module:%20account_invoice_import%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id5">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id6">Authors</a></h3> <ul class="simple"> <li>Akretion</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id7">Contributors</a></h3> <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> <li>Andrea Stirpe &lt;<a class="reference external" href="mailto:a.stirpe&#64;onestein.nl">a.stirpe&#64;onestein.nl</a>&gt;</li> <li>Nicolas JEUDY &lt;<a class="reference external" href="https://github.com/njeudy">https://github.com/njeudy</a>&gt;</li> <li>Yannick Vaucher &lt;<a class="reference external" href="mailto:yannick.vaucher&#64;camptocamp.com">yannick.vaucher&#64;camptocamp.com</a>&gt;</li> <li>Ronald Portier &lt;<a class="reference external" href="mailto:ronald&#64;therp.nl">ronald&#64;therp.nl</a>&gt;</li> <li>Simone Orsi &lt;<a class="reference external" href="mailto:simone.orsi&#64;camptocamp.com">simone.orsi&#64;camptocamp.com</a>&gt;</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id8">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <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>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>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p> <p><a class="reference external" href="https://github.com/alexis-via"><img alt="alexis-via" src="https://github.com/alexis-via.png?size=40px" /></a></p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/edi/tree/14.0/account_invoice_import">OCA/edi</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>