Browse Source

[FIX] Use unique accounts and improved bank search in base.

pull/19/head
Ronald Portier (Therp BV) 10 years ago
committed by Laurent Mignon (ACSONE)
parent
commit
5538c234d9
  1. 5
      account_bank_statement_import/res_partner_bank.py

5
account_bank_statement_import/res_partner_bank.py

@ -64,3 +64,8 @@ class ResPartnerBank(models.Model):
return super(ResPartnerBank, self).search(
cr, user, args, offset=0, limit=None, order=None, context=None,
count=False)
_sql_constraints = [
('unique_number', 'unique(sanitized_acc_number)',
'Account Number must be unique'),
]
Loading…
Cancel
Save