Merge branch 'hotfix'
This commit is contained in:
commit
36830016ee
@ -2,7 +2,7 @@
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
__version__ = '7.0.37'
|
||||
__version__ = '7.0.38'
|
||||
|
||||
def get_default_company(user=None):
|
||||
'''Get default company for user'''
|
||||
|
@ -9,6 +9,8 @@ def execute():
|
||||
customers = frappe._dict(frappe.db.sql("select name, customer_name from tabCustomer"))
|
||||
suppliers = frappe._dict(frappe.db.sql("select name, supplier_name from tabSupplier"))
|
||||
|
||||
frappe.reload_doc('accounts', 'doctype', 'payment_entry')
|
||||
|
||||
pe_list = frappe.db.sql("""select name, party_type, party from `tabPayment Entry`
|
||||
where party is not null and party != ''""", as_dict=1)
|
||||
for pe in pe_list:
|
||||
|
@ -2,7 +2,7 @@ from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
if frappe.db.table_exists("Time Log"):
|
||||
if frappe.db.table_exists("Time Log") and "employee" in frappe.db.get_table_columns("Time Log"):
|
||||
timesheet = frappe.db.sql("""select tl.employee as employee, ts.name as name,
|
||||
tl.modified as modified, tl.modified_by as modified_by, tl.creation as creation, tl.owner as owner
|
||||
from
|
||||
|
Loading…
Reference in New Issue
Block a user