frappe/frappe#478, more changes, removed bean

This commit is contained in:
Rushabh Mehta
2014-04-03 14:30:42 +05:30
parent d36cb5c812
commit f14b809ab5
59 changed files with 243 additions and 198 deletions

View File

@@ -32,12 +32,12 @@ class SellingController(StockController):
self.set_taxes("other_charges", "taxes_and_charges")
def set_missing_lead_customer_details(self):
if self.customer:
if getattr(self, "customer", None):
from erpnext.accounts.party import _get_party_details
self.update_if_missing(_get_party_details(self.customer,
ignore_permissions=self.ignore_permissions))
elif self.lead:
elif getattr(self, "lead", None):
from erpnext.selling.doctype.lead.lead import get_lead_details
self.update_if_missing(get_lead_details(self.lead))