Hi Guys ...
from what I understood should self.pool['whatever'].browse(cr, uid, SINGLEID) return a dictonary object.
current_obj = self.pool['mymod.myclass'].browse(cr, uid, oid)
But
length = current_obj.len()
doesn't work and throws an error.
I want now to get the key and value pair of the _columns dictonary and tried:
for (key, value) in current_app_obj.items(): ...
or
for key in current_app_obj.keys(): ...
value = getattr(current_app_obj, key)
and also
keys = current_app_obj.keys()
for key in keys:
value = getattr(current_app_obj, key)
>>> [...] raise except_osv('Object Error', 'Object %s doesn\'t exist' % str(obj))
except_osv: ('Object Error', "Object object.name doesn't exist")
Where is my error? Is the return value of browse really a dictonary? Why can't I use the standart methods?
Which libraries do I have to include?
Any hint is appreciated.