brotherton-erpnext/erpnext/patches/p1.py

5 lines
270 B
Python
Raw Normal View History

def execute():
import webnotes
if not webnotes.conn.sql("select name from tabDocFormat where parent = 'Receivable Voucher' and format != 'POS Invoice'"):
2011-10-19 11:05:39 +00:00
webnotes.conn.sql("update tabDocType set default_print_format = 'Standard' where name = 'Receivable Voucher'")