Merge branch 'master' into develop

This commit is contained in:
Nabin Hait 2017-01-10 12:23:35 +05:30
commit f67b5e3b32
2 changed files with 2 additions and 1 deletions

View file

@ -13,7 +13,7 @@ import os, sys, importlib, inspect, json
from .exceptions import *
from .utils.jinja import get_jenv, get_template, render_template
__version__ = '7.2.6'
__version__ = '7.2.7'
__title__ = "Frappe Framework"
local = Local()

View file

@ -347,6 +347,7 @@ _f.Frm.prototype.refresh_header = function(is_a_different_doc) {
this.dashboard.refresh();
if(this.meta.is_submittable &&
frappe.perm.get_perm(this.docname, this.doc).submit &&
! this.is_dirty() &&
! this.is_new() &&
this.doc.docstatus===0) {