{# Many2many chip editor — multi-select with create / open / edit. Expected variables: name field attribute name (form input name) comodel comodel model name (e.g. "res.tag") search_url "/api/m2o/search?model=res.tag" form_view_url "/web/views/partners/tag.form" or None initial list of {"id": int, "label": str} for currently linked records (one per record in the M2m) readonly bool dialog_only bool — chips + dialog buttons; no inline typeahead #}
{# Selected chips — open link + edit in dialog when available. #}