Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible inheritance speedup trick #88

Open
rvalyi opened this issue May 21, 2012 · 0 comments
Open

possible inheritance speedup trick #88

rvalyi opened this issue May 21, 2012 · 0 comments

Comments

@rvalyi
Copy link
Member

rvalyi commented May 21, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant