~openerp/openobject-server/trunk-access-error-fme

« back to all changes in this revision

Viewing changes to openerp/addons/base/res/res_currency.py

  • Committer: Quentin (OpenERP)
  • Date: 2013-11-04 13:46:18 UTC
  • Revision ID: qdp-launchpad@openerp.com-20131104134618-oujlfwmnpc1xbvml
[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 <datetime> instead of <date> for those who need to update the rate of currencies several times per day

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
    _description = "Currency Rate"
250
250
 
251
251
    _columns = {
252
 
        'name': fields.date('Date', required=True, select=True),
253
 
        'rate': fields.float('Rate', digits=(12,6), help='The rate of the currency to the currency of rate 1'),
 
252
        'name': fields.datetime('Date', required=True, select=True),
 
253
        'rate': fields.float('Rate', digits=(12, 6), help='The rate of the currency to the currency of rate 1'),
254
254
        'currency_id': fields.many2one('res.currency', 'Currency', readonly=True),
255
255
        '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"),
256
256
    }