Browse Source

[FIX] remove sql constraint for company_id

pull/287/head
Yves Goldberg 6 years ago
committed by GitHub
parent
commit
8db3911575
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      agreement/models/agreement.py

2
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!'
)] )]
Loading…
Cancel
Save