fix: Rename Hub Settings -> Marketplace Settings

This commit is contained in:
Faris Ansari
2018-08-31 16:15:06 +05:30
parent 25f509ebd3
commit f9a66c1c36
16 changed files with 60 additions and 157 deletions

View File

@@ -101,7 +101,7 @@ def make_rfq(item, supplier, contact):
'doctype': 'Request for Quotation',
'transaction_date': nowdate(),
'status': 'Draft',
'company': frappe.db.get_single_value('Hub Settings', 'company'),
'company': frappe.db.get_single_value('Marketplace Settings', 'company'),
'message_for_supplier': 'Please supply the specified items at the best possible rates',
'suppliers': [
{ 'supplier': supplier.name, 'contact': contact.name }
@@ -126,8 +126,8 @@ def send_opportunity(contact):
# Make Hub Message on Hub with lead data
doc = {
'doctype': 'Lead',
'lead_name': frappe.db.get_single_value('Hub Settings', 'company'),
'email_id': frappe.db.get_single_value('Hub Settings', 'user')
'lead_name': frappe.db.get_single_value('Marketplace Settings', 'company'),
'email_id': frappe.db.get_single_value('Marketplace Settings', 'user')
}
args = frappe._dict(dict(