[FIX]Delete name_company_uniq constraint in bank statement

bzr revid: dle@openerp.com-20121130192938-qj9wu6iztkg7helz
This commit is contained in:
dle@openerp.com
2012-11-30 20:29:38 +01:00
parent 6f3f1d4217
commit d963fb8186
+3 -3
View File
@@ -347,9 +347,9 @@ class account_bank_statement(osv.osv):
_columns = {
'coda_statement_id': fields.many2one('coda.bank.statement', 'Associated CODA Bank Statement'),
}
_sql_constraints = [
('name_company_uniq', 'unique (name,company_id)', 'The name of the Bank Statement must be unique per company !')
]
# _sql_constraints = [
# ('name_company_uniq', 'unique (name,company_id)', 'The name of the Bank Statement must be unique per company !')
# ]
def unlink(self, cr, uid, ids, context=None):
if context is None: