From 2dd845c3a1dc25c8b948f3b1c6e3f6533a572642 Mon Sep 17 00:00:00 2001 From: ced <> Date: Fri, 22 Dec 2006 07:41:10 +0000 Subject: [PATCH] ACCOUNT: Fix currency bzr revid: ced-ab0e11fcc1bcbdff61ebfabec1513106eee6ad27 --- addons/account/invoice.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index a414a1a9fd6..fc30219caef 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -62,7 +62,6 @@ class account_invoice(osv.osv): return cr.fetchone()[0] def _get_currency(self, cr, uid, context): - return pooler.get_pool(cr.dbname).get('res.currency').search(cr, uid, [('rate','=',1.0)])[0] return pooler.get_pool(cr.dbname).get('res.users').browse(cr, uid, [uid])[0].company_id.currency_id.id def _get_journal_analytic(self, cr, uid, type_inv, context={}):