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

Bug #965148 reported by Maxcom
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
OpenERP's Framework R&D

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

Related branches

affects: openobject-addons → openobject-server
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-server:
status: Confirmed → In Progress
Changed in openobject-server:
status: In Progress → Fix Committed
Revision history for this message
Jignesh Rathod(OpenERP) (jir-openerp) wrote :

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 : <email address hidden>

Thanks for reporting!

Amit Parik (amit-parik)
Changed in openobject-server:
importance: Low → Medium
Revision history for this message
Amit Parik (amit-parik) wrote :

landed on rev no 4369.

Thank you!

Changed in openobject-server:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.