Comment 4 for bug 558658

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The fix has landed in trunk with revision 3110 revision-id: <email address hidden>.

It includes both a unique SQL constraint for m2m relation tables, but also a double-check in fields.many2many.set() to avoid creating duplicate records when [(4,X)] syntax is used to write to a m2m field.

Thanks for reporting!

Note: the unique constraint will be added only in newly created databases.. otherwise it will require manual addition.