Fixes saving of Sales Order and fetching Prices frappe/frappe#478

This commit is contained in:
Anand Doshi
2014-04-11 16:51:27 +05:30
parent 13ae548ff6
commit bd67e87921
9 changed files with 319 additions and 307 deletions

View File

@@ -87,7 +87,7 @@ class AccountsController(TransactionBase):
"""set missing item values"""
from erpnext.stock.get_item_details import get_item_details
if hasattr(self, "fname"):
parent_dict = {}
parent_dict = {"doctype": self.doctype}
for fieldname in self.meta.get_valid_columns():
parent_dict[fieldname] = self.get(fieldname)