[toolbars] removed view / module menus
This commit is contained in:
parent
4ba898f0d9
commit
489a5b962f
1 changed files with 7 additions and 0 deletions
|
|
@ -196,6 +196,13 @@ wn.ui.form.Toolbar = Class.extend({
|
|||
// remove existing title buttons
|
||||
this.appframe.toolbar.find(".btn-title").remove();
|
||||
|
||||
// Print Preview
|
||||
if(this.frm.meta.read_only_onload && !this.frm.doc.__islocal && this.frm.view_is_edit) {
|
||||
this.appframe.add_button(wn._('Preview'), function() {
|
||||
me.frm.last_view_is_edit[me.frm.docname] = 0;
|
||||
me.frm.refresh(); }, 'icon-print');
|
||||
}
|
||||
|
||||
if(has_workflow && (this.frm.doc.__islocal || this.frm.doc.__unsaved)) {
|
||||
this.make_save_button();
|
||||
} else if(!has_workflow) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue