mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
fix: Use get_value instead of get_doc and formatting
This commit is contained in:
@@ -224,7 +224,7 @@ def make_quotation(source_name, target_doc=None):
|
||||
target_doc.run_method("set_other_charges")
|
||||
target_doc.run_method("calculate_taxes_and_totals")
|
||||
|
||||
price_list = frappe.get_doc("Customer", source_name, "default_price_list")
|
||||
price_list = frappe.get_value("Customer", source_name, "default_price_list")
|
||||
if price_list:
|
||||
target_doc.selling_price_list = price_list
|
||||
|
||||
@@ -242,8 +242,7 @@ def make_opportunity(source_name, target_doc=None):
|
||||
"name": "party_name",
|
||||
"doctype": "opportunity_from",
|
||||
}
|
||||
}}, target_doc, set_missing_values
|
||||
)
|
||||
}}, target_doc, set_missing_values)
|
||||
|
||||
return target_doc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user