mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] Remove comment mismatch with prof parameter vs profile in the comment
add a docstring on multi_statement_import
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user