From 8a52fe77f801f4c96d2e89c026ecb750b16fb118 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Mon, 4 Nov 2013 14:46:18 +0100 Subject: [PATCH] [IMP] base, currency: second attempt to include this patch (previously added in revision 4982 then reverted in revision 4984 because of a bug in the server that was making an infinite loop -which has been fixed in previous revision-). Updated the type of name field of res.currency.rate in instead of for those who need to update the rate of currencies several times per day bzr revid: qdp-launchpad@openerp.com-20131104134618-oujlfwmnpc1xbvml --- openerp/addons/base/res/res_currency.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openerp/addons/base/res/res_currency.py b/openerp/addons/base/res/res_currency.py index a496a1eccdf..94a5f538b25 100644 --- a/openerp/addons/base/res/res_currency.py +++ b/openerp/addons/base/res/res_currency.py @@ -249,8 +249,8 @@ class res_currency_rate(osv.osv): _description = "Currency Rate" _columns = { - 'name': fields.date('Date', required=True, select=True), - 'rate': fields.float('Rate', digits=(12,6), help='The rate of the currency to the currency of rate 1'), + 'name': fields.datetime('Date', required=True, select=True), + 'rate': fields.float('Rate', digits=(12, 6), help='The rate of the currency to the currency of rate 1'), 'currency_id': fields.many2one('res.currency', 'Currency', readonly=True), 'currency_rate_type_id': fields.many2one('res.currency.rate.type', 'Currency Rate Type', help="Allow you to define your own currency rate types, like 'Average' or 'Year to Date'. Leave empty if you simply want to use the normal 'spot' rate type"), }