You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered: