Quotation Item Table can be empty
diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py
index b60aa86..840b111 100644
--- a/erpnext/accounts/party.py
+++ b/erpnext/accounts/party.py
@@ -13,11 +13,16 @@
@frappe.whitelist()
def get_party_details(party=None, account=None, party_type="Customer", company=None,
posting_date=None, price_list=None, currency=None):
+
+ return _get_party_details(party, account, party_type, company, posting_date, price_list, currency)
+
+def _get_party_details(party=None, account=None, party_type="Customer", company=None,
+ posting_date=None, price_list=None, currency=None, ignore_permissions=False):
out = frappe._dict(set_account_and_due_date(party, account, party_type, company, posting_date))
party = out[party_type.lower()]
- if not frappe.has_permission(party_type, "read", party):
+ if not ignore_permissions and not frappe.has_permission(party_type, "read", party):
frappe.throw("Not Permitted", frappe.PermissionError)
party_bean = frappe.bean(party_type, party)
diff --git a/erpnext/selling/doctype/quotation/quotation.txt b/erpnext/selling/doctype/quotation/quotation.txt
index 740bf69..0508e5d 100644
--- a/erpnext/selling/doctype/quotation/quotation.txt
+++ b/erpnext/selling/doctype/quotation/quotation.txt
@@ -2,7 +2,7 @@
{
"creation": "2013-05-24 19:29:08",
"docstatus": 0,
- "modified": "2014-01-31 19:42:32",
+ "modified": "2014-01-31 19:43:00",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -333,7 +333,7 @@
"oldfieldtype": "Table",
"options": "Quotation Item",
"read_only": 0,
- "reqd": 1,
+ "reqd": 0,
"width": "40px"
},
{