Improvement on the account_statement_base_import module to have profile data stored on a variable across parsers methods, in order to be used to customize, for example, parsing with a parameter introduced on profiles.

Dependent modules have been changed accordingly.
This commit is contained in:
Pedro M. Baeza
2014-07-02 13:37:36 +02:00
parent e85ef765fc
commit c45e47d54e
4 changed files with 16 additions and 21 deletions

View File

@@ -153,7 +153,7 @@ class AccountStatementProfil(Model):
_("You must provide a valid profile to import a bank statement!"))
prof = prof_obj.browse(cr, uid, profile_id, context=context)
parser = new_bank_statement_parser(prof.import_type, ftype=ftype)
parser = new_bank_statement_parser(prof, ftype=ftype)
res = []
for result_row_list in parser.parse(file_stream):
statement_id = self._statement_import(cr, uid, ids, prof, parser,