[fix] problem when switching from form view to list view in o2m
bzr revid: nicolas.vanhoren@openerp.com-20111026153944-bdk335em06dxxi2p
This commit is contained in:
parent
5329b9273a
commit
33c4580c03
|
@ -2007,8 +2007,11 @@ openerp.web.form.FieldOne2Many = openerp.web.form.Field.extend({
|
||||||
}
|
}
|
||||||
def.resolve();
|
def.resolve();
|
||||||
});
|
});
|
||||||
this.viewmanager.on_mode_switch.add_first(function() {
|
this.viewmanager.on_mode_switch.add_first(function(n_mode, b, c, d, e) {
|
||||||
self.save_form_view();
|
$.when(self.save_form_view()).then(function() {
|
||||||
|
if(n_mode === "list")
|
||||||
|
setTimeout(function() {self.reload_current_view();}, 0);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
this.is_setted.then(function() {
|
this.is_setted.then(function() {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
Loading…
Reference in New Issue