← Back to team overview

banking-addons-team team mailing list archive

[Merge] lp:~pedro.baeza/banking-addons/6.1-bank-statement-reconcile-prof_parsing into lp:banking-addons/bank-statement-reconcile-6.1

 

Pedro Manuel Baeza has proposed merging lp:~pedro.baeza/banking-addons/6.1-bank-statement-reconcile-prof_parsing into lp:banking-addons/bank-statement-reconcile-6.1.

Commit message:
[IMP] account_statement_base_import: Allow to use profile data for customizing parsing

Requested reviews:
  Banking Addons Core Editors (banking-addons-team)

For more details, see:
https://code.launchpad.net/~pedro.baeza/banking-addons/6.1-bank-statement-reconcile-prof_parsing/+merge/214377

Simple improvement on the account_statement_base_import module to have profile data on parse method to use it to customize parsing with, for example, a parameter introduced on profiles.
-- 
https://code.launchpad.net/~pedro.baeza/banking-addons/6.1-bank-statement-reconcile-prof_parsing/+merge/214377
Your team Banking Addons Core Editors is requested to review the proposed merge of lp:~pedro.baeza/banking-addons/6.1-bank-statement-reconcile-prof_parsing into lp:banking-addons/bank-statement-reconcile-6.1.
=== modified file 'account_statement_base_import/statement.py'
--- account_statement_base_import/statement.py	2013-05-31 13:55:06 +0000
+++ account_statement_base_import/statement.py	2014-04-05 09:20:32 +0000
@@ -180,7 +180,7 @@
         prof = prof_obj.browse(cursor,uid,profile_id,context)
 
         parser = new_bank_statement_parser(prof.import_type, ftype=ftype)
-        result_row_list = parser.parse(file_stream)
+        result_row_list = parser.parse(file_stream, prof)
         # Check all key are present in account.bank.statement.line !!
         parsed_cols = parser.get_st_line_vals(result_row_list[0]).keys()
         for col in parsed_cols:


Follow ups