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:
parent
e19e16fbf1
commit
6edce82aef
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user