mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[IMP] Give the possibility to parse and import multiple statments
This commit is contained in:
@@ -99,7 +99,7 @@ class CreditPartnerStatementImporter(orm.TransientModel):
|
||||
ftype = self._check_extension(importer.file_name)
|
||||
context['file_name'] = importer.file_name
|
||||
sid = self.pool.get(
|
||||
'account.statement.profile').statement_import(
|
||||
'account.statement.profile').multi_statement_import(
|
||||
cr,
|
||||
uid,
|
||||
False,
|
||||
@@ -112,5 +112,5 @@ class CreditPartnerStatementImporter(orm.TransientModel):
|
||||
action_obj = self.pool.get('ir.actions.act_window')
|
||||
action_id = model_obj.get_object_reference(cr, uid, 'account', 'action_bank_statement_tree')[1]
|
||||
res = action_obj.read(cr, uid, action_id)
|
||||
res['domain'] = res['domain'][:-1] + ",('id', '=', %d)]" % sid
|
||||
res['domain'] = res['domain'][:-1] + ",('id', 'in', %s)]" % sid
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user