commit | 234d35781c58dae0354d842b4bfbc297fa5a0335 | [log] [tgz] |
---|---|---|
author | Aditya Hase <aditya@adityahase.com> | Wed May 01 11:48:10 2019 +0530 |
committer | Aditya Hase <aditya@adityahase.com> | Wed May 01 11:52:37 2019 +0530 |
tree | b08d9dfcd9186401b2134d1855ead2d04aa1c68d | |
parent | 7516e7e66e9e9da69695e2777bc8ff143ec637a6 [diff] |
fix: Python 3 compatibility fixes import reduce from functools Undefined variable
diff --git a/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py b/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py index 948be64..76efa48 100644 --- a/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py +++ b/erpnext/accounts/doctype/chart_of_accounts_importer/chart_of_accounts_importer.py
@@ -3,6 +3,7 @@ # For license information, please see license.txt from __future__ import unicode_literals +from functools import reduce import frappe, csv from frappe import _ from frappe.utils import cstr
diff --git a/erpnext/regional/italy/utils.py b/erpnext/regional/italy/utils.py index 876bdcf..88e7c3e 100644 --- a/erpnext/regional/italy/utils.py +++ b/erpnext/regional/italy/utils.py
@@ -292,7 +292,7 @@ "content": invoice_xml }) _file.save() - return file + return _file @frappe.whitelist() def generate_single_invoice(docname):