The widget is defined in the mail addons module, but this web-side revision adds a trigger when destroying a popup, because this event is used in the widget. bzr revid: tde@openerp.com-20121106161603-gybjhsjavwe5bgd2