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 1 commit
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
Prev Previous commit
Next Next commit
FIX PEP8 and account_invoice_import_invoice2data unittests
Update REAME and some interface strings about UBL being an ISO standard
Small code changes
  • Loading branch information
alexis-via authored and V3st1g3 committed Dec 11, 2024
commit 6ec132e8ebefb5325630d0e8f496a28ca324b91b
11 changes: 6 additions & 5 deletions account_invoice_import_invoice2data/tests/test_invoice_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,13 @@ def setUp(self):
internet_product.supplier_taxes_id = [(6, 0, [frtax.id])]

def test_import_free_invoice(self):
filename = 'invoice_free_fiber_201507.pdf'
f = file_open(
'account_invoice_import_invoice2data/tests/pdf/'
'invoice_free_fiber_201507.pdf',
'rb')
'account_invoice_import_invoice2data/tests/pdf/' + filename, 'rb')
pdf_file = f.read()
wiz = self.env['account.invoice.import'].create({
'invoice_file': base64.b64encode(pdf_file),
'invoice_filename': 'invoice_free_fiber_201507.pdf',
'invoice_filename': filename,
})
f.close()
wiz.import_invoice()
Expand Down Expand Up @@ -93,8 +92,10 @@ def test_import_free_invoice(self):
})
f.close()
action = wiz2.import_invoice()
self.assertEquals(
action['res_model'], 'account.invoice.import')
# Choose to update the existing invoice
wiz2.with_context(action['context']).update_invoice()
wiz2.update_invoice()
invoices = self.env['account.invoice'].search([
('state', '=', 'draft'),
('type', '=', 'in_invoice'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
# © 2015-2016 Akretion (Alexis de Lattre <[email protected]>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp import models, fields, api, tools, _
from openerp import models, api, tools, _
from openerp.exceptions import Warning as UserError
from datetime import datetime
import os
from tempfile import mkstemp
import logging
Expand Down