fix: Minor issues in existing patches
This commit is contained in:
parent
05bbb69d0e
commit
d71d3e3b3e
@ -3,6 +3,7 @@ from frappe import _
|
|||||||
|
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
frappe.reload_doctype('Selling Settings')
|
||||||
selling_settings = frappe.get_single("Selling Settings")
|
selling_settings = frappe.get_single("Selling Settings")
|
||||||
|
|
||||||
if selling_settings.customer_group in (_("All Customer Groups"), "All Customer Groups"):
|
if selling_settings.customer_group in (_("All Customer Groups"), "All Customer Groups"):
|
||||||
|
@ -3,6 +3,9 @@ import frappe
|
|||||||
|
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
frappe.reload_doctype('Maintenance Visit')
|
||||||
|
frappe.reload_doctype('Maintenance Visit Purpose')
|
||||||
|
|
||||||
# Updates the Maintenance Schedule link to fetch serial nos
|
# Updates the Maintenance Schedule link to fetch serial nos
|
||||||
from frappe.query_builder.functions import Coalesce
|
from frappe.query_builder.functions import Coalesce
|
||||||
mvp = frappe.qb.DocType('Maintenance Visit Purpose')
|
mvp = frappe.qb.DocType('Maintenance Visit Purpose')
|
||||||
|
@ -9,8 +9,9 @@ def execute():
|
|||||||
], as_dict=True)
|
], as_dict=True)
|
||||||
|
|
||||||
frappe.reload_doc('crm', 'doctype', 'crm_settings')
|
frappe.reload_doc('crm', 'doctype', 'crm_settings')
|
||||||
frappe.db.set_value('CRM Settings', 'CRM Settings', {
|
if settings:
|
||||||
'campaign_naming_by': settings.campaign_naming_by,
|
frappe.db.set_value('CRM Settings', 'CRM Settings', {
|
||||||
'close_opportunity_after_days': settings.close_opportunity_after_days,
|
'campaign_naming_by': settings.campaign_naming_by,
|
||||||
'default_valid_till': settings.default_valid_till
|
'close_opportunity_after_days': settings.close_opportunity_after_days,
|
||||||
})
|
'default_valid_till': settings.default_valid_till
|
||||||
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user