瀏覽代碼

Merge branch 'master' into develop

version-14
Saurabh 7 年之前
父節點
當前提交
930ea958bc
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. +1
    -1
      frappe/__init__.py
  2. +3
    -1
      frappe/public/js/legacy/client_script_helpers.js

+ 1
- 1
frappe/__init__.py 查看文件

@@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json
from .exceptions import *
from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template

__version__ = '9.2.19'
__version__ = '9.2.20'
__title__ = "Frappe Framework"

local = Local()


+ 3
- 1
frappe/public/js/legacy/client_script_helpers.js 查看文件

@@ -457,8 +457,10 @@ _f.Frm.prototype.can_create = function(doctype) {
}

if(this.custom_make_buttons && this.custom_make_buttons[doctype]) {
// custom buttons are translated and so are the keys
const key = __(this.custom_make_buttons[doctype]);
// if the button is present, then show make
return !!this.custom_buttons[this.custom_make_buttons[doctype]];
return !!this.custom_buttons[key];
}

if(this.can_make_methods && this.can_make_methods[doctype]) {


Loading…
取消
儲存