* fix: wrong usage of get_single_value * test: fix wrong fieldname * chore: typo --------- Co-authored-by: Ankush Menat <ankush@frappe.io>
17 lines
418 B
Python
17 lines
418 B
Python
import frappe
|
|
|
|
|
|
def execute():
|
|
settings = frappe.db.get_singles_dict("Selling Settings", cast=True)
|
|
|
|
frappe.reload_doc("crm", "doctype", "crm_settings")
|
|
if settings:
|
|
frappe.db.set_single_value(
|
|
"CRM Settings",
|
|
{
|
|
"campaign_naming_by": settings.campaign_naming_by,
|
|
"close_opportunity_after_days": settings.close_opportunity_after_days,
|
|
"default_valid_till": settings.default_valid_till,
|
|
},
|
|
)
|