Browse Source

Merge pull request #11 from acsone/8.0-fix-new-api-compatibility

[FIX]Take a copy of the context before update
pull/12/head
Stéphane Bidoul (ACSONE) 10 years ago
parent
commit
68192eea2f
  1. 3
      account_bank_statement_import/account_bank_statement_import.py

3
account_bank_statement_import/account_bank_statement_import.py

@ -35,8 +35,7 @@ class account_bank_statement_import(osv.TransientModel):
def import_file(self, cr, uid, ids, context=None):
""" Process the file chosen in the wizard, create bank statement(s) and go to reconciliation. """
if context is None:
context = {}
context = dict(context or {})
#set the active_id in the context, so that any extension module could
#reuse the fields chosen in the wizard if needed (see .QIF for example)
context.update({'active_id': ids[0]})

Loading…
Cancel
Save