[FIX]: fix a problem for invoice currency selection

bzr revid: mga@tinyerp.com-20100113115507-r07m2l6wxcd8gh4o
This commit is contained in:
Mantavya Gajjar
2010-01-13 17:25:07 +05:30
parent 7d96d24c3f
commit d5cd014da1
+1 -1
View File
@@ -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 {}