From 433b98f8321c491f0337c37f4aadcbce05e35afe Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Mon, 6 Feb 2012 14:56:58 +0100 Subject: [PATCH] [FIX] account: Modify the sql constraints for the tax object, use the description instead of the name bzr revid: stw@openerp.com-20120206135658-5i35qm0dyyf4i6kl --- addons/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index 92e698448a9..0019c0e7a9f 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1883,7 +1883,7 @@ class account_tax(osv.osv): } _sql_constraints = [ - ('name_company_uniq', 'unique(name, company_id)', 'Tax Name must be unique per company!'), + ('description_company_uniq', 'unique(description, company_id)', 'The description must be unique per company!'), ] def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=80):