mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-19 09:35:03 +00:00
Merge pull request #17424 from adityahase/fix-py3-misc
fix: Python 3 compatibility fixes
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user