[FIX] cancelling of o2m lines with m2o on 'Create and Edit'
trigger a Widget|focused event on item.action autocomplete selection, cancels previous Widget|blurred (from picking choice) and avoids firing of FormView|blurred, used by o2m list to autosave/autocancel an edition. bzr revid: xmo@openerp.com-20120802120230-ylnldw0aa39uga1p
This commit is contained in:
parent
4c14e794d1
commit
8ae0d248e6
|
@ -2816,6 +2816,8 @@ instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc
|
|||
} else if (item.action) {
|
||||
self.floating = true;
|
||||
item.action();
|
||||
// Cancel widget blurring, to avoid form blur event
|
||||
self.trigger('focused');
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue