Browse Source

We added the bank_account_id as a condition for the sql_constraints because we can have duplication of transaction ID in different bank accounts.

pull/66/head
Yogesh Kushwaha 9 years ago
parent
commit
7f09e65d27
  1. 2
      account_bank_statement_import/models/account_bank_statement_import.py

2
account_bank_statement_import/models/account_bank_statement_import.py

@ -20,7 +20,7 @@ class AccountBankStatementLine(models.Model):
_sql_constraints = [
('unique_import_id',
'unique (unique_import_id)',
'unique (bank_account_id,unique_import_id)',
'A bank account transactions can be imported only once !')
]

Loading…
Cancel
Save