Fix patches for Travis

This commit is contained in:
Shreya
2018-05-17 18:58:47 +05:30
parent 6d2dfac44e
commit 70f9d07df8
8 changed files with 22 additions and 7 deletions

View File

@@ -21,7 +21,8 @@ def execute():
frappe.reload_doc('stock', 'doctype', 'delivery_note')
for doctype in to_rename:
rename_field(doctype, 'subscription', 'auto_repeat')
if frappe.db.has_column(doctype, 'subscription'):
rename_field(doctype, 'subscription', 'auto_repeat')
subscriptions = frappe.db.sql('select * from `tabSubscription`', as_dict=1)