[FIX] toolbar is optional
bzr revid: al@openerp.com-20120417133242-x76s3qfn28l40yzb
This commit is contained in:
parent
fe7b7d235d
commit
f80c7eee96
|
@ -112,7 +112,9 @@ instance.web.FormView = instance.web.View.extend({
|
|||
if (!this.sidebar && this.options.sidebar) {
|
||||
this.sidebar = new instance.web.Sidebar(this);
|
||||
this.sidebar.appendTo(this.$sidebar);
|
||||
if(this.fields_view.toolbar) {
|
||||
this.sidebar.add_toolbar(this.fields_view.toolbar);
|
||||
}
|
||||
this.sidebar.add_items('other', [{
|
||||
label: _t('Set Default'),
|
||||
form: this,
|
||||
|
|
Loading…
Reference in New Issue