[patch] Reload RFQ and timesheet before removing customer/supplier roles
This commit is contained in:
parent
1d7bd0efb8
commit
5940dc1a8e
@ -2,6 +2,10 @@ from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
frappe.reload_doc("buying", "doctype", "request_for_quotation_supplier")
|
||||
frappe.reload_doc("buying", "doctype", "request_for_quotation")
|
||||
frappe.reload_doc("projects", "doctype", "timesheet")
|
||||
|
||||
for role in ('Customer', 'Supplier'):
|
||||
frappe.db.sql('''delete from `tabUserRole`
|
||||
where role=%s and parent in ("Administrator", "Guest")''', role)
|
||||
|
Loading…
Reference in New Issue
Block a user