import frappe


def execute():
	frappe.reload_doc("accounts", "doctype", "pricing_rule")

	frappe.db.sql(
		""" UPDATE `tabPricing Rule` SET price_or_product_discount = 'Price'
		WHERE ifnull(price_or_product_discount,'') = '' """
	)
