style: format code with black
This commit is contained in:
@@ -2,16 +2,21 @@ import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
settings = frappe.db.get_value('Selling Settings', 'Selling Settings', [
|
||||
'campaign_naming_by',
|
||||
'close_opportunity_after_days',
|
||||
'default_valid_till'
|
||||
], as_dict=True)
|
||||
settings = frappe.db.get_value(
|
||||
"Selling Settings",
|
||||
"Selling Settings",
|
||||
["campaign_naming_by", "close_opportunity_after_days", "default_valid_till"],
|
||||
as_dict=True,
|
||||
)
|
||||
|
||||
frappe.reload_doc('crm', 'doctype', 'crm_settings')
|
||||
frappe.reload_doc("crm", "doctype", "crm_settings")
|
||||
if settings:
|
||||
frappe.db.set_value('CRM Settings', '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
|
||||
})
|
||||
frappe.db.set_value(
|
||||
"CRM Settings",
|
||||
"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,
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user