commit | 708e47aadfa85f1ead6039f7105c604aa760507b | [log] [tgz] |
---|---|---|
author | Rushabh Mehta <rmehta@gmail.com> | Wed Aug 08 16:37:31 2018 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Wed Aug 08 16:37:31 2018 +0530 |
tree | b4f5baf547be718f7e7520f8a0c40e2864f7167c | |
parent | 4d0b8da0e547f5ac12d5c724764782520f335462 [diff] [blame] |
optimize(various)
diff --git a/erpnext/stock/__init__.py b/erpnext/stock/__init__.py index 8ef1415..331472a 100644 --- a/erpnext/stock/__init__.py +++ b/erpnext/stock/__init__.py
@@ -51,4 +51,4 @@ return account def get_company_default_inventory_account(company): - return frappe.db.get_value('Company', company, 'default_inventory_account') \ No newline at end of file + return frappe.get_cached_value('Company', company, 'default_inventory_account') \ No newline at end of file