Nabin Hait | 2eb5ae4 | 2011-10-19 16:06:37 +0530 | [diff] [blame^] | 1 | def execute(): |
2 | import webnotes | ||||
3 | if not webnotes.conn.sql("select name from tabDocFormat where parent = 'Receivable Voucher' and format != 'POS Invoice'"): | ||||
4 | webnotes.conn.sql("update tabDocType set default_print_format = 'Standard' where name = 'Receivable Voucher' and default_print_format = ''") |