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

Null values aren't supported, if isEnabledForExtensions() == false #40

Open
bwilmus opened this issue May 5, 2017 · 2 comments
Open

Comments

@bwilmus
Copy link

bwilmus commented May 5, 2017

Hi,

I have a working step that collect stock information on product.template
When I want to use the same code on product.product, I got the following error:
Null values aren't supported, if isEnabledForExtensions() == false

logError("Create object adapter" );
ObjectAdapter objectAd = openERPSession.getObjectAdapter("product.product");
logError("Create filter" );
FilterCollection filters = new FilterCollection();
filters.add("active","=", "true");
filters.add("qty_available", ">", "0");
logError("Create tuple" );
String[] tuple = new String[]{"id", "ean13", "qty_available"};
logError("Create collections" );
RowCollection products = objectAd.searchAndReadObject(filters, tuple);

The last line raises the error.

What should I do?

Regards,

Bernard

@flotho
Copy link
Collaborator

flotho commented May 16, 2017

Hi @bwilmus ,

From now the lib force the option to false: https://github.com/DeBortoliWines/openerp-java-api/blob/master/src/main/java/com/debortoliwines/odoo/api/OdooXmlRpcProxy.java#L108
I'm not the author of this part and I don't really know if Odoo > 8 actually still not supporting the option set to true.
I've tested on a v8 implementation with the lib compiled with the option set to true and it succeed. Maybe you could try the lib I sent to you in PM.

regards

@flotho
Copy link
Collaborator

flotho commented Aug 16, 2017

will be fix by #41

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

No branches or pull requests

2 participants