old_contents: # -*- 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
  		""")
new_contents: # -*- 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.reload_doctype('Print Format')
  	frappe.db.sql(""" 
  		update 
  			`tabPrint Format` 
  		set 
  			align_labels_left = 0, line_breaks = 0, show_section_headings = 0 
  		where 
  			custom_format = 1
  		""")
  
subject: Update disabled_print_settings_for_custom_print_format.py