[FIX] fix uniq name constraint, should work in multi-company

This commit is contained in:
Sebastien Beau
2013-12-11 17:01:01 +01:00
parent 7be98134f4
commit bbb25a3ac7

View File

@@ -113,7 +113,7 @@ class AccountStatementProfile(Model):
]
_sql_constraints = [
('name_uniq', 'unique (name)', 'The name of the bank statement must be unique !')
('name_uniq', 'unique (name, company_id)', 'The name of the bank statement must be unique !')
]