[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:
Xavier Morel 2012-08-02 14:02:30 +02:00
parent 4c14e794d1
commit 8ae0d248e6
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
},