Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] account_invoice_import_invoice2data: Migration to 16.0 #1095

Open
wants to merge 58 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
afe513e
Extract regular PDF invoice import from account_invoice_import to a d…
alexis-via Aug 5, 2016
d2c054d
Adapt code to plug the module 'ovh_supplier_invoice'
alexis-via Aug 12, 2016
5dbde3e
Fix product matching
alexis-via Aug 12, 2016
6ec132e
FIX PEP8 and account_invoice_import_invoice2data unittests
alexis-via Aug 15, 2016
7721183
Better/cleaner pivot invoice dict format (no more IDs in the pivot in…
alexis-via Aug 18, 2016
29373d3
account_invoice_import_invoice2data: allow to use both a local templa…
alexis-via Sep 28, 2016
9ac0dd4
Transfer log level of Odoo to invoice2data lib
alexis-via Sep 28, 2016
251371b
variable initialization
adrienpeiffer Oct 4, 2016
167b862
Add support for extraction + matching on website
alexis-via Oct 4, 2016
624c460
8.0 Add support for partner bank matching on invoice update (#6)
Oct 18, 2016
2e30d2d
8.0 Use try/except when importing external libs (#8)
Oct 19, 2016
a601811
Make modules uninstallable
hbrunn Nov 12, 2016
dc9b006
migration of account_invoice_import_invoice2data and dependencies
hbrunn Dec 29, 2016
3bfc84b
Disable tests for invoice2data because it's too difficult to install …
alexis-via Jan 7, 2017
aa6af22
tests
hbrunn Jan 9, 2017
060976b
Prepare v10 branch
alexis-via Feb 15, 2017
13ebdf0
Port base_business_document_import* to v10
alexis-via Feb 19, 2017
5576a4e
Continue port of modules for v10.0, in particular sale_order_import_*…
alexis-via Feb 27, 2017
4686435
Update README of invoice2data
alexis-via Jun 1, 2017
8f967af
Update to work with latest version of invoice2data (#51)
Mar 11, 2018
c999294
Partner <-> Invoice import config : switch M2O <-> O2M
alexis-via Jan 18, 2018
6d652ae
Finalize the development account_invoice_download
alexis-via Aug 18, 2018
74144c0
account_invoice_import: add a mail gateway
alexis-via Aug 22, 2018
87000c0
Added translation using Weblate (Portuguese)
alvarorib Dec 15, 2018
bb6210d
Translated using Weblate (Portuguese)
pedrocs-exo Dec 16, 2018
8d5c823
join invoice_number and description if invoice2data returns a list
bguillot Mar 7, 2019
4782a76
Update invoice2data library reference link
matteotrubini Oct 8, 2019
d3c27c1
[MIG] account_invoice_import_invoice2data to v12 (from v10)
alexis-via Feb 13, 2020
6b96163
Added translation using Weblate (German)
tv-openbig Mar 16, 2020
d3d6672
Translated using Weblate (German)
marylla May 27, 2020
a1ed56c
Added translation using Weblate (Dutch)
bosd Dec 15, 2020
8ecb6cc
[MIG] account_invoice_import_invoice2data to v14.0
alexis-via Mar 5, 2021
257dfe9
account_invoice_import_invoice2data: black, isort and other pre-commi…
alexis-via Mar 5, 2021
f12c618
[IMP] account_invoice_import_invoice2data: Allow a field for company vat
etobella Jun 11, 2020
f8a1a26
Add excludes key in account_invoice_import_invoice2data and update it…
alexis-via Sep 2, 2021
1f6af2f
[FIX] account_invoice_import_simple_pdf: Remove exclude with invoice2…
etobella Nov 29, 2021
516aad5
[IMP] From travis to Github actions
etobella Nov 29, 2021
16fc1d3
Translated using Weblate (Dutch)
bosd Jan 27, 2022
31e3825
account_invoice_import_invoice2data: pin dateparser=1.1.1
simahawk Mar 18, 2022
1c20b51
account_invoice_import: improve handling of simple PDF invoices
alexis-via Jul 14, 2022
e16d6a8
[FIX] account_invoice_import_invoice2data: Fallback to tesseract
bosd Apr 23, 2022
c899278
[FIX] account_invoice_import_invoice2data: Tempfile Handling
bosd Feb 14, 2023
48cd6db
Added translation using Weblate (French)
klodr May 29, 2023
1514368
[FIX] remove pin version of dateparser
florian-dacosta Jan 24, 2023
0eda62b
[IMP] account_invoice_import_invoice2data: Buildout invoice dict
bosd Apr 27, 2022
9b22287
[IMP] account_invoice_import_invoice2data: Buildout dict, Improve doc…
bosd May 12, 2022
ded7023
[IMP] account_invoice_import_invoice2data: Add AzureInterior Test
bosd Mar 18, 2023
6180811
[IMP] account_invoice_import_invoice2data: refactor code + adopt module
bosd Oct 7, 2023
42cb0c9
[IMP] account_invoice_import_invoice2data: Refactor data cleanup
bosd Oct 13, 2023
bee2156
[IMP] account_invoice_import_invoice2data: support tax included lines
bosd Oct 11, 2023
db684c9
[IMP] account_invoice_import_invoice2data: test import errors
bosd Oct 14, 2023
ba66396
Translated using Weblate (Dutch)
bosd Nov 18, 2023
b1997e9
account_invoice_*: boost tests
simahawk Nov 21, 2023
97c8bd9
Translated using Weblate (Spanish)
Ivorra78 Nov 23, 2023
fb40a49
[FIX] account_invoice_import_invoice2data: improve handling of simple…
bosd Nov 25, 2023
abd5cf3
account_invoice_import_invoice2data: fix tests import
simahawk Dec 1, 2023
91da522
[IMP] account_invoice_import: add support for discount
alexis-via Jul 25, 2024
d75e0fe
[MIG] account_invoice_import_invoice2data: Migration to 16.0
V3st1g3 Dec 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
291 changes: 291 additions & 0 deletions account_invoice_import_invoice2data/README.rst

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions account_invoice_import_invoice2data/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizard
25 changes: 25 additions & 0 deletions account_invoice_import_invoice2data/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2015-2021 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Account Invoice Import Invoice2data",
"version": "16.0.1.0.0",
"category": "Accounting/Accounting",
"license": "AGPL-3",
"summary": "Import supplier invoices using the invoice2data lib",
"author": "Akretion,Odoo Community Association (OCA)",
"maintainers": ["alexis-via", "bosd"],
"website": "https://github.com/OCA/edi",
"depends": ["account_invoice_import"],
"external_dependencies": {
"python": [
"invoice2data",
"dateparser",
],
"deb": ["poppler-utils"],
},
"data": ["wizard/account_invoice_import_view.xml"],
"demo": ["demo/demo_data.xml"],
"installable": True,
}
75 changes: 75 additions & 0 deletions account_invoice_import_invoice2data/demo/demo_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<record id="internet_access" model="product.product">
<field name="name">Internet Access</field>
<field name="categ_id" ref="product.product_category_5" />
<field name="sale_ok" eval="False" />
<field name="purchase_ok" eval="True" />
<field name="type">service</field>
</record>

<record id="free" model="res.partner">
<field name="name">Free SAS</field>
<field name="is_company" eval="True" />
<field name="supplier_rank">1</field>
<field name="customer_rank">0</field>
<field name="street">8 rue de la Ville l’Évèque</field>
<field name="zip">75008</field>
<field name="city">Paris</field>
<field name="country_id" ref="base.fr" />
<field name="website">https://www.free.fr</field>
<field name="vat">FR60421938861</field>
</record>

<record id="free_import_config" model="account.invoice.import.config">
<field name="name">Free</field>
<field name="partner_id" ref="free" />
<field name="invoice_line_method">1line_static_product</field>
<field name="label">Fiber optic access at the main office</field>
<field name="static_product_id" ref="internet_access" />
</record>

<record id="product_beeswax_xl" model="product.product">
<field name="name">Beeswax XL</field>
<field name="description_sale">Acme beeswax</field>
<field name="default_code">17589684</field>
<field name="list_price">42</field>
<field name="type">consu</field>
<field name="uom_id" ref="uom.product_uom_kgm" />
<field name="uom_po_id" ref="uom.product_uom_kgm" />
</record>

<record id="olive_oil" model="product.product">
<field name="name">Olive Oil</field>
<field name="categ_id" ref="product.product_category_1" />
<field name="sale_ok" eval="True" />
<field name="purchase_ok" eval="True" />
<field name="type">consu</field>
<field name="uom_id" ref="uom.product_uom_litre" />
<field name="uom_po_id" ref="uom.product_uom_litre" />
<field name="barcode">987123</field>
</record>

<record id="luxury_truffles" model="product.product">
<field name="name">Luxury Truffles</field>
<field name="categ_id" ref="product.product_category_1" />
<field name="sale_ok" eval="True" />
<field name="purchase_ok" eval="True" />
<field name="type">consu</field>
<field name="uom_id" ref="uom.product_uom_gram" />
<field name="uom_po_id" ref="uom.product_uom_gram" />
<field name="default_code">LUX_TRF</field>
<!-- <field
name="supplier_taxes_id"
eval="[(3, 0, [ref('l10n_generic_coa.1_purchase_tax_template')])]"
/> -->
</record>

<record id="azure_import_config" model="account.invoice.import.config">
<field name="name">Azure Interior Multiline Auto Product</field>
<field name="partner_id" ref="base.res_partner_12" />
<field name="invoice_line_method">nline_auto_product</field>
</record>

</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_import_invoice2data
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: account_invoice_import_invoice2data
#: model_terms:ir.ui.view,arch_db:account_invoice_import_invoice2data.account_invoice_import_form
msgid "<b>regular PDF</b> file without any embedded XML file via the"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:product.product,description_sale:account_invoice_import_invoice2data.product_beeswax_xl
#: model:product.template,description_sale:account_invoice_import_invoice2data.product_beeswax_xl_product_template
msgid "Acme beeswax"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:product.product,name:account_invoice_import_invoice2data.product_beeswax_xl
#: model:product.template,name:account_invoice_import_invoice2data.product_beeswax_xl_product_template
msgid "Beeswax XL"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:ir.model.fields,field_description:account_invoice_import_invoice2data.field_account_invoice_import__display_name
msgid "Display Name"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:ir.model.fields,field_description:account_invoice_import_invoice2data.field_account_invoice_import__id
msgid "ID"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:product.product,name:account_invoice_import_invoice2data.internet_access
#: model:product.template,name:account_invoice_import_invoice2data.internet_access_product_template
msgid "Internet Access"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:ir.model.fields,field_description:account_invoice_import_invoice2data.field_account_invoice_import____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:product.product,name:account_invoice_import_invoice2data.luxury_truffles
#: model:product.template,name:account_invoice_import_invoice2data.luxury_truffles_product_template
msgid "Luxury Truffles"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:product.product,name:account_invoice_import_invoice2data.olive_oil
#: model:product.template,name:account_invoice_import_invoice2data.olive_oil_product_template
msgid "Olive Oil"
msgstr ""

#. module: account_invoice_import_invoice2data
#: code:addons/account_invoice_import_invoice2data/wizard/account_invoice_import.py:0
#: code:addons/account_invoice_import_invoice2data/wizard/account_invoice_import.py:0
#, python-format
msgid "PDF Invoice parsing failed. Error message: %s"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:product.product,uom_name:account_invoice_import_invoice2data.internet_access
#: model:product.template,uom_name:account_invoice_import_invoice2data.internet_access_product_template
msgid "Units"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:ir.model,name:account_invoice_import_invoice2data.model_account_invoice_import
msgid "Wizard to import supplier invoices/refunds"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model_terms:ir.ui.view,arch_db:account_invoice_import_invoice2data.account_invoice_import_form
msgid "invoice2data"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:product.product,uom_name:account_invoice_import_invoice2data.product_beeswax_xl
#: model:product.template,uom_name:account_invoice_import_invoice2data.product_beeswax_xl_product_template
msgid "kg"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model_terms:ir.ui.view,arch_db:account_invoice_import_invoice2data.account_invoice_import_form
msgid ""
"library (reads the text of the PDF and get the information). It will work "
"only if the invoice2data library has a template for the invoices of that "
"supplier."
msgstr ""
115 changes: 115 additions & 0 deletions account_invoice_import_invoice2data/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_import_invoice2data
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-05-27 09:19+0000\n"
"Last-Translator: Maria Sparenberg <[email protected]>\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10\n"

#. module: account_invoice_import_invoice2data
#: model_terms:ir.ui.view,arch_db:account_invoice_import_invoice2data.account_invoice_import_form
msgid "<b>regular PDF</b> file without any embedded XML file via the"
msgstr "<b>reguläre PDF</b> Datei ohne eingebettete XML Datei per"

#. module: account_invoice_import_invoice2data
#: model:product.product,description_sale:account_invoice_import_invoice2data.product_beeswax_xl
#: model:product.template,description_sale:account_invoice_import_invoice2data.product_beeswax_xl_product_template
msgid "Acme beeswax"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:product.product,name:account_invoice_import_invoice2data.product_beeswax_xl
#: model:product.template,name:account_invoice_import_invoice2data.product_beeswax_xl_product_template
msgid "Beeswax XL"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:ir.model.fields,field_description:account_invoice_import_invoice2data.field_account_invoice_import__display_name
msgid "Display Name"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:ir.model.fields,field_description:account_invoice_import_invoice2data.field_account_invoice_import__id
msgid "ID"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:product.product,name:account_invoice_import_invoice2data.internet_access
#: model:product.template,name:account_invoice_import_invoice2data.internet_access_product_template
msgid "Internet Access"
msgstr "Internet Zugang"

#. module: account_invoice_import_invoice2data
#: model:ir.model.fields,field_description:account_invoice_import_invoice2data.field_account_invoice_import____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:product.product,name:account_invoice_import_invoice2data.luxury_truffles
#: model:product.template,name:account_invoice_import_invoice2data.luxury_truffles_product_template
msgid "Luxury Truffles"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:product.product,name:account_invoice_import_invoice2data.olive_oil
#: model:product.template,name:account_invoice_import_invoice2data.olive_oil_product_template
msgid "Olive Oil"
msgstr ""

#. module: account_invoice_import_invoice2data
#: code:addons/account_invoice_import_invoice2data/wizard/account_invoice_import.py:0
#, python-format
msgid "PDF Invoice parsing failed. Error message: %s"
msgstr "PDF Rechnungsverarbeitung ist gescheitert. Fehler Meldung: %s"

#. module: account_invoice_import_invoice2data
#: model:product.product,uom_name:account_invoice_import_invoice2data.internet_access
#: model:product.template,uom_name:account_invoice_import_invoice2data.internet_access_product_template
msgid "Units"
msgstr ""

#. module: account_invoice_import_invoice2data
#: model:ir.model,name:account_invoice_import_invoice2data.model_account_invoice_import
msgid "Wizard to import supplier invoices/refunds"
msgstr "Assistent für den Import von Lieferantenrechnungen / -gutschriften"

#. module: account_invoice_import_invoice2data
#: model_terms:ir.ui.view,arch_db:account_invoice_import_invoice2data.account_invoice_import_form
msgid "invoice2data"
msgstr "invoice2data"

#. module: account_invoice_import_invoice2data
#: model:product.product,uom_name:account_invoice_import_invoice2data.product_beeswax_xl
#: model:product.template,uom_name:account_invoice_import_invoice2data.product_beeswax_xl_product_template
msgid "kg"
msgstr "kg"

#. module: account_invoice_import_invoice2data
#: model_terms:ir.ui.view,arch_db:account_invoice_import_invoice2data.account_invoice_import_form
msgid ""
"library (reads the text of the PDF and get the information). It will work "
"only if the invoice2data library has a template for the invoices of that "
"supplier."
msgstr ""
"Bibliothek (liest den Text der PDF und erhält die Informationen). Dies "
"funktioniert nur, wenn die Bibliothek invoice2data eine Vorlage für die "
"Rechnungen dieses Lieferanten enthält."

#, python-format
#~ msgid ""
#~ "This PDF invoice doesn't match a known template of the invoice2data lib."
#~ msgstr ""
#~ "Diese PDF Rechnung entspricht keinem Template der invoice2data Bibliothek."

#~ msgid "Unit(s)"
#~ msgstr "Einheit(en)"
Loading
Loading