[FIX] if no view_id is provided to the form view, default to 'false'
Otherwise this.view_id === undefined, and keys with value 'undefined' are skipped during JSON serialization bzr revid: xmo@openerp.com-20110920100823-8osz0ly3eu7vzyba
This commit is contained in:
@@ -26,7 +26,7 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView#
|
||||
this.set_default_options(options);
|
||||
this.dataset = dataset;
|
||||
this.model = dataset.model;
|
||||
this.view_id = view_id;
|
||||
this.view_id = view_id || false;
|
||||
this.fields_view = {};
|
||||
this.widgets = {};
|
||||
this.widgets_counter = 0;
|
||||
|
||||
Reference in New Issue
Block a user