fix: Demo Script

This commit is contained in:
deepeshgarg007
2019-10-15 19:16:45 +05:30
parent 3f2c5c2319
commit 3db65ef7e8
5 changed files with 28 additions and 75 deletions

View File

@@ -66,7 +66,7 @@ def make_opportunity(domain):
b = frappe.get_doc({
"doctype": "Opportunity",
"opportunity_from": "Customer",
"customer": get_random("Customer"),
"party_name": frappe.get_value("Customer", get_random("Customer"), 'name'),
"opportunity_type": "Sales",
"with_items": 1,
"transaction_date": frappe.flags.current_date,