seitime-frappe/frappe/patches/v14_0/update_integration_request.py

21 lines
426 B
Python

import frappe
def execute():
doctype = "Integration Request"
if not frappe.db.has_column(doctype, "integration_type"):
return
frappe.db.set_value(
doctype,
{"integration_type": "Remote", "integration_request_service": ("!=", "PayPal")},
"is_remote_request",
1,
)
frappe.db.set_value(
doctype,
{"integration_type": "Subscription Notification"},
"request_description",
"Subscription Notification",
)