From 1c1e5b452910d750eaab0143fa95fba20bdf94f2 Mon Sep 17 00:00:00 2001 From: Cedric Snauwaert Date: Fri, 22 Jan 2016 10:23:00 +0100 Subject: [PATCH] [FIX] account_bank_statement_import: unique_import_id is not unique enough, so add the journal_id in it --- .../account_bank_statement_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_bank_statement_import/account_bank_statement_import.py b/addons/account_bank_statement_import/account_bank_statement_import.py index 66a661b8cd6..87e2de0d860 100644 --- a/addons/account_bank_statement_import/account_bank_statement_import.py +++ b/addons/account_bank_statement_import/account_bank_statement_import.py @@ -169,7 +169,7 @@ class AccountBankStatementImport(models.TransientModel): unique_import_id = line_vals.get('unique_import_id') if unique_import_id: sanitized_account_number = sanitize_account_number(account_number) - line_vals['unique_import_id'] = (sanitized_account_number and sanitized_account_number + '-' or '') + unique_import_id + line_vals['unique_import_id'] = (sanitized_account_number and sanitized_account_number + '-' or '') + str(journal.id) + '-' + unique_import_id if not line_vals.get('bank_account_id'): # Find the partner and his bank account or create the bank account. The partner selected during the