fix: Python 3 compatibility fixes
import reduce from functools Undefined variable
This commit is contained in:
parent
7516e7e66e
commit
234d35781c
@ -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
|
||||
|
@ -292,7 +292,7 @@ def prepare_and_attach_invoice(doc, replace=False):
|
||||
"content": invoice_xml
|
||||
})
|
||||
_file.save()
|
||||
return file
|
||||
return _file
|
||||
|
||||
@frappe.whitelist()
|
||||
def generate_single_invoice(docname):
|
||||
|
Loading…
Reference in New Issue
Block a user