diff options
| author | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2013-10-30 18:28:05 +0100 |
|---|---|---|
| committer | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2013-10-30 18:28:05 +0100 |
| commit | ca92afb39a2b82a10d8fbc673cb419e3d09cf59f (patch) | |
| tree | bb8bb6bc52b27ed36dd30f5fe6320ff00d13fc55 | |
| parent | 01c06b08dbc4cd86b3857a40e93e53f34ef2da76 (diff) | |
[REV] base, res.currency: reverted revision 4982 because it was causing an error when a res.currency.rate was searched with a domain like [('name', '=', '30-20-2013')]. This patch will be back with a graceful solution to fix the error
bzr revid: qdp-launchpad@openerp.com-20131030172805-7ndvj8vj4h31wre8
| -rw-r--r-- | openerp/addons/base/res/res_currency.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openerp/addons/base/res/res_currency.py b/openerp/addons/base/res/res_currency.py index 94a5f538b25..a496a1eccdf 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.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'), + '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'), '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"), } |
