Merge lp:~unifield-team/unifield-server/UF_938 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 3400
Proposed branch: lp:~unifield-team/unifield-server/UF_938
Merge into: lp:unifield-server
Diff against target: 19 lines (+3/-3)
1 file modified
bin/addons/base/res/res_currency.py (+3/-3)
To merge this branch: bzr merge lp:~unifield-team/unifield-server/UF_938
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+102303@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bin/addons/base/res/res_currency.py'
--- bin/addons/base/res/res_currency.py 2012-03-08 14:26:02 +0000
+++ bin/addons/base/res/res_currency.py 2012-04-17 13:59:24 +0000
@@ -100,12 +100,12 @@
100 if from_currency['rate'] == 0 or to_currency['rate'] == 0:100 if from_currency['rate'] == 0 or to_currency['rate'] == 0:
101 date = context.get('date', time.strftime('%Y-%m-%d'))101 date = context.get('date', time.strftime('%Y-%m-%d'))
102 if from_currency['rate'] == 0:102 if from_currency['rate'] == 0:
103 currency_symbol = from_currency.symbol103 currency_name = from_currency.name
104 else:104 else:
105 currency_symbol = to_currency.symbol105 currency_name = to_currency.name
106 raise osv.except_osv(_('Error'), _('No rate found \n' \106 raise osv.except_osv(_('Error'), _('No rate found \n' \
107 'for the currency: %s \n' \107 'for the currency: %s \n' \
108 'at the date: %s') % (currency_symbol, date))108 'at the date: %s') % (currency_name, date))
109 return to_currency.rate/from_currency.rate109 return to_currency.rate/from_currency.rate
110110
111 def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context=None):111 def compute(self, cr, uid, from_currency_id, to_currency_id, from_amount, round=True, context=None):

Subscribers

People subscribed via source and target branches

to all changes: