Skip to content

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

Open
@bwilmus

Description

@bwilmus

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions