浏览代码

[fix] print format builer, don't include print_hide fields in initial format

version-14
Rushabh Mehta 10 年前
父节点
当前提交
8153d050e3
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. +4
    -2
      frappe/print/page/print_format_builder/print_format_builder.js
  2. +1
    -1
      frappe/translate.py

+ 4
- 2
frappe/print/page/print_format_builder/print_format_builder.js 查看文件

@@ -251,8 +251,10 @@ frappe.PrintFormatBuilder = Class.extend({
me.add_table_properties(f);
}

column.fields.push(f);
section.has_fields = true;
if(!f.print_hide) {
column.fields.push(f);
section.has_fields = true;
}
}
});



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

@@ -90,7 +90,7 @@ def get_dict(fortype, name=None):
"""
fortype = fortype.lower()
cache = frappe.cache()
cache_key = "translation_assets:" + frappe.local.lang
cache_key = "translation_assets:" + (frappe.local.lang or "en")
asset_key = fortype + ":" + (name or "-")
translation_assets = cache.get_value(cache_key) or {}



正在加载...
取消
保存