mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 13:09:17 +00:00
moved directory structure
This commit is contained in:
15
patches/august_2012/task_allocated_to_assigned.py
Normal file
15
patches/august_2012/task_allocated_to_assigned.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from __future__ import unicode_literals
|
||||
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'],
|
||||
'date': t['creation']
|
||||
})
|
||||
Reference in New Issue
Block a user