mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
[hotfix] fixes for TypeError: 'NoneType' object is not iterable (#10484)
This commit is contained in:
@@ -163,6 +163,8 @@ def get_tax_template(posting_date, args):
|
|||||||
return tax_template
|
return tax_template
|
||||||
|
|
||||||
def get_customer_group_condition(customer_group):
|
def get_customer_group_condition(customer_group):
|
||||||
customer_groups = ["'%s'"%(d.name) for d in get_parent_customer_groups(frappe.db.escape(customer_group))]
|
condition = ""
|
||||||
condition = ",".join(['%s'] * len(customer_groups))%(tuple(customer_groups))
|
customer_groups = ["'%s'"%(frappe.db.escape(d.name)) for d in get_parent_customer_groups(customer_group)]
|
||||||
|
if customer_groups:
|
||||||
|
condition = ",".join(['%s'] * len(customer_groups))%(tuple(customer_groups))
|
||||||
return condition
|
return condition
|
||||||
Reference in New Issue
Block a user