Merge pull request #17424 from adityahase/fix-py3-misc

fix: Python 3 compatibility fixes
This commit is contained in:
Aditya Hase 2019-05-01 16:45:11 +05:30 committed by GitHub
commit 8b8e3e7890
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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):