diff --git a/bin/addons/base/base_data.xml b/bin/addons/base/base_data.xml index 075c44ae63b..2b9128eea80 100644 --- a/bin/addons/base/base_data.xml +++ b/bin/addons/base/base_data.xml @@ -1044,7 +1044,7 @@ - + OpenERP S.A. @@ -1170,7 +1170,7 @@ - + Kč CZK @@ -1213,7 +1213,7 @@ - + Rs IDR @@ -1290,7 +1290,7 @@ - + kr SEK @@ -1304,7 +1304,7 @@ - + GBP GBP @@ -1326,7 +1326,7 @@ 0.01 4 - + 5.0881 diff --git a/bin/addons/base/i18n/af.po b/bin/addons/base/i18n/af.po index 6462fe49a3e..02a6afaaea9 100644 --- a/bin/addons/base/i18n/af.po +++ b/bin/addons/base/i18n/af.po @@ -8,13 +8,13 @@ msgstr "" "Project-Id-Version: openobject-server\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2010-11-18 16:11+0000\n" -"PO-Revision-Date: 2010-11-20 23:09+0000\n" +"PO-Revision-Date: 2010-11-21 07:32+0000\n" "Last-Translator: Jacobus Erasmus \n" "Language-Team: Afrikaans \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-11-21 04:48+0000\n" +"X-Launchpad-Export-Date: 2010-11-22 04:49+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base diff --git a/bin/addons/base/i18n/pl.po b/bin/addons/base/i18n/pl.po index 6b94417ec2a..37a7122a89e 100644 --- a/bin/addons/base/i18n/pl.po +++ b/bin/addons/base/i18n/pl.po @@ -7,13 +7,13 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.4\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2010-11-18 16:11+0000\n" -"PO-Revision-Date: 2010-11-20 19:53+0000\n" -"Last-Translator: Grzegorz Grzelak (Cirrus.pl) \n" +"PO-Revision-Date: 2010-11-21 07:28+0000\n" +"Last-Translator: OpenERP Administrators \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2010-11-21 04:48+0000\n" +"X-Launchpad-Export-Date: 2010-11-22 04:49+0000\n" "X-Generator: Launchpad (build Unknown)\n" #. module: base diff --git a/bin/addons/base/res/res_currency.py b/bin/addons/base/res/res_currency.py index 1a233df4f19..30beb8a2219 100644 --- a/bin/addons/base/res/res_currency.py +++ b/bin/addons/base/res/res_currency.py @@ -48,7 +48,6 @@ class res_currency(osv.osv): _description = "Currency" _columns = { 'name': fields.char('Currency', size=32, required=True), - 'code': fields.char('Code', size=3), 'symbol': fields.char('Symbol', size=3), 'rate': fields.function(_current_rate, method=True, string='Current Rate', digits=(12,6), help='The rate of the currency to the currency of rate 1'), @@ -65,7 +64,7 @@ class res_currency(osv.osv): 'active': lambda *a: 1, 'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'res.currency', context=c) } - _order = "code" + _order = "name" def read(self, cr, user, ids, fields=None, context=None, load='_classic_read'): res=super(osv.osv, self).read(cr, user, ids, fields, context, load) @@ -102,12 +101,12 @@ class res_currency(osv.osv): if from_currency['rate'] == 0 or to_currency['rate'] == 0: date = context.get('date', time.strftime('%Y-%m-%d')) if from_currency['rate'] == 0: - code = from_currency.code + currency_symbol = from_currency.symbol else: - code = to_currency.code + currency_symbol = to_currency.symbol raise osv.except_osv(_('Error'), _('No rate found \n' \ 'for the currency: %s \n' \ - 'at the date: %s') % (code, date)) + 'at the date: %s') % (currency_symbol, date)) rate = to_currency.rate/from_currency.rate if account and (account.currency_mode=='average') and account.currency_id: q = self.pool.get('account.move.line')._query_get(cr, uid, context=context) @@ -133,9 +132,7 @@ class res_currency(osv.osv): args2 = args[:] if name: args += [('name', operator, name)] - args2 += [('code', operator, name)] ids = self.search(cr, uid, args, limit=limit) - ids += self.search(cr, uid, args2, limit=limit) res = self.name_get(cr, uid, ids, context) return res res_currency() diff --git a/bin/addons/base/res/res_currency_view.xml b/bin/addons/base/res/res_currency_view.xml index 60ddf0d98e8..37a8693e5b3 100644 --- a/bin/addons/base/res/res_currency_view.xml +++ b/bin/addons/base/res/res_currency_view.xml @@ -9,7 +9,6 @@ - @@ -28,7 +27,6 @@
-