2015-03-03 09:25:30 +00:00
|
|
|
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
2014-09-29 10:15:26 +00:00
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
2019-01-22 12:52:20 +00:00
|
|
|
from __future__ import unicode_literals
|
2014-09-29 10:15:26 +00:00
|
|
|
import frappe
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
account_settings = frappe.get_doc("Accounts Settings")
|
|
|
|
|
|
|
|
if not account_settings.frozen_accounts_modifier and account_settings.bde_auth_role:
|
2015-06-22 02:02:46 +00:00
|
|
|
frappe.db.set_value("Accounts Settings", None,
|
2014-10-21 10:46:30 +00:00
|
|
|
"frozen_accounts_modifier", account_settings.bde_auth_role)
|
2014-09-29 10:15:26 +00:00
|
|
|
|