[ux] fixed creation via tree views for Item Group etc

This commit is contained in:
Rushabh Mehta 2015-01-01 15:59:34 +05:30
parent 56ac3fb29d
commit 4c36d7388c
40 changed files with 4466 additions and 4429 deletions

View File

@ -176,8 +176,8 @@
],
"icon": "icon-money",
"idx": 1,
"in_create": 1,
"modified": "2014-08-27 15:12:35.506765",
"in_create": 0,
"modified": "2015-01-01 15:36:43.219662",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Account",

View File

@ -1,5 +1,5 @@
{
"creation": "2013-02-22 01:27:38.000000",
"creation": "2013-02-22 01:27:38",
"docstatus": 0,
"doctype": "DocType",
"fields": [
@ -24,7 +24,7 @@
"width": "120px"
},
{
"description": "<a href=\"#Sales Browser/Territory\">Add / Edit</a>",
"description": "",
"fieldname": "territory",
"fieldtype": "Link",
"in_list_view": 1,
@ -60,9 +60,10 @@
],
"idx": 1,
"istable": 1,
"modified": "2013-12-20 19:23:00.000000",
"modified": "2015-01-01 14:29:58.597428",
"modified_by": "Administrator",
"module": "Accounts",
"name": "C-Form Invoice Detail",
"owner": "Administrator"
"owner": "Administrator",
"permissions": []
}

View File

@ -16,7 +16,7 @@
"read_only": 0
},
{
"description": "<a href=\"#Sales Browser/Territory\">Add / Edit</a>",
"description": "",
"fieldname": "territory",
"fieldtype": "Link",
"in_list_view": 1,
@ -207,7 +207,7 @@
],
"icon": "icon-cog",
"idx": 1,
"modified": "2014-09-09 05:35:31.969193",
"modified": "2015-01-01 14:30:03.415900",
"modified_by": "Administrator",
"module": "Accounts",
"name": "POS Setting",

View File

@ -261,7 +261,7 @@
"read_only": 0
},
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "item_group",
"fieldtype": "Link",
"hidden": 1,
@ -399,7 +399,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-09-09 05:35:35.712453",
"modified": "2015-01-01 14:29:58.851242",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Purchase Invoice Item",

File diff suppressed because it is too large Load Diff

View File

@ -298,7 +298,7 @@
"read_only": 0
},
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "item_group",
"fieldtype": "Link",
"hidden": 1,
@ -439,7 +439,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-09-09 05:35:36.019576",
"modified": "2015-01-01 14:29:59.027192",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Sales Invoice Item",

View File

@ -44,10 +44,14 @@ pscript['onload_Accounts Browser'] = function(wrapper){
wrapper.page.add_menu_item(__('New Company'), function() { newdoc('Company'); }, true);
}
wrapper.page.set_primary_action(__('Refresh'), function() {
wrapper.page.set_secondary_action(__('Refresh'), function() {
wrapper.$company_select.change();
});
wrapper.page.set_primary_action(__('New'), function() {
erpnext.account_chart && erpnext.account_chart.new_account();
});
// company-select
wrapper.$company_select = wrapper.page.add_select("Company", [])
.change(function() {
@ -181,6 +185,13 @@ erpnext.AccountsChart = Class.extend({
new_account: function() {
var me = this;
var node = me.tree.get_selected_node();
if(!(node && node.expandable)) {
frappe.msgprint(__("Select a group node first."));
return;
}
// the dialog
var d = new frappe.ui.Dialog({
title:__('New Account'),
@ -194,8 +205,7 @@ erpnext.AccountsChart = Class.extend({
'Equity', 'Cost of Goods Sold', 'Fixed Asset', 'Expense Account',
'Income Account', 'Tax', 'Chargeable'].join('\n'),
description: __("Optional. This setting will be used to filter in various transactions.") },
{fieldtype:'Float', fieldname:'tax_rate', label:__('Tax Rate')},
{fieldtype:'Button', fieldname:'create_new', label:__('Create New') }
{fieldtype:'Float', fieldname:'tax_rate', label:__('Tax Rate')}
]
})
@ -224,7 +234,7 @@ erpnext.AccountsChart = Class.extend({
})
// create
$(fd.create_new.input).click(function() {
d.set_primary_action(__("Create New"), function() {
var btn = this;
var v = d.get_values();
if(!v) return;

View File

@ -1,22 +1,21 @@
frappe.pages['pos'].onload = function(wrapper) {
frappe.ui.make_app_page({
var page = frappe.ui.make_app_page({
parent: wrapper,
title: __('Start POS'),
single_column: true
});
wrapper.body.html('<div class="text-center" style="margin: 40px">\
page.main.html('<div class="text-center" style="padding: 40px">\
<p>' + __("Select type of transaction") + '</p>\
<p class="select-type" style="margin: auto; max-width: 300px; margin-bottom: 15px;"></p>\
<p class="alert alert-warning pos-setting-message hide">'
+ __("Please setup your POS Preferences")
+ ': <a class="btn btn-default" onclick="newdoc(\'POS Setting\')">'
+ __("Make new POS Setting") + '</a></p>\
<p><button class="btn btn-primary">' + __("Start") + '</button></p>\
<p class="pos-setting-message hide">'
+ '<br><a class="btn btn-default btn-sm" onclick="newdoc(\'POS Setting\')">'
+ __("Make new POS Setting") + '</a><br><br></p>\
<p><button class="btn btn-primary btn-sm">' + __("Start") + '</button></p>\
</div>');
var pos_type = frappe.ui.form.make_control({
parent: wrapper.body.find(".select-type"),
parent: page.main.find(".select-type"),
df: {
fieldtype: "Select",
options: [
@ -35,7 +34,7 @@ frappe.pages['pos'].onload = function(wrapper) {
pos_type.refresh();
wrapper.body.find(".btn-primary").on("click", function() {
page.main.find(".btn-primary").on("click", function() {
erpnext.open_as_pos = true;
new_doc(pos_type.get_value());
});
@ -44,7 +43,7 @@ frappe.pages['pos'].onload = function(wrapper) {
url: "/api/resource/POS Setting",
success: function(data) {
if(!data.data.length) {
wrapper.body.find(".pos-setting-message").removeClass('hide');
page.main.find(".pos-setting-message").removeClass('hide');
}
}
})

View File

@ -354,7 +354,7 @@
"permlevel": 0
},
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "item_group",
"fieldtype": "Link",
"hidden": 1,
@ -455,7 +455,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-11-07 15:09:45.530230",
"modified": "2015-01-01 14:29:59.868306",
"modified_by": "Administrator",
"module": "Buying",
"name": "Purchase Order Item",

View File

@ -288,7 +288,7 @@
"read_only": 1
},
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "item_group",
"fieldtype": "Link",
"hidden": 0,
@ -331,7 +331,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-09-09 05:35:36.623995",
"modified": "2015-01-01 14:29:59.198926",
"modified_by": "Administrator",
"module": "Buying",
"name": "Supplier Quotation Item",

View File

@ -11,3 +11,11 @@ $(document).bind('toolbar_setup', function() {
$('[data-link="docs"]').attr("href", "https://erpnext.com/user-guide")
});
// doctypes created via tree
frappe.create_routes["Customer Group"] = "Sales Browser/Customer Group";
frappe.create_routes["Territory"] = "Sales Browser/Territory";
frappe.create_routes["Item Group"] = "Sales Browser/Item Group";
frappe.create_routes["Sales Person"] = "Sales Browser/Sales Person";
frappe.create_routes["Account"] = "Accounts Browser/Account";
frappe.create_routes["Cost Center"] = "Accounts Browser/Cost Center";

View File

@ -73,7 +73,7 @@
"width": "50%"
},
{
"description": "<a href=\"#Sales Browser/Customer Group\">Add / Edit</a>",
"description": "",
"fieldname": "customer_group",
"fieldtype": "Link",
"hidden": 0,
@ -88,7 +88,7 @@
"search_index": 1
},
{
"description": "<a href=\"#Sales Browser/Territory\">Add / Edit</a>",
"description": "",
"fieldname": "territory",
"fieldtype": "Link",
"in_list_view": 1,
@ -266,7 +266,7 @@
],
"icon": "icon-user",
"idx": 1,
"modified": "2014-12-24 16:23:11.018042",
"modified": "2015-01-01 14:30:00.368262",
"modified_by": "Administrator",
"module": "Selling",
"name": "Customer",

View File

@ -107,7 +107,7 @@
},
{
"depends_on": "customer",
"description": "<a href=\"#Sales Browser/Territory\">Add / Edit</a>",
"description": "",
"fieldname": "territory",
"fieldtype": "Link",
"in_filter": 1,
@ -120,7 +120,7 @@
},
{
"depends_on": "customer",
"description": "<a href=\"#Sales Browser/Customer Group\">Add / Edit</a>",
"description": "",
"fieldname": "customer_group",
"fieldtype": "Link",
"label": "Customer Group",
@ -236,7 +236,7 @@
"icon": "icon-wrench",
"idx": 1,
"is_submittable": 1,
"modified": "2014-12-24 15:33:52.513813",
"modified": "2015-01-01 14:30:01.822455",
"modified_by": "Administrator",
"module": "Selling",
"name": "Installation Note",

View File

@ -1,426 +1,426 @@
{
"allow_import": 1,
"autoname": "naming_series:",
"creation": "2013-04-10 11:45:37",
"docstatus": 0,
"doctype": "DocType",
"document_type": "Master",
"allow_import": 1,
"autoname": "naming_series:",
"creation": "2013-04-10 11:45:37",
"docstatus": 0,
"doctype": "DocType",
"document_type": "Master",
"fields": [
{
"fieldname": "lead_details",
"fieldtype": "Section Break",
"label": "Lead Details",
"options": "icon-user",
"fieldname": "lead_details",
"fieldtype": "Section Break",
"label": "Lead Details",
"options": "icon-user",
"permlevel": 0
},
},
{
"fieldname": "naming_series",
"fieldtype": "Select",
"label": "Series",
"no_copy": 1,
"oldfieldname": "naming_series",
"oldfieldtype": "Select",
"options": "LEAD-",
"permlevel": 0,
"fieldname": "naming_series",
"fieldtype": "Select",
"label": "Series",
"no_copy": 1,
"oldfieldname": "naming_series",
"oldfieldtype": "Select",
"options": "LEAD-",
"permlevel": 0,
"reqd": 0
},
},
{
"fieldname": "lead_name",
"fieldtype": "Data",
"in_filter": 1,
"in_list_view": 1,
"label": "Contact Name",
"oldfieldname": "lead_name",
"oldfieldtype": "Data",
"permlevel": 0,
"reqd": 1,
"fieldname": "lead_name",
"fieldtype": "Data",
"in_filter": 1,
"in_list_view": 1,
"label": "Contact Name",
"oldfieldname": "lead_name",
"oldfieldtype": "Data",
"permlevel": 0,
"reqd": 1,
"search_index": 1
},
},
{
"fieldname": "company_name",
"fieldtype": "Data",
"in_filter": 1,
"in_list_view": 1,
"label": "Organization Name",
"oldfieldname": "company_name",
"oldfieldtype": "Data",
"permlevel": 0,
"reqd": 0,
"fieldname": "company_name",
"fieldtype": "Data",
"in_filter": 1,
"in_list_view": 1,
"label": "Organization Name",
"oldfieldname": "company_name",
"oldfieldtype": "Data",
"permlevel": 0,
"reqd": 0,
"search_index": 0
},
},
{
"fieldname": "email_id",
"fieldtype": "Data",
"label": "Email Id",
"oldfieldname": "email_id",
"oldfieldtype": "Data",
"permlevel": 0,
"reqd": 0,
"fieldname": "email_id",
"fieldtype": "Data",
"label": "Email Id",
"oldfieldname": "email_id",
"oldfieldtype": "Data",
"permlevel": 0,
"reqd": 0,
"search_index": 1
},
},
{
"default": "Lead",
"fieldname": "status",
"fieldtype": "Select",
"in_filter": 1,
"in_list_view": 1,
"label": "Status",
"no_copy": 1,
"oldfieldname": "status",
"oldfieldtype": "Select",
"options": "Lead\nOpen\nReplied\nOpportunity\nInterested\nConverted\nDo Not Contact",
"permlevel": 0,
"reqd": 1,
"default": "Lead",
"fieldname": "status",
"fieldtype": "Select",
"in_filter": 1,
"in_list_view": 1,
"label": "Status",
"no_copy": 1,
"oldfieldname": "status",
"oldfieldtype": "Select",
"options": "Lead\nOpen\nReplied\nOpportunity\nInterested\nConverted\nDo Not Contact",
"permlevel": 0,
"reqd": 1,
"search_index": 1
},
},
{
"fieldname": "source",
"fieldtype": "Select",
"in_filter": 1,
"in_list_view": 1,
"label": "Source",
"no_copy": 1,
"oldfieldname": "source",
"oldfieldtype": "Select",
"options": "\nAdvertisement\nBlog Post\nCampaign\nCall\nCustomer\nExhibition\nSupplier\nWebsite\nEmail",
"permlevel": 0,
"reqd": 0,
"fieldname": "source",
"fieldtype": "Select",
"in_filter": 1,
"in_list_view": 1,
"label": "Source",
"no_copy": 1,
"oldfieldname": "source",
"oldfieldtype": "Select",
"options": "\nAdvertisement\nBlog Post\nCampaign\nCall\nCustomer\nExhibition\nSupplier\nWebsite\nEmail",
"permlevel": 0,
"reqd": 0,
"search_index": 0
},
},
{
"fieldname": "col_break123",
"fieldtype": "Column Break",
"permlevel": 0,
"fieldname": "col_break123",
"fieldtype": "Column Break",
"permlevel": 0,
"width": "50%"
},
},
{
"depends_on": "eval:doc.source == 'Customer'",
"fieldname": "customer",
"fieldtype": "Link",
"hidden": 0,
"label": "From Customer",
"oldfieldname": "customer",
"oldfieldtype": "Link",
"options": "Customer",
"depends_on": "eval:doc.source == 'Customer'",
"fieldname": "customer",
"fieldtype": "Link",
"hidden": 0,
"label": "From Customer",
"oldfieldname": "customer",
"oldfieldtype": "Link",
"options": "Customer",
"permlevel": 0
},
},
{
"depends_on": "eval:doc.source == 'Campaign'",
"description": "Enter campaign name if the source of lead is campaign.",
"fieldname": "campaign_name",
"fieldtype": "Link",
"hidden": 0,
"label": "Campaign Name",
"oldfieldname": "campaign_name",
"oldfieldtype": "Link",
"options": "Campaign",
"depends_on": "eval:doc.source == 'Campaign'",
"description": "Enter campaign name if the source of lead is campaign.",
"fieldname": "campaign_name",
"fieldtype": "Link",
"hidden": 0,
"label": "Campaign Name",
"oldfieldname": "campaign_name",
"oldfieldtype": "Link",
"options": "Campaign",
"permlevel": 0
},
},
{
"default": "__user",
"fieldname": "lead_owner",
"fieldtype": "Link",
"in_filter": 1,
"label": "Lead Owner",
"oldfieldname": "lead_owner",
"oldfieldtype": "Link",
"options": "User",
"permlevel": 0,
"default": "__user",
"fieldname": "lead_owner",
"fieldtype": "Link",
"in_filter": 1,
"label": "Lead Owner",
"oldfieldname": "lead_owner",
"oldfieldtype": "Link",
"options": "User",
"permlevel": 0,
"search_index": 1
},
},
{
"allow_on_submit": 0,
"fieldname": "contact_by",
"fieldtype": "Link",
"hidden": 0,
"in_filter": 1,
"label": "Next Contact By",
"oldfieldname": "contact_by",
"oldfieldtype": "Link",
"options": "User",
"permlevel": 0,
"print_hide": 0,
"reqd": 0,
"allow_on_submit": 0,
"fieldname": "contact_by",
"fieldtype": "Link",
"hidden": 0,
"in_filter": 1,
"label": "Next Contact By",
"oldfieldname": "contact_by",
"oldfieldtype": "Link",
"options": "User",
"permlevel": 0,
"print_hide": 0,
"reqd": 0,
"width": "100px"
},
},
{
"allow_on_submit": 0,
"description": "Add to calendar on this date",
"fieldname": "contact_date",
"fieldtype": "Datetime",
"in_filter": 1,
"label": "Next Contact Date",
"no_copy": 1,
"oldfieldname": "contact_date",
"oldfieldtype": "Date",
"permlevel": 0,
"reqd": 0,
"allow_on_submit": 0,
"description": "Add to calendar on this date",
"fieldname": "contact_date",
"fieldtype": "Datetime",
"in_filter": 1,
"label": "Next Contact Date",
"no_copy": 1,
"oldfieldname": "contact_date",
"oldfieldtype": "Date",
"permlevel": 0,
"reqd": 0,
"width": "100px"
},
},
{
"fieldname": "fold",
"fieldtype": "Fold",
"label": "fold",
"fieldname": "fold",
"fieldtype": "Fold",
"label": "fold",
"permlevel": 0
},
},
{
"fieldname": "contact_info",
"fieldtype": "Section Break",
"label": "Address & Contact",
"oldfieldtype": "Column Break",
"options": "icon-map-marker",
"fieldname": "contact_info",
"fieldtype": "Section Break",
"label": "Address & Contact",
"oldfieldtype": "Column Break",
"options": "icon-map-marker",
"permlevel": 0
},
},
{
"depends_on": "eval:doc.__islocal",
"fieldname": "address_desc",
"fieldtype": "HTML",
"hidden": 0,
"label": "Address Desc",
"options": "<em>Addresses will appear only when you save the lead</em>",
"permlevel": 0,
"depends_on": "eval:doc.__islocal",
"fieldname": "address_desc",
"fieldtype": "HTML",
"hidden": 0,
"label": "Address Desc",
"options": "<em>Addresses will appear only when you save the lead</em>",
"permlevel": 0,
"print_hide": 1
},
},
{
"fieldname": "address_html",
"fieldtype": "HTML",
"hidden": 0,
"label": "Address HTML",
"permlevel": 0,
"print_hide": 0,
"fieldname": "address_html",
"fieldtype": "HTML",
"hidden": 0,
"label": "Address HTML",
"permlevel": 0,
"print_hide": 0,
"read_only": 1
},
},
{
"fieldname": "column_break2",
"fieldtype": "Column Break",
"fieldname": "column_break2",
"fieldtype": "Column Break",
"permlevel": 0
},
},
{
"fieldname": "phone",
"fieldtype": "Data",
"label": "Phone",
"oldfieldname": "contact_no",
"oldfieldtype": "Data",
"permlevel": 0,
"fieldname": "phone",
"fieldtype": "Data",
"label": "Phone",
"oldfieldname": "contact_no",
"oldfieldtype": "Data",
"permlevel": 0,
"reqd": 0
},
},
{
"fieldname": "mobile_no",
"fieldtype": "Data",
"label": "Mobile No.",
"oldfieldname": "mobile_no",
"oldfieldtype": "Data",
"fieldname": "mobile_no",
"fieldtype": "Data",
"label": "Mobile No.",
"oldfieldname": "mobile_no",
"oldfieldtype": "Data",
"permlevel": 0
},
},
{
"fieldname": "fax",
"fieldtype": "Data",
"label": "Fax",
"oldfieldname": "fax",
"oldfieldtype": "Data",
"fieldname": "fax",
"fieldtype": "Data",
"label": "Fax",
"oldfieldname": "fax",
"oldfieldtype": "Data",
"permlevel": 0
},
},
{
"fieldname": "website",
"fieldtype": "Data",
"label": "Website",
"oldfieldname": "website",
"oldfieldtype": "Data",
"fieldname": "website",
"fieldtype": "Data",
"label": "Website",
"oldfieldname": "website",
"oldfieldtype": "Data",
"permlevel": 0
},
},
{
"description": "<a href=\"#Sales Browser/Territory\">Add / Edit</a>",
"fieldname": "territory",
"fieldtype": "Link",
"label": "Territory",
"oldfieldname": "territory",
"oldfieldtype": "Link",
"options": "Territory",
"permlevel": 0,
"description": "",
"fieldname": "territory",
"fieldtype": "Link",
"label": "Territory",
"oldfieldname": "territory",
"oldfieldtype": "Link",
"options": "Territory",
"permlevel": 0,
"print_hide": 1
},
},
{
"fieldname": "more_info",
"fieldtype": "Section Break",
"label": "More Info",
"oldfieldtype": "Section Break",
"options": "icon-file-text",
"fieldname": "more_info",
"fieldtype": "Section Break",
"label": "More Info",
"oldfieldtype": "Section Break",
"options": "icon-file-text",
"permlevel": 0
},
},
{
"fieldname": "type",
"fieldtype": "Select",
"in_filter": 1,
"label": "Lead Type",
"oldfieldname": "type",
"oldfieldtype": "Select",
"options": "\nClient\nChannel Partner\nConsultant",
"fieldname": "type",
"fieldtype": "Select",
"in_filter": 1,
"label": "Lead Type",
"oldfieldname": "type",
"oldfieldtype": "Select",
"options": "\nClient\nChannel Partner\nConsultant",
"permlevel": 0
},
},
{
"fieldname": "market_segment",
"fieldtype": "Select",
"hidden": 0,
"in_filter": 1,
"label": "Market Segment",
"oldfieldname": "market_segment",
"oldfieldtype": "Select",
"options": "\nLower Income\nMiddle Income\nUpper Income",
"permlevel": 0,
"reqd": 0,
"fieldname": "market_segment",
"fieldtype": "Select",
"hidden": 0,
"in_filter": 1,
"label": "Market Segment",
"oldfieldname": "market_segment",
"oldfieldtype": "Select",
"options": "\nLower Income\nMiddle Income\nUpper Income",
"permlevel": 0,
"reqd": 0,
"search_index": 0
},
},
{
"fieldname": "industry",
"fieldtype": "Link",
"label": "Industry",
"oldfieldname": "industry",
"oldfieldtype": "Link",
"options": "Industry Type",
"fieldname": "industry",
"fieldtype": "Link",
"label": "Industry",
"oldfieldname": "industry",
"oldfieldtype": "Link",
"options": "Industry Type",
"permlevel": 0
},
},
{
"fieldname": "request_type",
"fieldtype": "Select",
"label": "Request Type",
"oldfieldname": "request_type",
"oldfieldtype": "Select",
"options": "\nProduct Enquiry\nRequest for Information\nSuggestions\nOther",
"fieldname": "request_type",
"fieldtype": "Select",
"label": "Request Type",
"oldfieldname": "request_type",
"oldfieldtype": "Select",
"options": "\nProduct Enquiry\nRequest for Information\nSuggestions\nOther",
"permlevel": 0
},
},
{
"fieldname": "fiscal_year",
"fieldtype": "Link",
"hidden": 1,
"in_filter": 1,
"label": "Fiscal Year",
"oldfieldname": "fiscal_year",
"oldfieldtype": "Select",
"options": "Fiscal Year",
"fieldname": "fiscal_year",
"fieldtype": "Link",
"hidden": 1,
"in_filter": 1,
"label": "Fiscal Year",
"oldfieldname": "fiscal_year",
"oldfieldtype": "Select",
"options": "Fiscal Year",
"permlevel": 0
},
},
{
"fieldname": "column_break3",
"fieldtype": "Column Break",
"oldfieldtype": "Column Break",
"permlevel": 0,
"fieldname": "column_break3",
"fieldtype": "Column Break",
"oldfieldtype": "Column Break",
"permlevel": 0,
"width": "50%"
},
},
{
"fieldname": "company",
"fieldtype": "Link",
"label": "Company",
"oldfieldname": "company",
"oldfieldtype": "Link",
"options": "Company",
"permlevel": 0,
"fieldname": "company",
"fieldtype": "Link",
"label": "Company",
"oldfieldname": "company",
"oldfieldtype": "Link",
"options": "Company",
"permlevel": 0,
"reqd": 0
},
},
{
"fieldname": "unsubscribed",
"fieldtype": "Check",
"label": "Unsubscribed",
"fieldname": "unsubscribed",
"fieldtype": "Check",
"label": "Unsubscribed",
"permlevel": 0
},
},
{
"fieldname": "blog_subscriber",
"fieldtype": "Check",
"label": "Blog Subscriber",
"fieldname": "blog_subscriber",
"fieldtype": "Check",
"label": "Blog Subscriber",
"permlevel": 0
}
],
"icon": "icon-user",
"idx": 1,
"modified": "2014-12-01 08:22:23.286314",
"modified_by": "Administrator",
"module": "Selling",
"name": "Lead",
"owner": "Administrator",
],
"icon": "icon-user",
"idx": 1,
"modified": "2015-01-01 14:30:02.458843",
"modified_by": "Administrator",
"module": "Selling",
"name": "Lead",
"owner": "Administrator",
"permissions": [
{
"amend": 0,
"cancel": 0,
"create": 0,
"delete": 0,
"match": "",
"permlevel": 1,
"read": 1,
"report": 1,
"role": "All",
"submit": 0,
"amend": 0,
"cancel": 0,
"create": 0,
"delete": 0,
"match": "",
"permlevel": 1,
"read": 1,
"report": 1,
"role": "All",
"submit": 0,
"write": 0
},
},
{
"amend": 0,
"cancel": 0,
"create": 1,
"delete": 0,
"email": 1,
"permlevel": 0,
"print": 1,
"read": 1,
"report": 1,
"role": "Sales User",
"submit": 0,
"amend": 0,
"cancel": 0,
"create": 1,
"delete": 0,
"email": 1,
"permlevel": 0,
"print": 1,
"read": 1,
"report": 1,
"role": "Sales User",
"submit": 0,
"write": 1
},
},
{
"amend": 0,
"cancel": 0,
"create": 1,
"delete": 1,
"email": 1,
"permlevel": 0,
"print": 1,
"read": 1,
"report": 1,
"role": "Sales Manager",
"submit": 0,
"amend": 0,
"cancel": 0,
"create": 1,
"delete": 1,
"email": 1,
"permlevel": 0,
"print": 1,
"read": 1,
"report": 1,
"role": "Sales Manager",
"submit": 0,
"write": 1
},
},
{
"amend": 0,
"cancel": 0,
"create": 1,
"delete": 0,
"email": 1,
"permlevel": 0,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"submit": 0,
"amend": 0,
"cancel": 0,
"create": 1,
"delete": 0,
"email": 1,
"permlevel": 0,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"submit": 0,
"write": 1
},
},
{
"amend": 0,
"cancel": 0,
"create": 0,
"delete": 0,
"match": "",
"permlevel": 1,
"read": 1,
"report": 1,
"role": "Sales Manager",
"submit": 0,
"amend": 0,
"cancel": 0,
"create": 0,
"delete": 0,
"match": "",
"permlevel": 1,
"read": 1,
"report": 1,
"role": "Sales Manager",
"submit": 0,
"write": 0
},
},
{
"amend": 0,
"cancel": 0,
"create": 0,
"delete": 0,
"match": "",
"permlevel": 1,
"read": 1,
"report": 1,
"role": "Sales User",
"submit": 0,
"amend": 0,
"cancel": 0,
"create": 0,
"delete": 0,
"match": "",
"permlevel": 1,
"read": 1,
"report": 1,
"role": "Sales User",
"submit": 0,
"write": 0
}
],
"search_fields": "lead_name,lead_owner,status",
"sort_field": "modified",
"sort_order": "DESC",
],
"search_fields": "lead_name,lead_owner,status",
"sort_field": "modified",
"sort_order": "DESC",
"title_field": "lead_name"
}
}

View File

@ -1,431 +1,431 @@
{
"allow_import": 1,
"autoname": "naming_series:",
"creation": "2013-03-07 18:50:30",
"description": "Potential Sales Deal",
"docstatus": 0,
"doctype": "DocType",
"document_type": "Transaction",
"allow_import": 1,
"autoname": "naming_series:",
"creation": "2013-03-07 18:50:30",
"description": "Potential Sales Deal",
"docstatus": 0,
"doctype": "DocType",
"document_type": "Transaction",
"fields": [
{
"fieldname": "from_section",
"fieldtype": "Section Break",
"label": "From",
"options": "icon-user",
"fieldname": "from_section",
"fieldtype": "Section Break",
"label": "From",
"options": "icon-user",
"permlevel": 0
},
},
{
"fieldname": "naming_series",
"fieldtype": "Select",
"label": "Series",
"no_copy": 1,
"oldfieldname": "naming_series",
"oldfieldtype": "Select",
"options": "OPTY-",
"permlevel": 0,
"read_only": 0,
"fieldname": "naming_series",
"fieldtype": "Select",
"label": "Series",
"no_copy": 1,
"oldfieldname": "naming_series",
"oldfieldtype": "Select",
"options": "OPTY-",
"permlevel": 0,
"read_only": 0,
"reqd": 1
},
},
{
"fieldname": "enquiry_from",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Opportunity From",
"oldfieldname": "enquiry_from",
"oldfieldtype": "Select",
"options": "\nLead\nCustomer",
"permlevel": 0,
"print_hide": 1,
"read_only": 0,
"report_hide": 0,
"fieldname": "enquiry_from",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Opportunity From",
"oldfieldname": "enquiry_from",
"oldfieldtype": "Select",
"options": "\nLead\nCustomer",
"permlevel": 0,
"print_hide": 1,
"read_only": 0,
"report_hide": 0,
"reqd": 1
},
},
{
"depends_on": "eval:doc.enquiry_from===\"Customer\"",
"fieldname": "customer",
"fieldtype": "Link",
"hidden": 0,
"in_filter": 1,
"in_list_view": 1,
"label": "Customer",
"no_copy": 1,
"oldfieldname": "customer",
"oldfieldtype": "Link",
"options": "Customer",
"permlevel": 0,
"print_hide": 1,
"read_only": 0,
"reqd": 0,
"depends_on": "eval:doc.enquiry_from===\"Customer\"",
"fieldname": "customer",
"fieldtype": "Link",
"hidden": 0,
"in_filter": 1,
"in_list_view": 1,
"label": "Customer",
"no_copy": 1,
"oldfieldname": "customer",
"oldfieldtype": "Link",
"options": "Customer",
"permlevel": 0,
"print_hide": 1,
"read_only": 0,
"reqd": 0,
"search_index": 0
},
},
{
"depends_on": "eval:doc.enquiry_from===\"Lead\"",
"fieldname": "lead",
"fieldtype": "Link",
"hidden": 0,
"in_filter": 1,
"in_list_view": 1,
"label": "Lead",
"oldfieldname": "lead",
"oldfieldtype": "Link",
"options": "Lead",
"permlevel": 0,
"print_hide": 1,
"depends_on": "eval:doc.enquiry_from===\"Lead\"",
"fieldname": "lead",
"fieldtype": "Link",
"hidden": 0,
"in_filter": 1,
"in_list_view": 1,
"label": "Lead",
"oldfieldname": "lead",
"oldfieldtype": "Link",
"options": "Lead",
"permlevel": 0,
"print_hide": 1,
"read_only": 0
},
},
{
"depends_on": "eval:doc.customer || doc.lead",
"fieldname": "customer_name",
"fieldtype": "Data",
"label": "Customer / Lead Name",
"permlevel": 0,
"print_hide": 0,
"depends_on": "eval:doc.customer || doc.lead",
"fieldname": "customer_name",
"fieldtype": "Data",
"label": "Customer / Lead Name",
"permlevel": 0,
"print_hide": 0,
"read_only": 1
},
},
{
"fieldname": "column_break0",
"fieldtype": "Column Break",
"oldfieldtype": "Column Break",
"permlevel": 0,
"read_only": 0,
"fieldname": "column_break0",
"fieldtype": "Column Break",
"oldfieldtype": "Column Break",
"permlevel": 0,
"read_only": 0,
"width": "50%"
},
},
{
"fieldname": "enquiry_type",
"fieldtype": "Select",
"label": "Opportunity Type",
"oldfieldname": "enquiry_type",
"oldfieldtype": "Select",
"options": "\nSales\nMaintenance",
"permlevel": 0,
"read_only": 0,
"fieldname": "enquiry_type",
"fieldtype": "Select",
"label": "Opportunity Type",
"oldfieldname": "enquiry_type",
"oldfieldtype": "Select",
"options": "\nSales\nMaintenance",
"permlevel": 0,
"read_only": 0,
"reqd": 1
},
},
{
"default": "Draft",
"fieldname": "status",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Status",
"no_copy": 1,
"oldfieldname": "status",
"oldfieldtype": "Select",
"options": "Draft\nSubmitted\nQuotation\nLost\nCancelled\nReplied\nOpen",
"permlevel": 0,
"print_hide": 1,
"read_only": 1,
"default": "Draft",
"fieldname": "status",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Status",
"no_copy": 1,
"oldfieldname": "status",
"oldfieldtype": "Select",
"options": "Draft\nSubmitted\nQuotation\nLost\nCancelled\nReplied\nOpen",
"permlevel": 0,
"print_hide": 1,
"read_only": 1,
"reqd": 1
},
},
{
"fieldname": "items_section",
"fieldtype": "Section Break",
"label": "Items",
"oldfieldtype": "Section Break",
"options": "icon-shopping-cart",
"permlevel": 0,
"fieldname": "items_section",
"fieldtype": "Section Break",
"label": "Items",
"oldfieldtype": "Section Break",
"options": "icon-shopping-cart",
"permlevel": 0,
"read_only": 0
},
},
{
"description": "Items which do not exist in Item master can also be entered on customer's request",
"fieldname": "items",
"fieldtype": "Table",
"label": "Items",
"oldfieldname": "enquiry_details",
"oldfieldtype": "Table",
"options": "Opportunity Item",
"permlevel": 0,
"description": "Items which do not exist in Item master can also be entered on customer's request",
"fieldname": "items",
"fieldtype": "Table",
"label": "Items",
"oldfieldname": "enquiry_details",
"oldfieldtype": "Table",
"options": "Opportunity Item",
"permlevel": 0,
"read_only": 0
},
},
{
"fieldname": "fold",
"fieldtype": "Fold",
"fieldname": "fold",
"fieldtype": "Fold",
"permlevel": 0
},
},
{
"depends_on": "eval:doc.lead || doc.customer",
"fieldname": "contact_info",
"fieldtype": "Section Break",
"label": "Contact Info",
"options": "icon-bullhorn",
"permlevel": 0,
"depends_on": "eval:doc.lead || doc.customer",
"fieldname": "contact_info",
"fieldtype": "Section Break",
"label": "Contact Info",
"options": "icon-bullhorn",
"permlevel": 0,
"read_only": 0
},
},
{
"depends_on": "eval:doc.customer || doc.lead",
"fieldname": "customer_address",
"fieldtype": "Link",
"in_filter": 1,
"label": "Customer / Lead Address",
"options": "Address",
"permlevel": 0,
"print_hide": 1,
"depends_on": "eval:doc.customer || doc.lead",
"fieldname": "customer_address",
"fieldtype": "Link",
"in_filter": 1,
"label": "Customer / Lead Address",
"options": "Address",
"permlevel": 0,
"print_hide": 1,
"read_only": 0
},
},
{
"fieldname": "address_display",
"fieldtype": "Small Text",
"hidden": 1,
"label": "Address",
"oldfieldname": "address",
"oldfieldtype": "Small Text",
"permlevel": 0,
"fieldname": "address_display",
"fieldtype": "Small Text",
"hidden": 1,
"label": "Address",
"oldfieldname": "address",
"oldfieldtype": "Small Text",
"permlevel": 0,
"read_only": 1
},
},
{
"depends_on": "customer",
"description": "<a href=\"#Sales Browser/Territory\">Add / Edit</a>",
"fieldname": "territory",
"fieldtype": "Link",
"in_filter": 1,
"label": "Territory",
"options": "Territory",
"permlevel": 0,
"print_hide": 1,
"read_only": 0,
"reqd": 0,
"depends_on": "customer",
"description": "",
"fieldname": "territory",
"fieldtype": "Link",
"in_filter": 1,
"label": "Territory",
"options": "Territory",
"permlevel": 0,
"print_hide": 1,
"read_only": 0,
"reqd": 0,
"search_index": 1
},
},
{
"depends_on": "customer",
"description": "<a href=\"#Sales Browser/Customer Group\">Add / Edit</a>",
"fieldname": "customer_group",
"fieldtype": "Link",
"hidden": 0,
"in_filter": 1,
"label": "Customer Group",
"oldfieldname": "customer_group",
"oldfieldtype": "Link",
"options": "Customer Group",
"permlevel": 0,
"print_hide": 1,
"read_only": 0,
"reqd": 0,
"depends_on": "customer",
"description": "",
"fieldname": "customer_group",
"fieldtype": "Link",
"hidden": 0,
"in_filter": 1,
"label": "Customer Group",
"oldfieldname": "customer_group",
"oldfieldtype": "Link",
"options": "Customer Group",
"permlevel": 0,
"print_hide": 1,
"read_only": 0,
"reqd": 0,
"search_index": 1
},
},
{
"fieldname": "column_break3",
"fieldtype": "Column Break",
"permlevel": 0,
"fieldname": "column_break3",
"fieldtype": "Column Break",
"permlevel": 0,
"read_only": 0
},
},
{
"depends_on": "eval:doc.lead || doc.customer",
"fieldname": "contact_person",
"fieldtype": "Link",
"in_filter": 1,
"label": "Contact Person",
"options": "Contact",
"permlevel": 0,
"print_hide": 1,
"depends_on": "eval:doc.lead || doc.customer",
"fieldname": "contact_person",
"fieldtype": "Link",
"in_filter": 1,
"label": "Contact Person",
"options": "Contact",
"permlevel": 0,
"print_hide": 1,
"read_only": 0
},
},
{
"depends_on": "customer",
"fieldname": "contact_display",
"fieldtype": "Small Text",
"label": "Contact",
"permlevel": 0,
"depends_on": "customer",
"fieldname": "contact_display",
"fieldtype": "Small Text",
"label": "Contact",
"permlevel": 0,
"read_only": 1
},
},
{
"depends_on": "eval:doc.lead || doc.customer",
"fieldname": "contact_email",
"fieldtype": "Small Text",
"label": "Contact Email",
"permlevel": 0,
"depends_on": "eval:doc.lead || doc.customer",
"fieldname": "contact_email",
"fieldtype": "Small Text",
"label": "Contact Email",
"permlevel": 0,
"read_only": 1
},
},
{
"depends_on": "eval:doc.lead || doc.customer",
"fieldname": "contact_mobile",
"fieldtype": "Small Text",
"label": "Contact Mobile No",
"permlevel": 0,
"depends_on": "eval:doc.lead || doc.customer",
"fieldname": "contact_mobile",
"fieldtype": "Small Text",
"label": "Contact Mobile No",
"permlevel": 0,
"read_only": 1
},
},
{
"fieldname": "more_info",
"fieldtype": "Section Break",
"label": "More Info",
"oldfieldtype": "Section Break",
"options": "icon-file-text",
"permlevel": 0,
"fieldname": "more_info",
"fieldtype": "Section Break",
"label": "More Info",
"oldfieldtype": "Section Break",
"options": "icon-file-text",
"permlevel": 0,
"read_only": 0
},
},
{
"fieldname": "column_break1",
"fieldtype": "Column Break",
"oldfieldtype": "Column Break",
"permlevel": 0,
"read_only": 0,
"fieldname": "column_break1",
"fieldtype": "Column Break",
"oldfieldtype": "Column Break",
"permlevel": 0,
"read_only": 0,
"width": "50%"
},
},
{
"default": "Today",
"fieldname": "transaction_date",
"fieldtype": "Date",
"label": "Opportunity Date",
"oldfieldname": "transaction_date",
"oldfieldtype": "Date",
"permlevel": 0,
"read_only": 0,
"reqd": 1,
"default": "Today",
"fieldname": "transaction_date",
"fieldtype": "Date",
"label": "Opportunity Date",
"oldfieldname": "transaction_date",
"oldfieldtype": "Date",
"permlevel": 0,
"read_only": 0,
"reqd": 1,
"width": "50px"
},
},
{
"fieldname": "company",
"fieldtype": "Link",
"in_filter": 1,
"label": "Company",
"oldfieldname": "company",
"oldfieldtype": "Link",
"options": "Company",
"permlevel": 0,
"print_hide": 1,
"read_only": 0,
"reqd": 1,
"fieldname": "company",
"fieldtype": "Link",
"in_filter": 1,
"label": "Company",
"oldfieldname": "company",
"oldfieldtype": "Link",
"options": "Company",
"permlevel": 0,
"print_hide": 1,
"read_only": 0,
"reqd": 1,
"search_index": 1
},
},
{
"fieldname": "source",
"fieldtype": "Select",
"label": "Source",
"oldfieldname": "source",
"oldfieldtype": "Select",
"options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign\nWalk In",
"permlevel": 0,
"fieldname": "source",
"fieldtype": "Select",
"label": "Source",
"oldfieldname": "source",
"oldfieldtype": "Select",
"options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign\nWalk In",
"permlevel": 0,
"read_only": 0
},
},
{
"description": "Enter name of campaign if source of enquiry is campaign",
"fieldname": "campaign",
"fieldtype": "Link",
"label": "Campaign",
"oldfieldname": "campaign",
"oldfieldtype": "Link",
"options": "Campaign",
"permlevel": 0,
"description": "Enter name of campaign if source of enquiry is campaign",
"fieldname": "campaign",
"fieldtype": "Link",
"label": "Campaign",
"oldfieldname": "campaign",
"oldfieldtype": "Link",
"options": "Campaign",
"permlevel": 0,
"read_only": 0
},
},
{
"fieldname": "fiscal_year",
"fieldtype": "Link",
"in_filter": 1,
"label": "Fiscal Year",
"oldfieldname": "fiscal_year",
"oldfieldtype": "Select",
"options": "Fiscal Year",
"permlevel": 0,
"print_hide": 1,
"read_only": 0,
"reqd": 1,
"fieldname": "fiscal_year",
"fieldtype": "Link",
"in_filter": 1,
"label": "Fiscal Year",
"oldfieldname": "fiscal_year",
"oldfieldtype": "Select",
"options": "Fiscal Year",
"permlevel": 0,
"print_hide": 1,
"read_only": 0,
"reqd": 1,
"search_index": 1
},
},
{
"depends_on": "eval:!doc.__islocal",
"fieldname": "order_lost_reason",
"fieldtype": "Text",
"label": "Lost Reason",
"no_copy": 1,
"permlevel": 0,
"depends_on": "eval:!doc.__islocal",
"fieldname": "order_lost_reason",
"fieldtype": "Text",
"label": "Lost Reason",
"no_copy": 1,
"permlevel": 0,
"read_only": 1
},
},
{
"fieldname": "column_break2",
"fieldtype": "Column Break",
"oldfieldtype": "Column Break",
"permlevel": 0,
"read_only": 0,
"fieldname": "column_break2",
"fieldtype": "Column Break",
"oldfieldtype": "Column Break",
"permlevel": 0,
"read_only": 0,
"width": "50%"
},
},
{
"description": "Your sales person who will contact the customer in future",
"fieldname": "contact_by",
"fieldtype": "Link",
"in_filter": 1,
"label": "Next Contact By",
"oldfieldname": "contact_by",
"oldfieldtype": "Link",
"options": "User",
"permlevel": 0,
"read_only": 0,
"description": "Your sales person who will contact the customer in future",
"fieldname": "contact_by",
"fieldtype": "Link",
"in_filter": 1,
"label": "Next Contact By",
"oldfieldname": "contact_by",
"oldfieldtype": "Link",
"options": "User",
"permlevel": 0,
"read_only": 0,
"width": "75px"
},
},
{
"description": "Your sales person will get a reminder on this date to contact the customer",
"fieldname": "contact_date",
"fieldtype": "Datetime",
"label": "Next Contact Date",
"oldfieldname": "contact_date",
"oldfieldtype": "Date",
"permlevel": 0,
"description": "Your sales person will get a reminder on this date to contact the customer",
"fieldname": "contact_date",
"fieldtype": "Datetime",
"label": "Next Contact Date",
"oldfieldname": "contact_date",
"oldfieldtype": "Date",
"permlevel": 0,
"read_only": 0
},
},
{
"fieldname": "to_discuss",
"fieldtype": "Small Text",
"label": "To Discuss",
"no_copy": 1,
"oldfieldname": "to_discuss",
"oldfieldtype": "Small Text",
"permlevel": 0,
"fieldname": "to_discuss",
"fieldtype": "Small Text",
"label": "To Discuss",
"no_copy": 1,
"oldfieldname": "to_discuss",
"oldfieldtype": "Small Text",
"permlevel": 0,
"read_only": 0
},
},
{
"fieldname": "amended_from",
"fieldtype": "Link",
"ignore_user_permissions": 1,
"label": "Amended From",
"no_copy": 1,
"oldfieldname": "amended_from",
"oldfieldtype": "Data",
"options": "Opportunity",
"permlevel": 0,
"print_hide": 1,
"read_only": 1,
"fieldname": "amended_from",
"fieldtype": "Link",
"ignore_user_permissions": 1,
"label": "Amended From",
"no_copy": 1,
"oldfieldname": "amended_from",
"oldfieldtype": "Data",
"options": "Opportunity",
"permlevel": 0,
"print_hide": 1,
"read_only": 1,
"width": "150px"
}
],
"icon": "icon-info-sign",
"idx": 1,
"is_submittable": 1,
"modified": "2014-12-24 14:22:53.858170",
"modified_by": "Administrator",
"module": "Selling",
"name": "Opportunity",
"owner": "Administrator",
],
"icon": "icon-info-sign",
"idx": 1,
"is_submittable": 1,
"modified": "2015-01-01 14:30:03.287608",
"modified_by": "Administrator",
"module": "Selling",
"name": "Opportunity",
"owner": "Administrator",
"permissions": [
{
"amend": 1,
"apply_user_permissions": 1,
"cancel": 1,
"create": 1,
"delete": 1,
"email": 1,
"permlevel": 0,
"print": 1,
"read": 1,
"report": 1,
"role": "Sales User",
"submit": 1,
"amend": 1,
"apply_user_permissions": 1,
"cancel": 1,
"create": 1,
"delete": 1,
"email": 1,
"permlevel": 0,
"print": 1,
"read": 1,
"report": 1,
"role": "Sales User",
"submit": 1,
"write": 1
},
},
{
"amend": 1,
"cancel": 1,
"create": 1,
"delete": 1,
"email": 1,
"permlevel": 0,
"print": 1,
"read": 1,
"report": 1,
"role": "Sales Manager",
"submit": 1,
"amend": 1,
"cancel": 1,
"create": 1,
"delete": 1,
"email": 1,
"permlevel": 0,
"print": 1,
"read": 1,
"report": 1,
"role": "Sales Manager",
"submit": 1,
"write": 1
}
],
"search_fields": "status,transaction_date,customer,lead,enquiry_type,territory,company",
"sort_field": "modified",
],
"search_fields": "status,transaction_date,customer,lead,enquiry_type,territory,company",
"sort_field": "modified",
"sort_order": "DESC"
}
}

View File

@ -1,5 +1,5 @@
{
"creation": "2013-02-22 01:27:51.000000",
"creation": "2013-02-22 01:27:51",
"docstatus": 0,
"doctype": "DocType",
"fields": [
@ -25,7 +25,7 @@
"reqd": 1
},
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "item_group",
"fieldtype": "Link",
"hidden": 1,
@ -115,9 +115,10 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-02-03 12:40:44.000000",
"modified": "2015-01-01 14:29:58.657537",
"modified_by": "Administrator",
"module": "Selling",
"name": "Opportunity Item",
"owner": "Administrator"
"owner": "Administrator",
"permissions": []
}

View File

@ -583,7 +583,7 @@
"read_only": 0
},
{
"description": "<a href=\"#Sales Browser/Territory\">Add / Edit</a>",
"description": "",
"fieldname": "territory",
"fieldtype": "Link",
"hidden": 0,
@ -598,7 +598,7 @@
},
{
"depends_on": "customer",
"description": "<a href=\"#Sales Browser/Customer Group\">Add / Edit</a>",
"description": "",
"fieldname": "customer_group",
"fieldtype": "Link",
"in_filter": 1,
@ -800,7 +800,7 @@
"idx": 1,
"is_submittable": 1,
"max_attachments": 1,
"modified": "2014-12-24 14:24:12.930936",
"modified": "2015-01-01 14:30:03.814148",
"modified_by": "Administrator",
"module": "Selling",
"name": "Quotation",

View File

@ -299,7 +299,7 @@
"report_hide": 1
},
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "item_group",
"fieldtype": "Link",
"hidden": 1,
@ -332,7 +332,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-09-09 05:35:36.871532",
"modified": "2015-01-01 14:29:59.329982",
"modified_by": "Administrator",
"module": "Selling",
"name": "Quotation Item",

File diff suppressed because it is too large Load Diff

View File

@ -270,7 +270,7 @@
"search_index": 1
},
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "item_group",
"fieldtype": "Link",
"hidden": 1,
@ -415,7 +415,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-09-09 05:35:37.173841",
"modified": "2015-01-01 14:29:59.458236",
"modified_by": "Administrator",
"module": "Selling",
"name": "Sales Order Item",

View File

@ -1,102 +1,102 @@
{
"creation": "2013-06-25 10:25:16",
"description": "Settings for Selling Module",
"docstatus": 0,
"doctype": "DocType",
"document_type": "Other",
"creation": "2013-06-25 10:25:16",
"description": "Settings for Selling Module",
"docstatus": 0,
"doctype": "DocType",
"document_type": "Other",
"fields": [
{
"default": "Customer Name",
"fieldname": "cust_master_name",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Customer Naming By",
"options": "Customer Name\nNaming Series",
"default": "Customer Name",
"fieldname": "cust_master_name",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Customer Naming By",
"options": "Customer Name\nNaming Series",
"permlevel": 0
},
},
{
"fieldname": "campaign_naming_by",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Campaign Naming By",
"options": "Campaign Name\nNaming Series",
"fieldname": "campaign_naming_by",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Campaign Naming By",
"options": "Campaign Name\nNaming Series",
"permlevel": 0
},
},
{
"description": "<a href=\"#Sales Browser/Customer Group\">Add / Edit</a>",
"fieldname": "customer_group",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Default Customer Group",
"options": "Customer Group",
"description": "",
"fieldname": "customer_group",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Default Customer Group",
"options": "Customer Group",
"permlevel": 0
},
},
{
"description": "<a href=\"#Sales Browser/Territory\">Add / Edit</a>",
"fieldname": "territory",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Default Territory",
"options": "Territory",
"description": "",
"fieldname": "territory",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Default Territory",
"options": "Territory",
"permlevel": 0
},
},
{
"fieldname": "selling_price_list",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Default Price List",
"options": "Price List",
"fieldname": "selling_price_list",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Default Price List",
"options": "Price List",
"permlevel": 0
},
},
{
"fieldname": "column_break_5",
"fieldtype": "Column Break",
"fieldname": "column_break_5",
"fieldtype": "Column Break",
"permlevel": 0
},
},
{
"fieldname": "so_required",
"fieldtype": "Select",
"label": "Sales Order Required",
"options": "No\nYes",
"fieldname": "so_required",
"fieldtype": "Select",
"label": "Sales Order Required",
"options": "No\nYes",
"permlevel": 0
},
},
{
"fieldname": "dn_required",
"fieldtype": "Select",
"label": "Delivery Note Required",
"options": "No\nYes",
"fieldname": "dn_required",
"fieldtype": "Select",
"label": "Delivery Note Required",
"options": "No\nYes",
"permlevel": 0
},
},
{
"fieldname": "maintain_same_sales_rate",
"fieldtype": "Check",
"label": "Maintain Same Rate Throughout Sales Cycle",
"fieldname": "maintain_same_sales_rate",
"fieldtype": "Check",
"label": "Maintain Same Rate Throughout Sales Cycle",
"permlevel": 0
},
},
{
"fieldname": "editable_price_list_rate",
"fieldtype": "Check",
"label": "Allow user to edit Price List Rate in transactions",
"fieldname": "editable_price_list_rate",
"fieldtype": "Check",
"label": "Allow user to edit Price List Rate in transactions",
"permlevel": 0
}
],
"icon": "icon-cog",
"idx": 1,
"issingle": 1,
"modified": "2014-05-28 18:12:55.898953",
"modified_by": "Administrator",
"module": "Selling",
"name": "Selling Settings",
"owner": "Administrator",
],
"icon": "icon-cog",
"idx": 1,
"issingle": 1,
"modified": "2015-01-01 14:30:05.798080",
"modified_by": "Administrator",
"module": "Selling",
"name": "Selling Settings",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"email": 1,
"permlevel": 0,
"print": 1,
"read": 1,
"role": "System Manager",
"create": 1,
"email": 1,
"permlevel": 0,
"print": 1,
"read": 1,
"role": "System Manager",
"write": 1
}
]
}
}

View File

@ -2,14 +2,14 @@
// License: GNU General Public License v3. See license.txt
pscript['onload_Sales Browser'] = function(wrapper){
frappe.ui.make_app_page({
var page = frappe.ui.make_app_page({
parent: wrapper,
single_column: true,
})
});
frappe.add_breadcrumbs("Selling")
wrapper.page.set_primary_action(__('Refresh'), function() {
wrapper.page.set_secondary_action(__('Refresh'), function() {
wrapper.make_tree();
});
@ -20,7 +20,7 @@ pscript['onload_Sales Browser'] = function(wrapper){
args: {ctype: ctype},
callback: function(r) {
var root = r.message[0]["value"];
erpnext.sales_chart = new erpnext.SalesChart(ctype, root,
erpnext.sales_chart = new erpnext.SalesChart(ctype, root, page,
$(wrapper)
.find(".layout-main-section")
.css({
@ -46,16 +46,21 @@ pscript['onshow_Sales Browser'] = function(wrapper){
};
erpnext.SalesChart = Class.extend({
init: function(ctype, root, parent) {
init: function(ctype, root, page, parent) {
$(parent).empty();
var me = this;
me.ctype = ctype;
me.page = page;
me.can_read = frappe.model.can_read(this.ctype);
me.can_create = frappe.boot.user.can_create.indexOf(this.ctype) !== -1 ||
frappe.boot.user.in_create.indexOf(this.ctype) !== -1;
me.can_write = frappe.model.can_write(this.ctype);
me.can_delete = frappe.model.can_delete(this.ctype);
me.page.set_primary_action(__("New"), function() {
me.new_node();
});
this.tree = new frappe.ui.Tree({
parent: $(parent),
label: __(root),
@ -103,6 +108,12 @@ erpnext.SalesChart = Class.extend({
},
new_node: function() {
var me = this;
var node = me.tree.get_selected_node();
if(!(node && node.expandable)) {
frappe.msgprint(__("Select a group node first."));
return;
}
var fields = [
{fieldtype:'Data', fieldname: 'name_field',

View File

@ -1,10 +1,10 @@
{
"creation": "2013-06-20 12:48:38.000000",
"creation": "2013-06-20 12:48:38",
"docstatus": 0,
"doctype": "DocType",
"fields": [
{
"description": "<a href=\"#Sales Browser/Territory\">Add / Edit</a>",
"description": "",
"fieldname": "territory",
"fieldtype": "Link",
"in_list_view": 1,
@ -16,9 +16,10 @@
],
"idx": 1,
"istable": 1,
"modified": "2013-12-20 19:22:53.000000",
"modified": "2015-01-01 14:29:58.724652",
"modified_by": "Administrator",
"module": "Setup",
"name": "Applicable Territory",
"owner": "Administrator"
"owner": "Administrator",
"permissions": []
}

View File

@ -19,7 +19,7 @@
"reqd": 1
},
{
"description": "<a href=\"#Sales Browser/Customer Group\">Add / Edit</a>",
"description": "",
"fieldname": "parent_customer_group",
"fieldtype": "Link",
"ignore_user_permissions": 1,
@ -95,7 +95,7 @@
"search_index": 1
},
{
"description": "<a href=\"#Sales Browser/Customer Group\">Add / Edit</a>",
"description": "",
"fieldname": "old_parent",
"fieldtype": "Link",
"hidden": 1,
@ -125,8 +125,8 @@
],
"icon": "icon-sitemap",
"idx": 1,
"in_create": 1,
"modified": "2014-12-25 12:48:13.727656",
"in_create": 0,
"modified": "2015-01-01 15:35:30.178039",
"modified_by": "Administrator",
"module": "Setup",
"name": "Customer Group",
@ -134,6 +134,7 @@
"permissions": [
{
"amend": 0,
"apply_user_permissions": 0,
"create": 0,
"delete": 0,
"email": 1,
@ -190,6 +191,6 @@
"write": 0
}
],
"read_only": 1,
"read_only": 0,
"search_fields": "parent_customer_group"
}

View File

@ -28,7 +28,7 @@
"permlevel": 0
},
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "parent_item_group",
"fieldtype": "Link",
"ignore_user_permissions": 1,
@ -169,7 +169,7 @@
"search_index": 1
},
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "old_parent",
"fieldtype": "Link",
"hidden": 1,
@ -190,7 +190,7 @@
"in_create": 1,
"issingle": 0,
"max_attachments": 3,
"modified": "2014-12-25 12:33:43.359081",
"modified": "2015-01-01 14:30:02.349930",
"modified_by": "Administrator",
"module": "Setup",
"name": "Item Group",

View File

@ -33,7 +33,7 @@
"search_index": 0
},
{
"description": "<a href=\"#Sales Browser/Territory\">Add / Edit</a>",
"description": "",
"fieldname": "territory",
"fieldtype": "Link",
"in_list_view": 1,
@ -200,7 +200,7 @@
"icon": "icon-user",
"idx": 1,
"in_create": 0,
"modified": "2014-12-25 15:37:44.884917",
"modified": "2015-01-01 14:30:05.641746",
"modified_by": "Administrator",
"module": "Setup",
"name": "Sales Partner",

View File

@ -142,8 +142,8 @@
],
"icon": "icon-user",
"idx": 1,
"in_create": 1,
"modified": "2014-12-25 15:37:37.695495",
"in_create": 0,
"modified": "2015-01-01 15:39:11.451348",
"modified_by": "Administrator",
"module": "Setup",
"name": "Sales Person",

View File

@ -4,7 +4,7 @@
"doctype": "DocType",
"fields": [
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "item_group",
"fieldtype": "Link",
"in_filter": 1,
@ -54,7 +54,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-05-09 02:16:41.436257",
"modified": "2015-01-01 14:29:58.758761",
"modified_by": "Administrator",
"module": "Setup",
"name": "Target Detail",

View File

@ -20,7 +20,7 @@
"reqd": 1
},
{
"description": "<a href=\"#Sales Browser/Territory\">Add / Edit</a>",
"description": "",
"fieldname": "parent_territory",
"fieldtype": "Link",
"ignore_user_permissions": 1,
@ -91,7 +91,7 @@
"search_index": 1
},
{
"description": "<a href=\"#Sales Browser/Territory\">Add / Edit</a>",
"description": "",
"fieldname": "old_parent",
"fieldtype": "Link",
"hidden": 1,
@ -135,8 +135,8 @@
],
"icon": "icon-map-marker",
"idx": 1,
"in_create": 1,
"modified": "2014-12-25 15:37:31.563276",
"in_create": 0,
"modified": "2015-01-01 15:36:03.787473",
"modified_by": "Administrator",
"module": "Setup",
"name": "Territory",
@ -196,6 +196,6 @@
"role": "Maintenance User"
}
],
"read_only": 1,
"read_only": 0,
"search_fields": "parent_territory,territory_manager"
}

View File

@ -1,12 +1,12 @@
{
"creation": "2013-02-22 01:28:09.000000",
"creation": "2013-02-22 01:28:09",
"description": "Cross Listing of Item in multiple groups",
"docstatus": 0,
"doctype": "DocType",
"document_type": "Other",
"fields": [
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "item_group",
"fieldtype": "Link",
"in_list_view": 1,
@ -18,9 +18,10 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-02-28 13:00:07.000000",
"modified": "2015-01-01 14:29:58.803777",
"modified_by": "Administrator",
"module": "Setup",
"name": "Website Item Group",
"owner": "Administrator"
"owner": "Administrator",
"permissions": []
}

File diff suppressed because it is too large Load Diff

View File

@ -272,7 +272,7 @@
"read_only": 0
},
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "item_group",
"fieldtype": "Link",
"hidden": 1,
@ -438,7 +438,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-10-08 11:11:59.411329",
"modified": "2015-01-01 14:29:59.711539",
"modified_by": "Administrator",
"module": "Stock",
"name": "Delivery Note Item",

File diff suppressed because it is too large Load Diff

View File

@ -127,7 +127,7 @@
"permlevel": 0
},
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "item_group",
"fieldtype": "Link",
"in_filter": 1,
@ -235,7 +235,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-09-09 05:35:37.746067",
"modified": "2015-01-01 14:29:59.597199",
"modified_by": "Administrator",
"module": "Stock",
"name": "Material Request Item",

View File

@ -457,7 +457,7 @@
"read_only": 1
},
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "item_group",
"fieldtype": "Link",
"hidden": 1,
@ -559,7 +559,7 @@
],
"idx": 1,
"istable": 1,
"modified": "2014-11-07 15:54:08.266918",
"modified": "2015-01-01 14:30:00.032715",
"modified_by": "Administrator",
"module": "Stock",
"name": "Purchase Receipt Item",

View File

@ -1,5 +1,5 @@
{
"allow_import": 1,
"allow_import": 1,
"allow_rename": 1,
"autoname": "field:serial_no",
"creation": "2013-05-16 10:59:15",
@ -109,7 +109,7 @@
"width": "300px"
},
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "item_group",
"fieldtype": "Link",
"in_filter": 0,
@ -417,7 +417,7 @@
"icon": "icon-barcode",
"idx": 1,
"in_create": 0,
"modified": "2014-06-26 12:33:49.911829",
"modified": "2015-01-01 14:30:05.865206",
"modified_by": "Administrator",
"module": "Stock",
"name": "Serial No",

View File

@ -1,5 +1,5 @@
{
"creation": "2013-06-24 16:37:54.000000",
"creation": "2013-06-24 16:37:54",
"description": "Settings",
"docstatus": 0,
"doctype": "DocType",
@ -8,14 +8,16 @@
"default": "Item Code",
"fieldname": "item_naming_by",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Item Naming By",
"options": "Item Code\nNaming Series",
"permlevel": 0
},
{
"description": "<a href=\"#Sales Browser/Item Group\">Add / Edit</a>",
"description": "",
"fieldname": "item_group",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Default Item Group",
"options": "Item Group",
"permlevel": 0
@ -23,6 +25,7 @@
{
"fieldname": "stock_uom",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Default Stock UOM",
"options": "UOM",
"permlevel": 0
@ -35,6 +38,7 @@
{
"fieldname": "allow_negative_stock",
"fieldtype": "Check",
"in_list_view": 1,
"label": "Allow Negative Stock",
"permlevel": 0
},
@ -99,7 +103,7 @@
"icon": "icon-cog",
"idx": 1,
"issingle": 1,
"modified": "2014-02-19 19:02:23.000000",
"modified": "2015-01-01 14:30:06.164157",
"modified_by": "Administrator",
"module": "Stock",
"name": "Stock Settings",

View File

@ -244,7 +244,7 @@
},
{
"depends_on": "customer",
"description": "<a href=\"#Sales Browser/Customer Group\">Add / Edit</a>",
"description": "",
"fieldname": "customer_group",
"fieldtype": "Link",
"label": "Customer Group",
@ -255,7 +255,7 @@
},
{
"depends_on": "customer",
"description": "<a href=\"#Sales Browser/Territory\">Add / Edit</a>",
"description": "",
"fieldname": "territory",
"fieldtype": "Link",
"in_filter": 1,
@ -396,7 +396,7 @@
"icon": "icon-bug",
"idx": 1,
"is_submittable": 0,
"modified": "2014-07-07 02:47:56.491906",
"modified": "2015-01-01 14:30:00.857711",
"modified_by": "Administrator",
"module": "Support",
"name": "Customer Issue",

View File

@ -180,7 +180,7 @@
},
{
"depends_on": "customer",
"description": "<a href=\"#Sales Browser/Territory\">Add / Edit</a>",
"description": "",
"fieldname": "territory",
"fieldtype": "Link",
"in_filter": 1,
@ -194,7 +194,7 @@
},
{
"depends_on": "customer",
"description": "<a href=\"#Sales Browser/Customer Group\">Add / Edit</a>",
"description": "",
"fieldname": "customer_group",
"fieldtype": "Link",
"label": "Customer Group",
@ -228,7 +228,7 @@
"icon": "icon-calendar",
"idx": 1,
"is_submittable": 1,
"modified": "2014-12-24 15:51:42.595081",
"modified": "2015-01-01 14:30:02.768146",
"modified_by": "Administrator",
"module": "Support",
"name": "Maintenance Schedule",

View File

@ -258,7 +258,7 @@
"permlevel": 0
},
{
"description": "<a href=\"#Sales Browser/Territory\">Add / Edit</a>",
"description": "",
"fieldname": "territory",
"fieldtype": "Link",
"label": "Territory",
@ -267,7 +267,7 @@
"print_hide": 1
},
{
"description": "<a href=\"#Sales Browser/Customer Group\">Add / Edit</a>",
"description": "",
"fieldname": "customer_group",
"fieldtype": "Link",
"label": "Customer Group",
@ -279,7 +279,7 @@
"icon": "icon-file-text",
"idx": 1,
"is_submittable": 1,
"modified": "2014-12-24 16:20:49.640483",
"modified": "2015-01-01 14:30:02.998219",
"modified_by": "Administrator",
"module": "Support",
"name": "Maintenance Visit",