Skip to content

Commit

Permalink
fix: Lead Source's module
Browse files Browse the repository at this point in the history
  • Loading branch information
anupamvs committed Feb 8, 2021
1 parent eff675f commit c8700e3
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 145 deletions.
File renamed without changes.
8 changes: 8 additions & 0 deletions erpnext/crm/doctype/lead_source/lead_source.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt

frappe.ui.form.on('Lead Source', {
// refresh: function(frm) {

// }
});
62 changes: 62 additions & 0 deletions erpnext/crm/doctype/lead_source/lead_source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"actions": [],
"allow_rename": 1,
"autoname": "field:source_name",
"creation": "2016-09-16 01:47:47.382372",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"source_name",
"details"
],
"fields": [
{
"fieldname": "source_name",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Source Name",
"reqd": 1,
"unique": 1
},
{
"fieldname": "details",
"fieldtype": "Text Editor",
"label": "Details"
}
],
"links": [],
"modified": "2021-02-08 12:51:48.971517",
"modified_by": "Administrator",
"module": "CRM",
"name": "Lead Source",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Sales Manager",
"share": 1,
"write": 1
},
{
"create": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Sales User",
"share": 1,
"write": 1
}
],
"quick_entry": 1,
"sort_field": "modified",
"sort_order": "DESC"
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt

from __future__ import unicode_literals
import frappe
# import frappe
from frappe.model.document import Document

class LeadSource(Document):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
from __future__ import unicode_literals

import frappe
# import frappe
import unittest

# test_records = frappe.get_test_records('Lead Source')

class TestLeadSource(unittest.TestCase):
pass
8 changes: 0 additions & 8 deletions erpnext/selling/doctype/lead_source/lead_source.js

This file was deleted.

131 changes: 0 additions & 131 deletions erpnext/selling/doctype/lead_source/lead_source.json

This file was deleted.

0 comments on commit c8700e3

Please sign in to comment.