Merge lp:~akretion-team/banking-addons/account_statement_base_import_conversion_dict into lp:banking-addons/bank-statement-reconcile-70
Proposed by
Florian da Costa
Status: | Needs review |
---|---|
Proposed branch: | lp:~akretion-team/banking-addons/account_statement_base_import_conversion_dict |
Merge into: | lp:banking-addons/bank-statement-reconcile-70 |
Diff against target: |
56 lines (+11/-10) 2 files modified
account_statement_base_import/parser/file_parser.py (+3/-9) account_statement_base_import/parser/generic_file_parser.py (+8/-1) |
To merge this branch: | bzr merge lp:~akretion-team/banking-addons/account_statement_base_import_conversion_dict |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nicolas Bessi - Camptocamp (community) | Approve | ||
Pedro Manuel Baeza | code review | Approve | |
Guewen Baconnier @ Camptocamp | Needs Fixing | ||
Joël Grand-Guillaume @ camptocamp | code review, no tests | Needs Fixing | |
Sébastien BEAU - http://www.akretion.com | code review, no test | Approve | |
Virgil Dupras | Pending | ||
Review via email:
|
Description of the change
The conversion dict is displaced from the file_parser to the generic_parser in order to avoid the error of the validate function when creating a new parser which does not contain the 4 basc fields (ref, amount, date, label).
To post a comment you must log in.
Unmerged revisions
- 109. By Florian da Costa
-
[FIX] Replace conversion_dict by extra_fields
- 108. By Florian da Costa
-
[FIX] miss space after comma (PEP8)
- 107. By Florian da Costa
-
[FIX] Fix previous import
- 106. By Florian da Costa
-
[FIX] Import float_or_zero function in generic_parser (goes with the 2 previous commits)
- 105. By Florian da Costa
-
Remove useless code
- 104. By Florian da Costa
-
[FIX] fix init function definition in order it works with conversion_dict
- 103. By Florian da Costa
-
[FIX] conversion_dict is now created in the generic parser in order to allow other parsers not to use file with ref, label, date, and amount keys.
I approve this merge. bazaar. launchpad. net/~banking- addons- team/banking- addons/ bank-statement- reconcile- 70/revision/ 94#account_ statement_ base_import/ parser/ file_parser. py
Note the key "extra_fields" have been introduced here : http://
I thinks it's better to come back with the convertion_dict because the FileParser is an abstract Parser for file, and can be reuse in many case (Paypal, Atos, Paybox...). So the convert dict depend of the implementation of the Parser and can not be generic