Have a look at this addon: https://pypi.python.org/pypi/plone.formwidget.masterselect/
Plone Foundation Code of Conduct