[FIX] Correct the bank_label based completion method + open imported statement in new windows

(lp:c2c-financial-addons/6.1 rev 24.1.31)
This commit is contained in:
Joël Grand-Guillaume
2012-06-22 11:32:56 +02:00
parent 6e724ba1b1
commit 4abea930b5
4 changed files with 12 additions and 6 deletions

View File

@@ -110,6 +110,11 @@ class CreditPartnerStatementImporter(osv.osv_memory):
ftype.replace('.',''),
context=context
)
# We should return here the profile for which we executed the import
return {'type': 'ir.actions.act_window_close'}
return {
'domain': "[('id','in', ["+','.join(map(str,[sid]))+"])]",
'name': 'Imported Bank Statement',
'view_type': 'form',
'view_mode': 'tree,form',
'res_model': 'account.bank.statement',
'type': 'ir.actions.act_window',
}