mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 12:39:18 +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
|
# 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):
|
||||||
|
|||||||
Reference in New Issue
Block a user