From aefa500ca9a33e17dc2b76fcf091658c960241e5 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Fri, 9 Dec 2011 01:05:06 +0100 Subject: [PATCH] [FIX] account: small fix in generation of tax code from tax code objects bzr revid: qdp-launchpad@openerp.com-20111209000506-8iyd5551lmcmt995 --- 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 118a9ed41db..1cac49ae8f5 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -2621,7 +2621,7 @@ class account_tax_code_template(osv.osv): 'sign': tax_code_template.sign, } #check if this tax code already exists - rec_list = obj_tax_code.search(cr, uid, [('name', '=', vals['name']),('company_id', '=', vals['company_id'])], context=context) + rec_list = obj_tax_code.search(cr, uid, [('name', '=', vals['name']),('code', '=', vals['code']),('company_id', '=', vals['company_id'])], context=context) if not rec_list: #if not yet, create it new_tax_code = obj_tax_code.create(cr, uid, vals)