Merge pull request #17424 from adityahase/fix-py3-misc
fix: Python 3 compatibility fixes
This commit is contained in:
commit
8b8e3e7890
@ -3,6 +3,7 @@
|
|||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
from functools import reduce
|
||||||
import frappe, csv
|
import frappe, csv
|
||||||
from frappe import _
|
from frappe import _
|
||||||
from frappe.utils import cstr
|
from frappe.utils import cstr
|
||||||
|
@ -292,7 +292,7 @@ def prepare_and_attach_invoice(doc, replace=False):
|
|||||||
"content": invoice_xml
|
"content": invoice_xml
|
||||||
})
|
})
|
||||||
_file.save()
|
_file.save()
|
||||||
return file
|
return _file
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def generate_single_invoice(docname):
|
def generate_single_invoice(docname):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user