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
1=== modified file 'bin/addons/base/res/res_currency.py'
2--- bin/addons/base/res/res_currency.py 2012-03-08 14:26:02 +0000
3+++ bin/addons/base/res/res_currency.py 2012-04-17 13:59:24 +0000
4@@ -100,12 +100,12 @@
5 if from_currency['rate'] == 0 or to_currency['rate'] == 0:
6 date = context.get('date', time.strftime('%Y-%m-%d'))
7 if from_currency['rate'] == 0:
8- currency_symbol = from_currency.symbol
9+ currency_name = from_currency.name
10 else:
11- currency_symbol = to_currency.symbol
12+ currency_name = to_currency.name
13 raise osv.except_osv(_('Error'), _('No rate found \n' \
14 'for the currency: %s \n' \
15- 'at the date: %s') % (currency_symbol, date))
16+ 'at the date: %s') % (currency_name, date))
17 return to_currency.rate/from_currency.rate
18
19 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: