XMLRPC 搜索 product.template returns 空列表

XMLRPC Search product.template returns empty list

我无法通过 xmlrpc 从 product.template 模型获取记录列表。

此问题仅出现在 product.template 模型中,并且在我尝试将搜索域放入搜索条件时发生。

# Gets the source records for the model we intend to migrate in the database class of script.
def get_records(self,model,filter,fields):
    return self.models.execute_kw(self.db, 1, self.password,model, 'search_read',filter,fields)

#method call
source_recs = source_db.get_records(source_model, [[[SYNC_FLAG,'=', 
    False]]] , source_fields)

仅当过滤器为 [[]] 时,对模型的调用才有效。通过此脚本的所有其他模型 运行 没有问题,但上面的脚本 returns [] 而不是作为字典的记录列表。

任何帮助弄清楚为什么我不能在 product.template 的搜索功能上使用 filter/domain 的帮助都会很棒。

最初在我们的系统中安装和实施 Odoo 的合作伙伴安装了一个扩展 search_read 产品和模板的自定义模块。此扩展是清除列表的内容。如果有人使用过 OSI 并提出这个问题,那么模块是 osi_default_product_category.