diff --git a/erpnext/patches/p1.py b/erpnext/patches/p1.py new file mode 100644 index 00000000000..c6f16efeb74 --- /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 = ''")