← Back to team overview

openerp-india team mailing list archive

[Bug 965148] Re: Missing support for the read of a single id in res.currency

 

** Branch linked: lp:~openerp-dev/openobject-server/trunk-bug-965148-jir

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/965148

Title:
  Missing support for the read of a single id in res.currency

Status in OpenERP Server:
  In Progress

Bug description:
  version 6.1-1

  The res.currency doesn't support the reading of a single row.
  This differs from the basic support in orm.py/BaseModel.read()

  >>> objectsock.execute('openerp', 1, 'demo', 'res.currency', 'read', [1])
  ... expected result

  now asking for a single instance, so not wrapping the id in a list:
  >>> objectsock.execute('openerp', 1, 'demo', 'res.currency', 'read', 1)
  Fault: <Fault string indices must be integers, not str: 'Traceback (most recent call last):
  ...
    File "C:\\Program Files\\OpenERP 6.1-1\\server\\.\\openerp\\osv\\osv.py", line 164, in execute_cr
    File "C:\\Program Files\\OpenERP 6.1-1\\server\\openerp\\addons\\base\\res\\res_currency.py", line 103, in read
    TypeError: string indices must be integers, not str

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/965148/+subscriptions


References