ooor icon indicating copy to clipboard operation
ooor copied to clipboard

possible inheritance speedup trick

Open rvalyi opened this issue 13 years ago • 0 comments

OpenERP doesn't tell over RPC which objects are inherited (_inherits), this sucks and forces us to to do nasty slow tests to find out if some field is inherited or not.

In fact, I just noticed that calling reading with no field to read may return the list of inheritance keys: such as for product.product: [{'product_tmpl_id': 5, 'id': 5}]

May be we can use that info to speed up the tests. Of course, if OpenERP could just expose that information that would just be better.

rvalyi avatar May 21 '12 20:05 rvalyi