Set write permission to sales manger for permlevel 1 in Quotation doctype

This commit is contained in:
Rohit Waghchaure 2017-08-02 18:23:39 +05:30 committed by Nabin Hait
parent 13218f7d76
commit df83191ea0
2 changed files with 5 additions and 2 deletions

View File

@ -431,4 +431,7 @@ erpnext.patches.v8_5.set_default_mode_of_payment
erpnext.patches.v8_5.update_customer_group_in_POS_profile
erpnext.patches.v8_6.update_timesheet_company_from_PO
erpnext.patches.v8_6.set_write_permission_for_quotation_for_sales_manager
erpnext.patches.v8_5.remove_project_type_property_setter
<<<<<<< HEAD
erpnext.patches.v8_5.remove_project_type_property_setter
=======
>>>>>>> Set write permission to sales manger for permlevel 1 in Quotation doctype

View File

@ -8,4 +8,4 @@ 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 """)
and `tabCustom DocPerm`.permlevel = 1 """)