** Changed in: openobject-server
Importance: Low => Medium
--
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
_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help : https://help.launchpad.net/ListHelp