Commit Graph

38 Commits

Author SHA1 Message Date
Loïc Faure-Lacroix
2b73ef3b18 [11.0 BUGFIX] Pass bytes to Ofxparse
The ofx files have the correct charset inside their headers and
trying to convert the file to StringIO using a particular encoding
is subject to failures when the file isn't exactly an ascii file.

For example a file encoded with CP1252 with accents on letters like
é or è will not be parser as utf-8 and will fail to load.

Also since OfxParse is supposed to receive a file handle, it is
correctly reading the file header and choosing the appropriate charset
to read the rest of the file. For this reason, pass the bytes as a
ByteIO that doesn't care about the encoding.
2020-05-16 00:55:06 +02:00
oca-travis
99c6edad52 [UPD] Update account_bank_statement_import_ofx.pot 2020-05-16 00:55:06 +02:00
Nicolas JEUDY
8e22f27b5b [MIG] migrate account_bank_statement_import_ofx to V11
- add #136 patch
2020-05-16 00:55:06 +02:00
OCA Transbot
3ff0c6a997 OCA Transbot updated translations from Transifex 2020-05-16 00:55:06 +02:00
Alexis de Lattre
6be6936009 [FIX] crash in account_bank_statement_save_file 2020-05-16 00:55:06 +02:00
Alexis de Lattre
ca15dd9df9 Remove the auto-delete lines with 0 amount (feature now provided by the module account_bank_statement_import) 2020-05-16 00:55:06 +02:00
OCA Transbot
6e49209371 OCA Transbot updated translations from Transifex 2020-05-16 00:55:06 +02:00
Alexis de Lattre
ed2169e193 [10.0] OFX: fix start/end balance (#90)
Remove start/end dates in name of statement, because it's better to have it via 2 computed fields
2020-05-16 00:55:06 +02:00
OCA Transbot
4fb715d4bd OCA Transbot updated translations from Transifex 2020-05-16 00:55:06 +02:00
Alexis de Lattre
319fd35743 [MIG] account_bank_statement_import_ofx: Migration to 10.0
* Remove the code that matches partners, which is wrong and cannot work
* Better 'name' on bank statement
* Move from models directory to wizard
* Remove demo data to tests
* Use latest version of ofxparse from github
2020-05-16 00:55:06 +02:00
Sylvain LE GAL
f76a519575 [REF] OCA convention;
[ADD] patch ofx parser to make this module work with some european bank like credit cooperatif;
[IMP] wizard view to display OFX implementation;
2020-05-16 00:55:06 +02:00
Ilyas
c3d4a09911 Some changes for odoo 9.0 2020-05-16 00:55:06 +02:00
Pedro M. Baeza
b7a896ae14 [MIG] Rename manifest files 2020-05-16 00:55:06 +02:00
OCA Transbot
1e70f15888 OCA Transbot updated translations from Transifex 2020-05-16 00:55:06 +02:00
Stéphane Bidoul
4102071323 [UPD] prefix versions with 8.0 2020-05-16 00:55:06 +02:00
OCA Transbot
d8612434e1 OCA Transbot updated translations from Transifex 2020-05-16 00:55:06 +02:00
Ronald Portier (Therp BV)
faf8817c28 [ENH] Support both old and new style parse results. 2020-05-16 00:55:06 +02:00
Ronald Portier (Therp BV)
e3df1e435c [FIX] Copyright headers, vim line and manifest keys. 2020-05-16 00:55:06 +02:00
Ronald Portier (Therp BV)
2bded2cb99 [FIX] Test of ofx should not fail due to USD currency used. 2020-05-16 00:55:06 +02:00
Ronald Portier (Therp BV)
c062b76675 [ENH] Support multiple accounts/currencies.
Copy of changes proposed for master.
2020-05-16 00:55:06 +02:00
Nicolas Bessi
fc6ccdabc6 account_bank_statement_import_ofx is not automatically installed anymore 2020-05-16 00:55:06 +02:00
Laurent Mignon (ACSONE)
956ee4aac8 [ADD] i18n 2020-05-16 00:55:06 +02:00
Laurent Mignon
77f726d99d [IMP] Extract description to README
Add OCA as author,
PEP8
2020-05-16 00:55:06 +02:00
Laurent Mignon
cd3a5b6261 [IMP] Let the res_partner_bank.post_write create the journal if it doesn't exist 2020-05-16 00:55:06 +02:00
Laurent Mignon
648b66222c [IMP] Improve test coverage 2020-05-16 00:55:06 +02:00
Laurent Mignon (ACSONE)
1be4b48201 [IMP] use new API
Conflicts:
	account_bank_statement_import/account_bank_statement_import.py
2020-05-16 00:55:06 +02:00
Laurent Mignon
bb700f04ed [IMP] Backport from master at 04daefd2d101d90daf5782173b95f31f3bd9e1b6 2020-05-16 00:55:06 +02:00
Ronald Portier (Therp BV)
30c7058356 [FIX] Make flake and pylint happy.
No automatic creation of journals. Provide demo data to succesfully
run tests.
2020-05-16 00:55:06 +02:00
Alexis de Lattre
1356747b73 Enable allow_auto_create_journal in the automated tests 2020-05-16 00:55:06 +02:00
Alexis de Lattre
698ab99a3e Adapt start/end balance in the OFX test 2020-05-16 00:55:06 +02:00
Alexis de Lattre
8cc1a5229c New backport from odoo/master
Fix bug #5
2020-05-16 00:55:06 +02:00
Ronald Portier (Therp BV)
aa839c3cd0 [FIX] Forgot to commit some __Init__.py files. 2020-05-16 00:55:06 +02:00
Ronald Portier (Therp BV)
16bb27ee68 [FIX] Add noqa even to __init__.py files. 2020-05-16 00:55:06 +02:00
Ronald Portier (Therp BV)
47f407dbff [FIX] Apparently noqa tag should also be part of __openerp__.py files. 2020-05-16 00:55:06 +02:00
Ronald Portier (Therp BV)
221832587b [FIX] Reverse change of year 2013 to 2014 in test files, and add warning
to module descriptions that periods in 2013 should exist when using
    test-files.
2020-05-16 00:55:06 +02:00
Ronald Portier (Therp BV)
fe2e92ced6 [FIX] Add noqa tags to backported py files. 2020-05-16 00:55:06 +02:00
Ronald Portier (Therp BV)
3c4f08dad3 [FIX] Change year in test files to 2014
[FIX] Change reference to not existing menu
2020-05-16 00:55:06 +02:00
Ronald Portier (Therp BV)
c9d8911a92 [RFR] Move backported bank import modules from bank-payment
to bank-statement-import repository.
2020-05-16 00:55:06 +02:00