2020-05-29 11:50:33 +00:00
|
|
|
# Copyright (c) 2017, Frappe and Contributors
|
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
2021-09-02 11:14:59 +00:00
|
|
|
|
2020-05-29 11:50:33 +00:00
|
|
|
import frappe
|
|
|
|
|
2021-09-02 11:14:59 +00:00
|
|
|
|
2020-05-29 11:50:33 +00:00
|
|
|
def execute():
|
|
|
|
frappe.db.sql("""
|
|
|
|
DELETE FROM `tabProperty Setter`
|
|
|
|
WHERE doc_type in ('Sales Invoice', 'Purchase Invoice', 'Payment Entry')
|
|
|
|
AND field_name = 'cost_center'
|
|
|
|
AND property = 'hidden'
|
|
|
|
""")
|