patch: default print format for invoice is standard

This commit is contained in:
Nabin Hait 2011-10-19 16:06:37 +05:30
parent 13800440f1
commit 2eb5ae48f7

4
erpnext/patches/p1.py Normal file
View File

@ -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 = ''")