Reload pricing rule in patch

This commit is contained in:
Nabin Hait 2014-06-20 16:30:44 +05:30 committed by Anand Doshi
parent 4f6e31eb08
commit afffd656f6

View File

@ -5,6 +5,7 @@ from __future__ import unicode_literals
import frappe
def execute():
frappe.reload_doc("accounts", "doctype", "pricing_rule")
frappe.db.sql("""update `tabPricing Rule` set selling=1 where ifnull(applicable_for, '') in
('', 'Customer', 'Customer Group', 'Territory', 'Sales Partner', 'Campaign')""")