Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels