[FIX] res_users: avoid coalesce in uniqueness constraint (not well supported)

bzr revid: rco@openerp.com-20111209081110-88zlxdt46tq4is4l
This commit is contained in:
Raphael Collet 2011-12-09 09:11:10 +01:00
parent cda72d1e96
commit 823c79f510
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class groups(osv.osv):
}
_sql_constraints = [
('name_uniq', 'unique (COALESCE(category_id, 0), name)', 'The name of the group must be unique !')
('name_uniq', 'unique (category_id, name)', 'The name of the group must be unique !')
]
def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False):