Commit 715933c2 authored by Nabin Hait's avatar Nabin Hait
Browse files

Merge branch 'hotfix'

parents ff9819ed e60d438a
Showing with 27 additions and 1 deletion
+27 -1
......@@ -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.1.8'
__version__ = '7.1.9'
__title__ = "Frappe Framework"
local = Local()
......
......@@ -145,3 +145,4 @@ frappe.patches.v7_0.cleanup_list_settings
execute:frappe.db.set_default('language', '')
frappe.patches.v7_1.refactor_integration_broker
frappe.patches.v7_1.set_backup_limit
frappe.patches.v7_1.disabled_print_settings_for_custom_print_format
# -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def execute():
frappe.db.sql("""
update
`tabPrint Format`
set
align_labels_left = 0, line_breaks = 0, show_section_headings = 0
where
custom_format = 1
""")
\ No newline at end of file
......@@ -33,3 +33,12 @@ frappe.ui.form.on("Print Format", "refresh", function(frm) {
});
}
});
frappe.ui.form.on("Print Format", {
'custom_format': function(frm) {
value = frm.doc.custom_format ? 0:1;
frm.set_value('align_labels_left', value);
frm.set_value('show_section_headings', value);
frm.set_value('line_breaks', value);
}
})
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment