From d5cd014da19401dc1aebed1284a2491d20545462 Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Wed, 13 Jan 2010 17:25:07 +0530 Subject: [PATCH] [FIX]: fix a problem for invoice currency selection bzr revid: mga@tinyerp.com-20100113115507-r07m2l6wxcd8gh4o --- 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 b810ef02a74..87874c0a1b2 100644 --- a/addons/account/invoice.py +++ b/addons/account/invoice.py @@ -415,7 +415,7 @@ class account_invoice(osv.osv): def onchange_currency_id(self, cr, uid, ids, curr_id, company_id): if curr_id: currency = self.pool.get('res.currency').browse(cr, uid, curr_id) - if currency.company_id != company_id: + if currency.company_id.id != company_id: raise osv.except_osv(_('Configration Error !'), _('Can not select currency that is not related to current company.\nPlease select accordingly !.')) return {}