[FIX] account: Modify the sql constraints for the tax object, use the description instead of the name

bzr revid: stw@openerp.com-20120206135658-5i35qm0dyyf4i6kl
This commit is contained in:
Stephane Wirtel 2012-02-06 14:56:58 +01:00
parent 6589afbfa5
commit 433b98f832
1 changed files with 1 additions and 1 deletions

View File

@ -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):