brotherton-erpnext/erpnext/patches/v5_0/update_sms_sender.py

10 lines
338 B
Python

# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
def execute():
frappe.db.set_value("SMS Settings", "SMS Settings", "sms_sender_name",
frappe.db.get_single_value("Global Defaults", "sms_sender_name"))