do not require address in webshop (#19096)

fix: #17559 - in webshop adding address should not be mandatory e.g. for online service goods, button to add address remains available
This commit is contained in:
Roland 2019-09-30 07:26:22 +02:00 committed by Nabin Hait
parent e19e16fbf1
commit 6edce82aef

View File

@ -55,8 +55,6 @@ def place_order():
cart_settings = frappe.db.get_value("Shopping Cart Settings", None,
["company", "allow_items_not_in_stock"], as_dict=1)
quotation.company = cart_settings.company
if not quotation.get("customer_address"):
throw(_("{0} is required").format(_(quotation.meta.get_label("customer_address"))))
quotation.flags.ignore_permissions = True
quotation.submit()