Add unique constraint on relation of Many2Many
The Many2Many relations are supposed to be unique by the add
code but it is not enforced at the database level. Such enforcement with a unique constraint could prevent issues like #11230 (closed).
I guess this could be done by adding a test in TestModuleCase
for concrete relation fields.