我需要从一个类中获取所有对象并遍历它们。我试过这个,但没有任何结果:
def my_method(self, cr, uid, ids, context=None):
pool_obj = pooler.get_pool(cr.dbname)
my_objects=pool_obj.get('project.myobject')
#here i'll iterate through them...
如何在“my_objects”变量中获取“project.myobject”类的所有对象?