From ca37ff8b08d5b0dd6db1bd48912807aa40872aba Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 24 Jun 2014 15:26:40 +0530 Subject: [PATCH] Fix in pricing rule patch --- erpnext/patches/v4_0/customer_discount_to_pricing_rule.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/patches/v4_0/customer_discount_to_pricing_rule.py b/erpnext/patches/v4_0/customer_discount_to_pricing_rule.py index fa35898df3..bd27174a0e 100644 --- a/erpnext/patches/v4_0/customer_discount_to_pricing_rule.py +++ b/erpnext/patches/v4_0/customer_discount_to_pricing_rule.py @@ -24,7 +24,8 @@ def execute(): "applicable_for": "Customer", "customer": d.parent, "price_or_discount": "Discount Percentage", - "discount_percentage": d.discount + "discount_percentage": d.discount, + "selling": 1 }).insert() frappe.db.auto_commit_on_many_writes = False