Hi,
I am trying to make a tool for entering communications for Sales people. But I am getting an error as below:
Traceback (innermost last):
File "/home/aditya/frappe-bench/apps/frappe/frappe/widgets/form/load.py", line 30, in getdoc
doc = frappe.get_doc(doctype, name)
File "/home/aditya/frappe-bench/apps/frappe/frappe/__init__.py", line 352, in get_doc
return frappe.model.document.get_doc(arg1, arg2)
File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 24, in get_doc
controller = get_controller(doctype)
File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 43, in get_controller
raise ImportError, doctype
ImportError: Sales Call
Traceback (innermost last):
File "/home/aditya/frappe-bench/apps/frappe/frappe/app.py", line 49, in application
response = frappe.handler.handle()
File "/home/aditya/frappe-bench/apps/frappe/frappe/handler.py", line 66, in handle
execute_cmd(cmd)
File "/home/aditya/frappe-bench/apps/frappe/frappe/handler.py", line 89, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File "/home/aditya/frappe-bench/apps/frappe/frappe/__init__.py", line 531, in call
return fn(*args, **newargs)
File "/home/aditya/frappe-bench/apps/frappe/frappe/widgets/form/load.py", line 30, in getdoc
doc = frappe.get_doc(doctype, name)
File "/home/aditya/frappe-bench/apps/frappe/frappe/__init__.py", line 352, in get_doc
return frappe.model.document.get_doc(arg1, arg2)
File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 24, in get_doc
controller = get_controller(doctype)
File "/home/aditya/frappe-bench/apps/frappe/frappe/model/document.py", line 43, in get_controller
raise ImportError, doctype
ImportError: Sales Call
The code in the sale_call.py is as below:
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import flt
from frappe.model.document import Document
import json
class PaymentTool(Document):
def make_communication(self):
com = frappe.new_doc('Communication')
com.subject = self.subject