[FIX] remove sql constraint for company_id

This commit is contained in:
Yves Goldberg
2019-03-20 16:52:19 +01:00
committed by GitHub
parent df19c4bfe1
commit 8db3911575

View File

@@ -30,6 +30,6 @@ class Agreement(models.Model):
_sql_constraints = [(
'code_partner_company_unique',
'unique(code, partner_id, company_id)',
'unique(code, partner_id)',
'This agreement code already exists for this partner!'
)]