I have been working ion a search module in OpenERP-7. The scenario is that I am returning records in domain so that I can show them on my field. The problem here is that the field is not showing the newly created records in the domain. While on printing the value of domain on console, I get the desired records . But I dont seem to get why its not allowing me to view them ion my field. Neither I am getting any error.
My domain part of function is as follows:
res = cr.fetchall()
for p_id,p_name in res:
domain.append((p_id))
print domain
return {'domain':{'my_products':[('id','in',domain)]}}