fixes in patch

This commit is contained in:
Nabin Hait
2011-10-19 16:35:39 +05:30
parent 2eb5ae48f7
commit 69554511da
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
{ {
'creation': '2010-08-08 17:09:18', 'creation': '2010-08-08 17:09:18',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-10-19 15:02:04', 'modified': '2011-10-19 16:31:54',
'modified_by': 'Administrator', 'modified_by': 'Administrator',
'owner': 'Administrator' 'owner': 'Administrator'
}, },
@@ -34,7 +34,7 @@
'server_code_error': ' ', 'server_code_error': ' ',
'show_in_menu': 0, 'show_in_menu': 0,
'subject': 'To %(customer_name)s worth %(currency)s %(grand_total_export)s due on %(due_date)s | %(outstanding_amount)s outstanding', 'subject': 'To %(customer_name)s worth %(currency)s %(grand_total_export)s due on %(due_date)s | %(outstanding_amount)s outstanding',
'version': 361 'version': 363
}, },
# These values are common for all DocFormat # These values are common for all DocFormat

View File

@@ -1,4 +1,4 @@
def execute(): def execute():
import webnotes import webnotes
if not webnotes.conn.sql("select name from tabDocFormat where parent = 'Receivable Voucher' and format != 'POS Invoice'"): 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 = ''") webnotes.conn.sql("update tabDocType set default_print_format = 'Standard' where name = 'Receivable Voucher'")