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.
 
 
 
 
 
 

18 lines
509 B

  1. import frappe
  2. def execute():
  3. # assuming all customization generated by Admin is system generated customization
  4. custom_field = frappe.qb.DocType("Custom Field")
  5. (
  6. frappe.qb.update(custom_field)
  7. .set(custom_field.is_system_generated, True)
  8. .where(custom_field.owner == 'Administrator').run()
  9. )
  10. property_setter = frappe.qb.DocType("Property Setter")
  11. (
  12. frappe.qb.update(property_setter)
  13. .set(property_setter.is_system_generated, True)
  14. .where(property_setter.owner == 'Administrator').run()
  15. )