-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
8.0 import parsers #4
Conversation
Base module to write parsers for bank statement import files. | ||
|
||
The module account_bank_statement_import, backported from odoo 9.0, is | ||
exentended, so parsers developed might hope to be compatible with future |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/exentended/extended
Please do not merge for the moment. Rethinkink my solution to the problem of lots of Undefined Banks in the statement - now solved by supressing the creation - I think the automatic creation should rather be enhanced. This will make the import improvements be more compatible with the standard Odoo functionality of linking autocreated bank accounts to manually created partners on reconciliation. |
Bank accounts are created again. I created the module bank_account_search to make this more reliable. This module could also be used separate from the import functions. |
I tried to used the module bank_statement_parse_camt. After figuring out that my file was camt.052 and not camt.053 and doing a few hacks to make it work with camt.052, I was very surprised to see the changes to the data model of the bank_statement_line and to the view of the bank_statement_line. This is probably fine when you ONLY use camt format, but when you use CAMT together with other formats (for other bank accounts in other banks), then it's a problem to add some fields and hide others. It also seems that bank_statement_parse has a lot of generic method that should belong to account_bank_statement_import : are they all complementary ? It seems to me that "bank_statement_parse" is a sort of "framework" above the standard "account_bank_statement_import" framework... isn't it ? |
Hello Alexis, The bank_statement_parse is a framework above a framework in the sense Taking my conversion of the camt parser as a lead, one of our customers I tested importing ofx files, camt files (from several banks) and mt940 I found the method used to automatically create bank-accounts lacking in As for the extra fields in bank_statement_line, their rationale is as
Another aspect of my code is that when a bank account is automatically I realise there is a lot to be said about all of this and I really Thanks for looking at the code! Kind regards, Ronald Op 19-02-15 om 23:22 schreef Alexis de Lattre:
|
[ENH] Add framework to migrate 7.0 and before import parsers.
directories in odoo modules 'lib' or they will be shredded by the default .gitignore!
- Basic functionality to convert 7.0 and previous style imports is now functional.
- nl.po files added to all modules - Added CAMT.053 to the help text of the import wizard - Changed OpenERP to Odoo in view and translation files
No configuration menu for statement import. Show bank-accounts - having nothing to do with configuration - directly in Bank and Cash menu.
Separate general improvements in import framework from module that enables pre 8.0 style statement import parsers.
[FIX] Do away with bank_statement_parser, because it contains only a trivial amount of code, used in only a few parsers. The code itself is moved to new methods added to account.bank.statement and res.partner.bank respectively.
- Add transfer_type and data to account_bank_statement_line. [ENH] Module bank_statement_parse_camt: - If transaction is a cash transaction, use additional transaction details to fill message.
Undid the split in bank_statement_import_improve and bank_statement_parse modules, as parsing is integral to the improvements. For camt files make sure transfer_type (transaction code) and data are available in bank transaction. Added transfer_type to transaction details in statement view.
Bank accounts in imported statements will always be shown, even if not recognized in existing bank accounts. Also complete (re-)merging of bank_statement_parse and bank_statement_import_improve.
Hey @NL66278, thank you for your Pull Request. It looks like some users haven't signed our Contributor License Agreement, yet.
Appreciation of efforts, |
Please update the CLA database. I have sent in a signed CLA at least a year ago. |
@lmignon I looked into your code for bulk statement import and in itself it is very nice and clean. The problem is that is involves a rewrite of the base code (backported from master), splitting import_file and _import_file, that is very nice in itself too, but imcpmpatible with the idea of a backport. |
@NL66278 the issue was a missing link between you github login and the CLA. I've now fixed this. |
@NL66278 Thank you for the review. A PR has been submitted on master for a refactoring of the import framework and is under review. odoo/odoo#5863. The same changes are ready to be proposed on OCA once the one on master will be merged. (https://github.com/acsone/bank-statement-import/tree/8.0-refactor-new-api)
Regards, lmi |
I proposed an alternative PR building on the work done by @lmignon. I will propose to use the zipfile functions and search functionality for bank accounts from Laurent, which were anyway very similiar to what I had in this PR, except that thanx to the refactoring that Laurent did it is no longer needed to overrule the whole base import. |
I'd like to develop a new bank-statement importer for the Dutch ING creditcard statements (https://www.ingbanknetservice.nl). However, I'm not sure on which base to build it. Is there already an agreement on it? Or when can that be expected? |
@kvdb No agreement has been reached. But I think the mainstream is to go with the new api version of the import framework. Unfortunately that has yet to be accepted by Odoo SA for master. |
Should we close in this PR ? |
Found conflicts, needs rebasing. |
As the approach based on the new api has been accepted by the community, I close this PR. Even though it still contains some extra features, but I will provide these based on the new api as well. |
TODO: add more of the 7.0 functionality.
REMARK: settings have been removed here, as all the settings really apply to reconciliation, not to import.