Before this commit, the X2ManyField did not have a display name and its supported types only mentioned one2many. After this commit, those fields have a display name and the type many2many is rightfully put has beng handled by the fields. Part-of: odoo/odoo#107233