From 8f0b5cefc520cf1988a51eb0b0a81b0c6f3999ee Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (Acsone)" Date: Fri, 16 May 2014 17:11:21 +0200 Subject: [PATCH] [FIX] Remove comment mismatch with prof parameter vs profile in the comment add a docstring on multi_statement_import --- account_statement_base_import/statement.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/account_statement_base_import/statement.py b/account_statement_base_import/statement.py index ba0ad7ea..b720ac54 100644 --- a/account_statement_base_import/statement.py +++ b/account_statement_base_import/statement.py @@ -140,7 +140,16 @@ class AccountStatementProfil(Model): def multi_statement_import(self, cr, uid, ids, profile_id, file_stream, ftype="csv", context=None): - prof_obj = self.pool.get("account.statement.profile") + """ + Create multiple bank statements from values given by the parser for the given + profile. + + :param int/long profile_id: ID of the profile used to import the file + :param filebuffer file_stream: binary of the providen file + :param char: ftype represent the file exstension (csv by default) + :return: list: list of ids of the created account.bank.statemĂȘnt + """ + prof_obj = self.pool.get('account.statement.profile') if not profile_id: raise osv.except_osv(_("No Profile!"), _("You must provide a valid profile to import a bank statement!")) @@ -153,7 +162,7 @@ class AccountStatementProfil(Model): res.append(statement_id) return res - def _statement_import(self, cr, uid, ids, prof, parser, file_stream, ftype="csv", context=None): + def _statement_import(self, cr, uid, ids, profile, parser, file_stream, ftype="csv", context=None): """ Create a bank statement with the given profile and parser. It will fullfill the bank statement with the values of the file providen, but will not complete data (like finding the partner, or