Hy,
I'm trying to make a filter from sale.order on products . I succeed in working with fields.related :
'product_ids':fields.related("order_line","product_id",type="one2many",relation="product.product",string="Produits",store=False),
Unfortunately, when I try to duplicate, I have this issue : (http://pastebin.com/sWypdH37)
File "/home/florent/DEV/Serveurs/openerp-7.0-series/server/openerp/osv/fields.py", line 1223, in <genexpr>
res = dict((id, value and map(int, value) or []) for id, value in res.iteritems())
TypeError: argument 2 to map() must support iteration
Could you tell me if it could be considered as a bug? Is there a better way to get all the sale.orders that have a specific product inside?
regards