[REV] account: Revert my previous patch about the uniqueness of description,company_i...
authorStephane Wirtel <stw@openerp.com>
Wed, 8 Feb 2012 09:24:06 +0000 (10:24 +0100)
committerStephane Wirtel <stw@openerp.com>
Wed, 8 Feb 2012 09:24:06 +0000 (10:24 +0100)
lp bug: https://launchpad.net/bugs/928424 fixed

bzr revid: stw@openerp.com-20120208092406-a1nlp4bqwhd2cxqh

addons/account/account.py

index 97b66f8..050f953 100644 (file)
@@ -1884,7 +1884,7 @@ class account_tax(osv.osv):
 
     }
     _sql_constraints = [
-        ('description_company_uniq', 'unique(description, company_id)', 'The description must be unique per company!'),
+        ('name_company_uniq', 'unique(name, company_id)', 'Tax Name must be unique per company!'),
     ]
 
     def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=80):