[fix] [wip] daily work summary

This commit is contained in:
Rushabh Mehta
2016-11-08 18:18:40 +05:30
parent 52f101d776
commit fe816c3852
18 changed files with 694 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ from __future__ import unicode_literals
import frappe
def execute():
frappe.reload_doctype('User')
for d in frappe.get_all("Employee"):
employee = frappe.get_doc("Employee", d.name)
if employee.company_email:
@@ -13,5 +14,4 @@ def execute():
elif employee.user_id:
employee.prefered_contact_email = "User ID"
employee.prefered_email = employee.user_id
employee.db_update()
employee.db_update()