Browse Source

[FIX] support rerendering after virtual ids change

this is necessary for correct operation after creating new records
pull/96/head
Holger Brunn 10 years ago
parent
commit
8ce3afdc3d
  1. 7
      web_widget_x2many_2d_matrix/static/src/js/web_widget_x2many_2d_matrix.js

7
web_widget_x2many_2d_matrix/static/src/js/web_widget_x2many_2d_matrix.js

@ -143,6 +143,13 @@ openerp.web_widget_x2many_2d_matrix = function(instance)
}); });
})); }));
}) })
if(self.is_started && !self.no_rerender)
{
self.renderElement();
self.$el.find('.edit').on(
'change', self.proxy(self.xy_value_change));
self.effective_readonly_change();
}
return jQuery.when.apply(jQuery, deferrends); return jQuery.when.apply(jQuery, deferrends);
}); });
}); });

Loading…
Cancel
Save