You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 line
291 B

  1. import frappe
  2. from frappe.utils import cint
  3. def execute():
  4. frappe.reload_doctype("Dropbox Settings")
  5. check_dropbox_enabled = cint(frappe.db.get_single_value("Dropbox Settings", "enabled"))
  6. if check_dropbox_enabled == 1:
  7. frappe.db.set_value("Dropbox Settings", None, "file_backup", 1)