浏览代码

Merge branch 'master' into develop

version-14
Nabin Hait 8 年前
父节点
当前提交
aa16e8adf5
共有 6 个文件被更改,包括 17 次插入8 次删除
  1. +1
    -1
      frappe/__init__.py
  2. +1
    -1
      frappe/core/doctype/system_settings/system_settings.json
  3. +4
    -1
      frappe/printing/doctype/print_format/print_format.py
  4. +2
    -2
      frappe/public/js/frappe/model/meta.js
  5. +3
    -1
      frappe/public/js/frappe/upload.js
  6. +6
    -2
      frappe/public/js/frappe/views/reports/query_report.js

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

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

__version__ = '8.0.59'
__version__ = '8.0.60'
__title__ = "Frappe Framework"

local = Local()


+ 1
- 1
frappe/core/doctype/system_settings/system_settings.json 查看文件

@@ -933,7 +933,7 @@
"issingle": 1,
"istable": 0,
"max_attachments": 0,
"modified": "2017-05-19 09:12:50.353887",
"modified": "2017-05-23 09:12:50.353877",
"modified_by": "Administrator",
"module": "Core",
"name": "System Settings",


+ 4
- 1
frappe/printing/doctype/print_format/print_format.py 查看文件

@@ -77,4 +77,7 @@ def make_default(name):
'value': name,
})

frappe.msgprint(frappe._("Done"))
frappe.msgprint(frappe._("{0} is now default print format for {1} doctype").format(
frappe.bold(name),
frappe.bold(print_format.doc_type)
))

+ 2
- 2
frappe/public/js/frappe/model/meta.js 查看文件

@@ -208,8 +208,8 @@ $.extend(frappe.meta, {
});

if(default_print_format && default_print_format != "Standard") {
var index = print_format_list.indexOf(default_print_format) - 1;
print_format_list.sort().splice(index, 1);
var index = print_format_list.indexOf(default_print_format);
print_format_list.splice(index, 1).sort();
print_format_list.unshift(default_print_format);
}



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

@@ -198,7 +198,9 @@ frappe.upload = {
i += 1;
var file = files[i];
args.is_private = file.is_private;
frappe.show_progress(__('Uploading'), i+1, files.length);
if(!opts.progress) {
frappe.show_progress(__('Uploading'), i+1, files.length);
}
}
frappe.upload.upload_file(file, args, opts);
}


+ 6
- 2
frappe/public/js/frappe/views/reports/query_report.js 查看文件

@@ -215,6 +215,8 @@ frappe.views.QueryReport = Class.extend({
return false;
}

var orientation = this.print_settings.orientation;
var landscape = orientation == "Landscape" ? true: false
if(this.html_format) {
var content = frappe.render(this.html_format,
{data: frappe.slickgrid_tools.get_filtered_items(this.dataView), filters:this.get_values(), report:this});
@@ -225,7 +227,8 @@ frappe.views.QueryReport = Class.extend({
title:__(this.report_name),
base_url: base_url,
print_css: print_css,
print_settings: this.print_settings
print_settings: this.print_settings,
landscape: landscape
});
} else {
// rows filtered by inline_filter of slickgrid
@@ -249,7 +252,8 @@ frappe.views.QueryReport = Class.extend({
title:__(this.report_name),
base_url: base_url,
print_css: print_css,
print_settings: this.print_settings
print_settings: this.print_settings,
landscape: landscape
});
}



正在加载...
取消
保存