Merge pull request #10251 from rohitwaghchaure/permlevel_1_write_permission

Set write permission to sales manger for permlevel 1 in Quotation doctype
This commit is contained in:
Nabin Hait 2017-08-03 10:45:17 +05:30 committed by GitHub
commit af01f5154b
3 changed files with 15 additions and 3 deletions

View File

@ -428,4 +428,5 @@ erpnext.patches.v8_5.fix_tax_breakup_for_non_invoice_docs
erpnext.patches.v8_5.remove_quotations_route_in_sidebar
erpnext.patches.v8_5.update_existing_data_in_project_type
erpnext.patches.v8_5.update_customer_group_in_POS_profile
erpnext.patches.v8_6.update_timesheet_company_from_PO
erpnext.patches.v8_6.update_timesheet_company_from_PO
erpnext.patches.v8_6.set_write_permission_for_quotation_for_sales_manager

View File

@ -0,0 +1,11 @@
# Copyright (c) 2017, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
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 """)

View File

@ -2572,7 +2572,7 @@
"istable": 0,
"max_attachments": 1,
"menu_index": 0,
"modified": "2017-07-19 13:49:33.388736",
"modified": "2017-08-02 18:15:38.198698",
"modified_by": "Administrator",
"module": "Selling",
"name": "Quotation",
@ -2638,7 +2638,7 @@
"set_user_permissions": 0,
"share": 0,
"submit": 0,
"write": 0
"write": 1
},
{
"amend": 1,