Update set_write_permission_for_quotation_for_sales_manager.py

This commit is contained in:
Nabin Hait 2017-08-03 10:44:55 +05:30 committed by GitHub
parent 250e964205
commit b554f9077c

View File

@ -6,6 +6,6 @@ import frappe
def execute():
# Set write permission to permlevel 1 for sales manager role in Quotation doctype
frappe.db.sql(""" update `tabCustom Docperm` set `tabCustom Docperm`.write = 1
where `tabCustom Docperm`.parent = 'Quotation' and `tabCustom Docperm`.role = 'Sales Manager'
and `tabCustom Docperm`.permlevel = 1 """)
frappe.db.sql(""" update `tabCustom DocPerm` set `tabCustom DocPerm`.write = 1
where `tabCustom DocPerm`.parent = 'Quotation' and `tabCustom DocPerm`.role = 'Sales Manager'
and `tabCustom DocPerm`.permlevel = 1 """)