Reload pricing rule in patch

This commit is contained in:
Nabin Hait 2014-06-20 16:30:44 +05:30
parent be50c289f8
commit 1d37698d4c

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')""")