Browse Source

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

version-14
Rushabh Mehta 10 years ago
parent
commit
8153d050e3
2 changed files with 5 additions and 3 deletions
  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 View File

@@ -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 View File

@@ -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 {}



Loading…
Cancel
Save