diff --git a/selling/doctype/lead/lead.txt b/selling/doctype/lead/lead.txt index 9c74de987ec..c31d3556f5f 100644 --- a/selling/doctype/lead/lead.txt +++ b/selling/doctype/lead/lead.txt @@ -3,9 +3,9 @@ # These values are common in all dictionaries { - u'creation': '2012-06-05 20:03:20', + u'creation': '2012-08-08 10:41:31', u'docstatus': 0, - u'modified': '2012-08-06 14:49:48', + u'modified': '2012-11-15 12:36:41', u'modified_by': u'Administrator', u'owner': u'Administrator' }, @@ -114,7 +114,7 @@ 'fieldname': u'company_name', 'fieldtype': u'Data', 'in_filter': 1, - 'label': u'Company Name', + 'label': u'Organization Name (for Lead)', 'oldfieldname': u'company_name', 'oldfieldtype': u'Data', 'permlevel': 0, @@ -624,6 +624,15 @@ 'permlevel': 0 }, + # DocPerm + { + 'create': 1, + u'doctype': u'DocPerm', + 'permlevel': 0, + 'role': u'Guest', + 'write': 1 + }, + # DocPerm { 'amend': 0, @@ -689,14 +698,5 @@ 'role': u'System Manager', 'submit': 0, 'write': 1 - }, - - # DocPerm - { - 'create': 1, - u'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Guest', - 'write': 1 } ] \ No newline at end of file diff --git a/setup/doctype/price_list/price_list.js b/setup/doctype/price_list/price_list.js index 0d903a81479..75d3d0f1c13 100644 --- a/setup/doctype/price_list/price_list.js +++ b/setup/doctype/price_list/price_list.js @@ -15,33 +15,9 @@ // along with this program. If not, see . cur_frm.cscript.refresh = function(doc, cdt, cdn) { + cur_frm.set_intro(""); if(doc.__islocal) { cur_frm.set_intro("Save this list to begin."); return; } - if (wn.boot.profile.can_create.indexOf(cdt) !== -1) { - if(!doc.file_list) { - cur_frm.set_intro('

1. Click on "Download Template" \ - to download the template of all Items.

' - +'

2. Update prices and Currency.

' - +'

3. Save it as a CSV (.csv) file.

' - +'

4. Upload the file.

'); - - cur_frm.add_custom_button('Download Template', function() { - $c_obj_csv(cur_frm.get_doclist(), 'download_template'); - }, 'icon-download') - - cur_frm.add_custom_button('Upload Price List', function() { - cur_frm.attachments.add_attachment(); - }, 'icon-upload'); - } else { - cur_frm.set_intro('To update prices from the attachment, click on "Update Prices". \ - To reset prices, delete the attachment (in the sidebar) and upload again.'); - - // Update Prices - cur_frm.add_custom_button('Update Prices', function() { - cur_frm.call_server('update_prices'); - }, 'icon-refresh'); - } - } } diff --git a/setup/doctype/price_list/price_list.txt b/setup/doctype/price_list/price_list.txt index 79a7644c674..9878b53a34a 100644 --- a/setup/doctype/price_list/price_list.txt +++ b/setup/doctype/price_list/price_list.txt @@ -3,29 +3,29 @@ # These values are common in all dictionaries { - 'creation': '2012-07-03 13:30:55', - 'docstatus': 0, - 'modified': '2012-07-11 17:35:10', - 'modified_by': u'Administrator', - 'owner': u'Administrator' + u'creation': '2012-07-12 23:29:45', + u'docstatus': 0, + u'modified': '2012-11-15 10:50:52', + u'modified_by': u'Administrator', + u'owner': u'Administrator' }, # These values are common for all DocType { '_last_update': u'1303100817', - 'allow_attach': 1, + 'allow_attach': 0, 'allow_copy': 1, 'allow_email': 1, 'allow_print': 1, 'allow_trash': 1, 'autoname': u'field:price_list_name', 'colour': u'White:FFF', - 'description': u'Maintain multiple selling rates for the same **Item** using **Price Lists**. You can upload / edit multiple prices by downloading and uploading the template.', - 'doctype': 'DocType', + 'description': u'Price List Master', + u'doctype': u'DocType', 'document_type': u'Master', 'max_attachments': 1, 'module': u'Setup', - 'name': '__common__', + u'name': u'__common__', 'section_style': u'Simple', 'server_code_error': u' ', 'show_in_menu': 0, @@ -34,8 +34,8 @@ # These values are common for all DocField { - 'doctype': u'DocField', - 'name': '__common__', + u'doctype': u'DocField', + u'name': u'__common__', 'parent': u'Price List', 'parentfield': u'fields', 'parenttype': u'DocType', @@ -45,8 +45,8 @@ # These values are common for all DocPerm { 'amend': 0, - 'doctype': u'DocPerm', - 'name': '__common__', + u'doctype': u'DocPerm', + u'name': u'__common__', 'parent': u'Price List', 'parentfield': u'permissions', 'parenttype': u'DocType', @@ -56,63 +56,13 @@ # DocType, Price List { - 'doctype': 'DocType', - 'name': u'Price List' - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Sales Manager', - 'write': 0 - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Sales Manager', - 'write': 0 - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 1, - 'role': u'Sales User', - 'write': 0 - }, - - # DocPerm - { - 'cancel': 0, - 'create': 0, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Sales User', - 'write': 0 - }, - - # DocPerm - { - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Sales Master Manager', - 'write': 1 + u'doctype': u'DocType', + u'name': u'Price List' }, # DocField { - 'doctype': u'DocField', + u'doctype': u'DocField', 'fieldname': u'price_list_name', 'fieldtype': u'Data', 'label': u'Price List Name', @@ -123,10 +73,70 @@ # DocField { - 'doctype': u'DocField', + 'depends_on': u'price_list_name', + u'doctype': u'DocField', + 'fieldname': u'how_to_upload', + 'fieldtype': u'HTML', + 'label': u'How to upload', + 'options': u'
Use the Data Import Tool to upload, update Item Prices in bulk:\n
    \n
  1. Go to Data Import Tool.\n
  2. Select "Item"\n
  3. Check on "With Data"\n
  4. Download "Item Price" from Child Tables.\n
  5. Update the prices required and add new rows if required.\n
  6. Check on "Overwrite"\n
  7. Upload the modified sheet.\n
\n' + }, + + # DocField + { + u'doctype': u'DocField', 'fieldname': u'file_list', 'fieldtype': u'Text', 'hidden': 1, 'label': u'File List' + }, + + # DocPerm + { + 'cancel': 0, + 'create': 0, + u'doctype': u'DocPerm', + 'permlevel': 1, + 'role': u'Sales Manager', + 'write': 0 + }, + + # DocPerm + { + 'cancel': 0, + 'create': 0, + u'doctype': u'DocPerm', + 'permlevel': 0, + 'role': u'Sales Manager', + 'write': 0 + }, + + # DocPerm + { + 'cancel': 0, + 'create': 0, + u'doctype': u'DocPerm', + 'permlevel': 1, + 'role': u'Sales User', + 'write': 0 + }, + + # DocPerm + { + 'cancel': 0, + 'create': 0, + u'doctype': u'DocPerm', + 'permlevel': 0, + 'role': u'Sales User', + 'write': 0 + }, + + # DocPerm + { + 'cancel': 1, + 'create': 1, + u'doctype': u'DocPerm', + 'permlevel': 0, + 'role': u'Sales Master Manager', + 'write': 1 } ] \ No newline at end of file