I'm having trouble getting a list of records through xmlrpc from the product.template model.
This issue is only present in the product.template model and happens when I attempt to put a search domain in the search criteria.
# 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)
The call to the model only works when the filter is [[]]. All other models run through this script without issue but the above script returns [] instead of a list of records as dictionaries.
Any help figuring out why I cannot use a filter/domain on the search function for product.template would be wonderful.
The partner that originally installed and implemented Odoo in our system installed a custom module that extended search_read for products and templates. This extension is what is clearing the list. If anyone has worked with OSI and coming up with this issue the module is osi_default_product_category.