423
432
var id = jQuery(m2o.field).attr('id');
424
433
// If the text on m2o field is related to any existing ID,
425
434
// we won't set the text to blank while clicking on search
427
437
jQuery(idSelector(id + '_text')).val('');
429
439
open_search_window(m2o.relation, domain, context, m2o.name, 1, text);