mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] fix uniq name constraint, should work in multi-company
This commit is contained in:
@@ -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 !')
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user