Merge pull request #23150 from rmehta/fix-patch
fix(patch): fix patches for tests
This commit is contained in:
commit
3ef1490d73
@ -7,6 +7,7 @@ def execute():
|
|||||||
frappe.reload_doc('accounts', 'doctype', 'allowed_to_transact_with', force=True)
|
frappe.reload_doc('accounts', 'doctype', 'allowed_to_transact_with', force=True)
|
||||||
frappe.reload_doc('accounts', 'doctype', 'pricing_rule_detail', force=True)
|
frappe.reload_doc('accounts', 'doctype', 'pricing_rule_detail', force=True)
|
||||||
frappe.reload_doc('crm', 'doctype', 'lost_reason_detail', force=True)
|
frappe.reload_doc('crm', 'doctype', 'lost_reason_detail', force=True)
|
||||||
|
frappe.reload_doc('setup', 'doctype', 'quotation_lost_reason_detail', force=True)
|
||||||
|
|
||||||
company = frappe.get_all('Company', filters = {'country': 'United States'})
|
company = frappe.get_all('Company', filters = {'country': 'United States'})
|
||||||
if not company:
|
if not company:
|
||||||
|
@ -3,6 +3,7 @@ import frappe
|
|||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
if frappe.db.exists("DocType", "Lost Reason Detail"):
|
if frappe.db.exists("DocType", "Lost Reason Detail"):
|
||||||
|
frappe.reload_doc("crm", "doctype", "opportunity_lost_reason")
|
||||||
frappe.reload_doc("crm", "doctype", "opportunity_lost_reason_detail")
|
frappe.reload_doc("crm", "doctype", "opportunity_lost_reason_detail")
|
||||||
frappe.reload_doc("setup", "doctype", "quotation_lost_reason_detail")
|
frappe.reload_doc("setup", "doctype", "quotation_lost_reason_detail")
|
||||||
|
|
||||||
|
@ -7,4 +7,7 @@ import frappe
|
|||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
frappe.reload_doc('hr', 'doctype', 'shift_assignment')
|
frappe.reload_doc('hr', 'doctype', 'shift_assignment')
|
||||||
frappe.db.sql("update `tabShift Assignment` set end_date=date, start_date=date where date IS NOT NULL and start_date IS NULL and end_date IS NULL;")
|
if frappe.db.has_column('Shift Assignment', 'date'):
|
||||||
|
frappe.db.sql("""update `tabShift Assignment`
|
||||||
|
set end_date=date, start_date=date
|
||||||
|
where date IS NOT NULL and start_date IS NULL and end_date IS NULL;""")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user