brotherton-erpnext/erpnext/patches/remove_extra_button_from_email_digest.py

9 lines
176 B
Python

def execute():
import webnotes
webnotes.conn.sql("""
DELETE FROM tabDocField
WHERE parent = 'Email Digest'
AND label = 'Add Recipients'
AND fieldtype = 'Button'""")