Controller init args fix (#11015)

* Controller init args fix

* cleanup useless code
This commit is contained in:
Nabin Hait
2017-10-02 15:59:27 +05:30
committed by GitHub
parent 1f10d693e9
commit 7eba1a35d3
16 changed files with 35 additions and 38 deletions

View File

@@ -49,7 +49,8 @@ class SellingController(StockController):
if getattr(self, "customer", None):
from erpnext.accounts.party import _get_party_details
party_details = _get_party_details(self.customer,
ignore_permissions=self.flags.ignore_permissions)
ignore_permissions=self.flags.ignore_permissions,
doctype=self.doctype, company=self.company)
if not self.meta.get_field("sales_team"):
party_details.pop("sales_team")