ACCOUNT: Fix currency

bzr revid: ced-ab0e11fcc1bcbdff61ebfabec1513106eee6ad27
This commit is contained in:
ced 2006-12-22 07:41:10 +00:00
parent 8a948e44c8
commit 2dd845c3a1
1 changed files with 0 additions and 1 deletions

View File

@ -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={}):