From db8911b05d79c98b10d1ff6b0dd723216961dc3d Mon Sep 17 00:00:00 2001 From: Khushal Trivedi Date: Mon, 2 Dec 2019 15:14:11 +0530 Subject: [PATCH] fix:Pricing Rule error AttributeError: 'str' object has no attribute 'get' #19770 --- erpnext/accounts/doctype/pricing_rule/pricing_rule.py | 1 - 1 file changed, 1 deletion(-) diff --git a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py index e81d186c73..e871d98af6 100644 --- a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py +++ b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py @@ -33,7 +33,6 @@ class PricingRule(Document): if not self.margin_type: self.margin_rate_or_amount = 0.0 def validate_duplicate_apply_on(self): - print("##############",self.apply_on) field = apply_on_dict.get(self.apply_on) values = [d.get(frappe.scrub(self.apply_on)) for d in self.get(field) if field] if len(values) != len(set(values)):