← 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

 

Hello Maxcom,

This issue has been fixed following branch and rev no , rev id.

Branch  : lp:~openerp-dev/openobject-server/trunk-bug-965148-jir 
Revision No  :  4350
Revision ID    :   jir@xxxxxxxxxxx-20120822095433-55l2n56fplfiglwv

Thanks for reporting!

-- 
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:
  Fix Committed

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