fix: use set_value instead of sql

This commit is contained in:
barredterra
2021-03-03 12:33:48 +01:00
parent 82c6223196
commit 1521b31795
3 changed files with 5 additions and 7 deletions

View File

@@ -36,5 +36,4 @@ def make_custom_fields(update=True):
def add_print_formats():
frappe.reload_doc("regional", "print_format", "irs_1099_form")
frappe.db.sql(""" update `tabPrint Format` set disabled = 0 where
name in('IRS 1099 Form') """)
frappe.db.set_value("Print Format", "IRS 1099 Form", "disabled", 0)