From 2eb5ae48f7e9b50bf998c90c3f84c23cfbab17cc Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 19 Oct 2011 16:06:37 +0530 Subject: [PATCH] patch: default print format for invoice is standard --- erpnext/patches/p1.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 erpnext/patches/p1.py diff --git a/erpnext/patches/p1.py b/erpnext/patches/p1.py new file mode 100644 index 0000000000..c6f16efeb7 --- /dev/null +++ b/erpnext/patches/p1.py @@ -0,0 +1,4 @@ +def execute(): + import webnotes + if not webnotes.conn.sql("select name from tabDocFormat where parent = 'Receivable Voucher' and format != 'POS Invoice'"): + webnotes.conn.sql("update tabDocType set default_print_format = 'Standard' where name = 'Receivable Voucher' and default_print_format = ''")