From 92001a3df867bee94882c3bbaa61308213b43c77 Mon Sep 17 00:00:00 2001 From: pinky <> Date: Mon, 8 Jan 2007 08:45:23 +0000 Subject: [PATCH] Bugfix bzr revid: pinky-23b8e1a1d8983446596a6a5bf01d48a95c395c11 --- addons/account/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/invoice.py b/addons/account/invoice.py index d63bf61f8d3..1161196760c 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -65,7 +65,7 @@ class account_invoice(osv.osv): def _get_currency(self, cr, uid, context): user = pooler.get_pool(cr.dbname).get('res.users').browse(cr, uid, [uid])[0] - if user.company: + if user.company_id: return user.company_id.currency_id.id else: return pooler.get_pool(cr.dbname).get('res.currency').search(cr, uid, [('rate','=',1.0)])[0]