This commit is contained in:
hello@openetech.com
2019-10-16 23:38:51 +05:30
committed by Rohit Waghchaure
parent e2ea11c437
commit 7021402a45
10 changed files with 557 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import frappe
from frappe.permissions import add_permission, update_permission_property
def execute():
company = frappe.get_all('Company', filters = {'country': 'Italy'})
if not company:
return
add_permission('Import Supplier Invoice', 'Accounts Manager', 0)
update_permission_property('Import Supplier Invoice', 'Accounts Manager', 0, 'write', 1)
update_permission_property('Import Supplier Invoice', 'Accounts Manager', 0, 'create', 1)