From 6edce82aef6f3ded9f7ebb9a9d4cc9451d31c6ca Mon Sep 17 00:00:00 2001 From: Roland Date: Mon, 30 Sep 2019 07:26:22 +0200 Subject: [PATCH] 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 --- erpnext/shopping_cart/cart.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/erpnext/shopping_cart/cart.py b/erpnext/shopping_cart/cart.py index db2c3277d0f..40cb7c87004 100644 --- a/erpnext/shopping_cart/cart.py +++ b/erpnext/shopping_cart/cart.py @@ -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()