[fix] [minor] email settings - set send print in body and attachment
diff --git a/patches/december_2013/__init__.py b/patches/december_2013/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/patches/december_2013/__init__.py
diff --git a/patches/december_2013/p01_email_settings_set_send_print_in_body_and_attachment.py b/patches/december_2013/p01_email_settings_set_send_print_in_body_and_attachment.py
new file mode 100644
index 0000000..7b7e7fb
--- /dev/null
+++ b/patches/december_2013/p01_email_settings_set_send_print_in_body_and_attachment.py
@@ -0,0 +1,10 @@
+# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
+# License: GNU General Public License v3. See license.txt
+
+from __future__ import unicode_literals
+import webnotes
+
+def execute():
+ webnotes.conn.sql("""update `tabSingles` set value = 1
+ where doctype = 'Email Settings' and field = 'send_print_in_body_and_attachment' and
+ ifnull(value,'')=''""")
\ No newline at end of file
diff --git a/patches/patch_list.py b/patches/patch_list.py
index 9400e08..8a7d10e 100644
--- a/patches/patch_list.py
+++ b/patches/patch_list.py
@@ -258,4 +258,5 @@
"execute:webnotes.delete_doc('Report', 'Stock Ledger') #2013-11-29",
"execute:webnotes.delete_doc('Report', 'Payment Collection With Ageing')",
"execute:webnotes.delete_doc('Report', 'Payment Made With Ageing')",
+ "patches.december_2013.p01_email_settings_set_send_print_in_body_and_attachment",
]
\ No newline at end of file