Browse Source
[FIX] remove sql constraint for company_id
pull/287/head
Yves Goldberg
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
agreement/models/agreement.py
|
@ -30,6 +30,6 @@ class Agreement(models.Model): |
|
|
|
|
|
|
|
|
_sql_constraints = [( |
|
|
_sql_constraints = [( |
|
|
'code_partner_company_unique', |
|
|
'code_partner_company_unique', |
|
|
'unique(code, partner_id, company_id)', |
|
|
|
|
|
|
|
|
'unique(code, partner_id)', |
|
|
'This agreement code already exists for this partner!' |
|
|
'This agreement code already exists for this partner!' |
|
|
)] |
|
|
)] |