mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 08:05:00 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user