2012-08-13 07:45:36 +00:00
|
|
|
from __future__ import unicode_literals
|
2012-08-08 07:24:47 +00:00
|
|
|
import webnotes
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
from webnotes.widgets.form.assign_to import add
|
|
|
|
for t in webnotes.conn.sql("""select * from tabTask
|
|
|
|
where ifnull(allocated_to, '')!=''""", as_dict=1):
|
|
|
|
add({
|
|
|
|
'doctype': "Task",
|
|
|
|
'name': t['name'],
|
|
|
|
'assign_to': t['allocated_to'],
|
|
|
|
'assigned_by': t['owner'],
|
|
|
|
'description': t['subject'],
|
2012-11-15 11:06:42 +00:00
|
|
|
'date': t['creation'],
|
|
|
|
"no_notification": True
|
2012-08-08 07:24:47 +00:00
|
|
|
})
|