Comment 3 for bug 557326

Revision history for this message
Numérigraphe (numerigraphe) wrote :

xrg & Albert Cervera i Areny : search() returns ids so yes it's probably already distinct. The feature is missing in read(), not search() - I must have been distracted.

xrg: it's quite common for search to return several identical tuples when different ids are passed. One example is: search for the order id in sale order lines.

Maybe distinct should be the default but that requires a lot of testing, I wouldn't recommend it for v6.0.

Albert Cervera i Areny
> IMHO read() function should accept both a list of IDS and a domain.
Yes I think Tryton made it this way too, please file a distinct bug report.

Lionel.