Skip to content

Commit e8281b3

Browse files
OCA git botOCA git bot
OCA git bot
authored and
OCA git bot
committed
Merge remote-tracking branch 'odoo/7.0' into 7.0
2 parents 3bdedf0 + 98c6e7c commit e8281b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

addons/web/static/src/js/view_form.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -2252,7 +2252,10 @@ instance.web.form.ReinitializeWidgetMixin = {
22522252
instance.web.form.ReinitializeFieldMixin = _.extend({}, instance.web.form.ReinitializeWidgetMixin, {
22532253
reinitialize: function() {
22542254
instance.web.form.ReinitializeWidgetMixin.reinitialize.call(this);
2255-
this.view.render_value_defs.push(this.render_value());
2255+
var res = this.render_value();
2256+
if (this.view && this.view.render_value_defs){
2257+
this.view.render_value_defs.push(res);
2258+
}
22562259
},
22572260
});
22582261

0 commit comments

Comments
 (0)