Update set_write_permission_for_quotation_for_sales_manager.py
diff --git a/erpnext/patches/v8_6/set_write_permission_for_quotation_for_sales_manager.py b/erpnext/patches/v8_6/set_write_permission_for_quotation_for_sales_manager.py
index 0b0fde3..c2320ec 100644
--- a/erpnext/patches/v8_6/set_write_permission_for_quotation_for_sales_manager.py
+++ b/erpnext/patches/v8_6/set_write_permission_for_quotation_for_sales_manager.py
@@ -6,6 +6,6 @@
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 """)
\ No newline at end of file
+ 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 """)